/* Forecast Sidebar */
.forecast-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 350px;
    height: 100vh;
    background: #000000;
    z-index: 15000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.forecast-sidebar.active {
    opacity: 1;
    visibility: visible;
}

.forecast-sidebar.slide-in {
    left: 0;
    transform: translateX(0);
}

.forecast-sidebar.slide-out {
    left: -400px;
    opacity: 0;
}

.sidebar-content {
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white !important;
    position: relative;
}

/* Ensure all sidebar text is white */
.forecast-sidebar *,
.forecast-sidebar h1,
.forecast-sidebar h2,
.forecast-sidebar h3,
.forecast-sidebar h4,
.forecast-sidebar h5,
.forecast-sidebar h6,
.forecast-sidebar p,
.forecast-sidebar span,
.forecast-sidebar div,
.forecast-sidebar button,
.forecast-sidebar input,
.sidebar-content *,
.sidebar-header *,
.sidebar-subtitle,
.sidebar-location-info *,
.sidebar-buttons *,
.sidebar-examples *,
.sidebar-loading-dots *,
.sidebar-input,
.sidebar-emoji {
    color: white !important;
}

/* Force white text for all forecast sidebar elements */
#forecastSidebar,
#forecastSidebar *,
#sidebarEmoji,
.sidebar-emoji {
    color: white !important;
}

.sidebar-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 10;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.sidebar-header {
    margin-bottom: 20px;
}

.sidebar-header i {
    font-size: 3rem;
    color: #60a5fa;
    margin-bottom: 16px;
    display: block;
}

.sidebar-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.sidebar-emoji {
    font-size: 2rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.sidebar-emoji.happy {
    animation: bounce 0.6s ease;
    color: #10b981;
}

.sidebar-emoji.sad {
    animation: shake 0.5s ease;
    color: #ef4444;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.sidebar-subtitle {
    font-size: 1rem;
    color: white !important;
    margin-bottom: 30px;
    line-height: 1.5;
    opacity: 0.9;
}

.sidebar-location-info {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #2563eb;
}

.sidebar-location-info p {
    margin: 8px 0;
    font-size: 0.85rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.sidebar-location-info i {
    color: #60a5fa !important;
}

.sidebar-examples {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.sidebar-examples p {
    margin: 0;
    font-size: 0.8rem;
    color: white !important;
    opacity: 0.7;
    font-style: italic;
}

.sidebar-loading-dots {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 16px;
}

.sidebar-loading-dots span {
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    animation: loadingDots 1.4s infinite ease-in-out;
}

.sidebar-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.sidebar-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 250px;
}

.sidebar-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    color: white;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.sidebar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.sidebar-btn:active {
    transform: translateY(0);
}

.sidebar-no {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3) !important;
}

.sidebar-no:hover {
    background: linear-gradient(135deg, #78716c 0%, #57534e 100%) !important;
    box-shadow: 0 6px 16px rgba(100, 116, 139, 0.4) !important;
}

.sidebar-manual {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3) !important;
}

.sidebar-manual:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4) !important;
}

.sidebar-search {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3) !important;
}

.sidebar-search:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4) !important;
}

.sidebar-manual-input {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 250px;
    margin-bottom: 20px;
}

.sidebar-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    transition: all 0.2s ease;
}

.sidebar-input:focus {
    outline: none;
    border-color: #2563eb;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.sidebar-input::placeholder {
    color: #94a3b8;
}

.sidebar-back-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #94a3b8;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.sidebar-back-btn:hover {
    border-color: #60a5fa;
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .forecast-sidebar {
        width: 100vw;
        left: -100vw;
    }
    
    .forecast-sidebar.slide-in {
        left: 0;
    }
    
    .forecast-sidebar.slide-out {
        left: -100vw;
    }
    
    .sidebar-content {
        padding: 30px 20px;
    }
    
    .sidebar-header h3 {
        font-size: 1.5rem;
    }
    
    .sidebar-buttons {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .sidebar-content {
        padding: 20px 16px;
    }
    
    .sidebar-header i {
        font-size: 2.5rem;
    }
    
    .sidebar-header h3 {
        font-size: 1.3rem;
    }
    
    .sidebar-subtitle {
        font-size: 0.9rem;
    }
    
    .sidebar-btn {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}

/* Smooth entrance animation */
.forecast-sidebar.active .sidebar-content > * {
    animation: slideInContent 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.forecast-sidebar.active .sidebar-content > *:nth-child(1) {
    animation-delay: 0.2s;
}

.forecast-sidebar.active .sidebar-content > *:nth-child(2) {
    animation-delay: 0.4s;
}

.forecast-sidebar.active .sidebar-content > *:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slideInContent {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Force white text on all sidebar and overlay elements */
.forecast-sidebar,
.forecast-sidebar *,
.alerts-overlay *,
.info-overlay * {
    color: white !important;
}

.sidebar-header h3,
.sidebar-subtitle,
.sidebar-location-info p,
.sidebar-examples p {
    color: white !important;
}

