/* Time Zone Converter Styles */

.timezone-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timezone-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background-color: rgba(255, 255, 255, 0.02);
}

/* Hourly blocks scrollable track */
.timeline-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.timeline-scroll::-webkit-scrollbar {
    height: 6px;
}

.timeline-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* Hourly Block Color Classes */
.hour-block {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 52px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.hour-block-green {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.hour-block-green:hover, .hour-block-green.active {
    background-color: #10b981;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.hour-block-yellow {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.hour-block-yellow:hover, .hour-block-yellow.active {
    background-color: #f59e0b;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.hour-block-red {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.hour-block-red:hover, .hour-block-red.active {
    background-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

/* Time range slider */
.custom-range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.custom-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6366f1;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    transition: transform 0.1s ease;
}

.custom-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.custom-range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: #6366f1;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    transition: transform 0.1s ease;
}

.custom-range-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.world-time-text {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.timezone-search-container {
    position: relative;
}

.timezone-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    max-height: 250px;
    overflow-y: auto;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
}

.dark .timezone-search-dropdown {
    background-color: #0f0f11;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.timezone-search-item {
    padding: 10px 14px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark .timezone-search-item {
    color: #a1a1aa;
}

.timezone-search-item:hover {
    background-color: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
}

.dark .timezone-search-item:hover {
    background-color: rgba(99, 102, 241, 0.1);
    color: #ffffff;
}
