/* Time Zone Meeting Planner */
header {
    padding: 1.5rem 0 1rem;
}

header h1 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: #111827;
}

.description { color: #6b7280; margin-top: 0.25rem; }

main { max-width: 1100px; margin: 0 auto; padding: 0 1rem 2rem; }

.controls-section {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.control-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.control-item { display: flex; flex-direction: column; gap: 0.3rem; }
.control-item label { font-size: 0.85rem; font-weight: 600; color: #374151; }

.control-item input[type="date"],
.control-item select,
.control-item input[type="number"] {
    padding: 0.5rem 0.75rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    color: #111827;
    transition: border-color 0.2s;
}

.control-item input:focus,
.control-item select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

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

button:hover { background: #1d4ed8; transform: translateY(-1px); }
button.secondary { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; }
button.secondary:hover { background: #e5e7eb; transform: none; }

.selected-timezones { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }

.timezone-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1d4ed8;
}

.timezone-tag button {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1rem;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    transform: none;
}

.timezone-tag button:hover { color: #dc2626; background: none; }

.results-section {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.results-section h2 { font-size: 1.1rem; font-weight: 700; color: #111827; margin-bottom: 1rem; }

.legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: #4b5563; }
.legend-box { width: 16px; height: 16px; border-radius: 4px; border: 1px solid #e0e6ed; }

.time-grid { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.time-grid th, .time-grid td { padding: 0.4rem 0.6rem; border: 1px solid #e5e7eb; text-align: center; }
.time-grid th { background: #f9fafb; font-weight: 700; color: #374151; }
.time-grid .time-col { font-weight: 600; color: #374151; white-space: nowrap; }
.time-grid .business-hours { background: rgba(16,185,129,0.15); }
.time-grid .overlap-slot { background: rgba(16,185,129,0.25); }
.time-grid .best-slot { background: rgba(16,185,129,0.4); border-color: #10b981; font-weight: 700; }

.faq-section, .related-section {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.faq-section h2, .related-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.faq-item { margin-bottom: 1rem; }
.faq-question { font-weight: 600; color: #111827; font-size: 0.9rem; margin-bottom: 0.3rem; }
.faq-answer { color: #4b5563; font-size: 0.875rem; line-height: 1.6; }

.related-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.related-links a {
    padding: 0.4rem 0.9rem;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.related-links a:hover { background: #dbeafe; }

footer { text-align: center; padding: 1.5rem; color: #6b7280; font-size: 0.85rem; }

/* Dark mode */
html[data-theme="dark"] header h1 { color: #f1f5f9; }
html[data-theme="dark"] .controls-section,
html[data-theme="dark"] .results-section,
html[data-theme="dark"] .faq-section,
html[data-theme="dark"] .related-section { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .control-item label,
html[data-theme="dark"] .results-section h2,
html[data-theme="dark"] .faq-section h2,
html[data-theme="dark"] .related-section h3,
html[data-theme="dark"] .faq-question { color: #f1f5f9; }
html[data-theme="dark"] .control-item input,
html[data-theme="dark"] .control-item select { background: #0f172a; border-color: #475569; color: #e2e8f0; }
html[data-theme="dark"] .time-grid th { background: #0f172a; color: #94a3b8; border-color: #334155; }
html[data-theme="dark"] .time-grid td { border-color: #334155; color: #e2e8f0; }
html[data-theme="dark"] .faq-answer { color: #94a3b8; }
html[data-theme="dark"] .timezone-tag { background: #1e3a5f; border-color: #3b82f6; color: #93c5fd; }
