/* SVG Path Visualizer — custom styles */

/* Subtitle */
.subtitle {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Sections */
section {
    margin-bottom: 1.5rem;
}

section label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}

/* Textarea */
#pathInput {
    width: 100%;
    min-height: 80px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    background: #f9fafb;
    color: #111827;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 0.75rem;
}

#pathInput:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Visualize button */
.btn {
    padding: 0.55rem 1.25rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s;
}

.btn:hover {
    background: #1d4ed8;
}

/* Error message */
.error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.2em;
}

/* Visualization container */
.viz-container {
    background: #f9fafb;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

#svg-viz {
    width: 100%;
    height: 400px;
    display: block;
}

/* Stats */
.stats {
    font-size: 0.8125rem;
    color: #6b7280;
    font-family: 'Courier New', monospace;
    padding: 0.4rem 0;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

table thead th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    border-bottom: 2px solid #e0e6ed;
}

table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.15s;
}

table tbody tr:hover {
    background: #eff6ff;
}

table tbody td {
    padding: 0.45rem 0.75rem;
    color: #374151;
}

/* Command and params spans */
.cmd {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    background: #2563eb;
    color: #fff;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
    font-weight: 700;
}

.params {
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
    color: #374151;
}

/* FAQ */
.faq {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.25rem;
}

.faq h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.faq p {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.faq p strong {
    color: #111827;
}

/* Related */
.related {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.25rem;
}

.related h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.related a {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}

.related a:hover {
    text-decoration: underline;
}

/* Dark mode */
html[data-theme="dark"] .subtitle {
    color: #9ca3af;
}

html[data-theme="dark"] section label {
    color: #d1d5db;
}

html[data-theme="dark"] #pathInput {
    background: #111827;
    color: #f9fafb;
    border-color: #374151;
}

html[data-theme="dark"] .viz-container {
    background: #111827;
    border-color: #374151;
}

html[data-theme="dark"] table thead th {
    background: #111827;
    color: #d1d5db;
    border-color: #374151;
}

html[data-theme="dark"] table tbody tr {
    border-color: #374151;
}

html[data-theme="dark"] table tbody tr:hover {
    background: #1e3a5f;
}

html[data-theme="dark"] table tbody td {
    color: #d1d5db;
}

html[data-theme="dark"] .params {
    color: #d1d5db;
}

html[data-theme="dark"] .faq,
html[data-theme="dark"] .related {
    background: #1f2937;
    border-color: #374151;
}

html[data-theme="dark"] .faq h3,
html[data-theme="dark"] .related h3 {
    color: #f9fafb;
}

html[data-theme="dark"] .faq p {
    color: #d1d5db;
}

html[data-theme="dark"] .faq p strong {
    color: #f9fafb;
}
