/* World Clock Styles */

.world-clock-card {
    transition: box-shadow 0.2s ease;
    border-radius: 0.5rem;
}

.world-clock-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.world-clock-card .display-6 {
    font-variant-numeric: tabular-nums;
    font-weight: 300;
}

/* Comparison Grid */
.world-clock-grid {
    font-size: 0.875rem;
}

.world-clock-grid .sticky-col {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
    width: 2rem;
    min-width: 2rem;
}

.world-clock-grid thead .sticky-col {
    background: #212529;
}

.world-clock-grid th {
    white-space: nowrap;
    min-width: 7rem;
}

/* Business hours: green tint */
.world-clock-grid td.business-hours {
    background-color: #d4edda;
    color: #155724;
}

/* Night hours: gray tint */
.world-clock-grid td.night-hours {
    background-color: #e9ecef;
    color: #6c757d;
}

/* Current hour highlight */
.world-clock-grid tr.current-hour-row td {
    font-weight: 600;
    border-top: 2px solid #0d6efd;
    border-bottom: 2px solid #0d6efd;
}

.world-clock-grid tr.current-hour-row td.business-hours {
    background-color: #b7dfb9;
}

.world-clock-grid tr.current-hour-row td.night-hours {
    background-color: #d6d8db;
}

/* Legend boxes */
.legend-box {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.legend-box.business-hours {
    background-color: #d4edda;
    border: 1px solid #155724;
}

.legend-box.night-hours {
    background-color: #e9ecef;
    border: 1px solid #6c757d;
}

/* Day indicator badge */
.day-indicator {
    font-size: 0.7rem;
}

/* Time slider */
#timeSlider {
    cursor: pointer;
}

/* City search */
#citySearchResults .list-group-item {
    cursor: pointer;
    padding: 0.5rem 1rem;
}

#citySearchResults .list-group-item:hover {
    background-color: #f8f9fa;
}

#citySearchResults .list-group-item .city-region {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Format toggle */
.format-btn.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Responsive */
@media (max-width: 576px) {
    .world-clock-card .display-6 {
        font-size: 1.5rem;
    }

    .world-clock-grid {
        font-size: 0.75rem;
    }

    .world-clock-grid th {
        min-width: 5.5rem;
    }
}

/* Category card hover */
.converter-category-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.converter-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
