/* time-zone.css */

/* Comparator Panel */
.comparator-panel {
    padding: 2rem;
    border-radius: 24px;
    margin-bottom: 2rem;
}

.panel-header {
    text-align: center;
    margin-bottom: 2rem;
}

.panel-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.panel-header p {
    color: var(--text-secondary);
}

/* Toggle Switch */
.format-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-secondary);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgba(0, 242, 254, 0.2);
    border-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(18px);
    background-color: var(--accent-color);
}

.slider.round {
    border-radius: 34px;
}

.toggle-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Mini Toggle for Individual Columns */
.format-toggle-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.small-switch {
    width: 32px;
    height: 18px;
}

.small-switch .slider:before {
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
}

input:checked + .small-switch .slider:before {
    transform: translateX(14px);
}

.toggle-label-mini {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Zone Info Badge */
.zone-info-badge {
    font-size: 0.75rem;
    color: var(--accent-color);
    background: rgba(0, 242, 254, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

/* AM/PM Badge */
.ampm-badge {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-left: 5px;
    vertical-align: baseline;
}

.hidden {
    display: none;
}

/* Layout */
.comparator-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 900px) {
    .comparator-layout {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

/* Zone Columns */
.zone-column {
    flex: 1;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 300px;
}

body.light-mode .zone-column {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.zone-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

.zone-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.city-select {
    width: 100%;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Time Displays */
.time-display-large {
    margin: 1rem 0;
}

.time-display-large span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.target-time span {
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.date-display {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.date-picker-group {
    margin-top: auto;
    width: 100%;
}

.business-status {
    margin-top: auto;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Controls Column (Middle) */
.controls-column {
    flex: 0 0 300px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem;
}

.slider-wrapper {
    width: 100%;
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

body.light-mode .slider-wrapper {
    background: rgba(255,255,255,0.4);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Range Slider */
.time-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    outline: none;
    margin-bottom: 1rem;
    cursor: pointer;
}

body.light-mode .time-slider {
    background: rgba(0,0,0,0.1);
}

.time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-color);
    border: 3px solid var(--bg-color);
    margin-top: -8px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Diff Display */
.diff-display {
    font-size: 1.2rem;
    font-weight: 600;
}

.diff-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .diff-badge {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
}

/* Status Colors */
.status-business {
    background: rgba(81, 207, 102, 0.2);
    color: #51cf66;
    border: 1px solid rgba(81, 207, 102, 0.4);
}

.status-personal {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .status-personal {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
}

.status-night {
    background: rgba(118, 75, 162, 0.2);
    color: #a29bfe;
    border: 1px solid rgba(118, 75, 162, 0.4);
}

/* Shared Inputs */
.glass-select, .glass-input {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.8rem;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    outline: none;
    font-size: 1rem;
}

body.light-mode .glass-select, 
body.light-mode .glass-input {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-primary);
}

.glass-select option {
    background: var(--bg-color);
    color: var(--text-primary);
}

.small-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}
