/* ========================================
   Global Styles & Reset
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #007AFF;
    --primary-hover: #0051D5;
    --space-primary: #4A9EFF;
    --space-secondary: #6BB6FF;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    background: #000;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* ========================================
   Background Animations
   ======================================== */

.weather-section {
    position: relative;
    min-height: 100vh;
    padding: 20px 20px 40px;
    display: none;
    overflow: hidden;
}

.weather-section.active {
    display: block;
}

.weather-section::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    transition: opacity 1s ease;
}

/* Earth Weather Background */
.weather-section[data-bg="earth"]::before {
    background: 
        linear-gradient(135deg, rgba(10, 40, 80, 0.5) 0%, rgba(20, 60, 100, 0.45) 50%, rgba(30, 80, 120, 0.4) 100%),
        url('https://cdn.mos.cms.futurecdn.net/PoeiEn6JoDZSxjhFnUErbD-1200-80.jpeg') center/cover no-repeat;
    animation: slowPan 60s ease-in-out infinite alternate;
}

/* Space Weather Background */
.weather-section[data-bg="space"]::before {
    background: 
        linear-gradient(135deg, rgba(0, 51, 102, 0.4) 0%, rgba(20, 40, 80, 0.5) 50%, rgba(0, 20, 60, 0.6) 100%),
        url('https://www.esa.int/var/esa/storage/images/esa_multimedia/images/2020/06/low_sun_on_the_horizon/22063140-2-eng-GB/Low_Sun_on_the_horizon_pillars.jpg') center/cover no-repeat;
    animation: slowPan 60s ease-in-out infinite alternate;
}

@keyframes slowPan {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: -1;
    pointer-events: none;
}

/* ========================================
   Navigation
   ======================================== */

.glass-nav {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    animation: fadeIn 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
    font-size: 1.1rem;
}

.logo-icon {
    font-size: 1.5rem;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-links {
    display: flex;
    gap: var(--spacing-sm);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.15);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ========================================
   Glass Card Components
   ======================================== */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-normal);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
    transform: translateY(-2px);
}

/* ========================================
   Content Layout
   ======================================== */

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding-top: 60px; /* Add space for the clock above */
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ========================================
   Search Container
   ======================================== */

.search-container {
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    padding: var(--spacing-md);
    transition: all var(--transition-normal);
    border: 2px solid rgba(100, 180, 255, 0.4);
    box-shadow: 0 4px 24px rgba(80, 160, 240, 0.25), 0 0 50px rgba(100, 180, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: rgba(40, 80, 140, 0.12);
}

.search-container:hover {
    background: rgba(50, 100, 160, 0.18);
    border-color: rgba(120, 200, 255, 0.6);
    box-shadow: 0 8px 40px rgba(100, 180, 240, 0.4), 0 0 80px rgba(120, 200, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.search-icon {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(100, 180, 255, 0.3);
    border-radius: 8px;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    padding: var(--spacing-sm) 12px;
    font-family: inherit;
    transition: all var(--transition-fast);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(100, 180, 255, 0);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(120, 200, 255, 0.6);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 20px rgba(100, 180, 255, 0.3), 0 0 40px rgba(120, 200, 255, 0.2);
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-btn,
.fetch-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: linear-gradient(135deg, #007AFF 0%, #0096FF 100%);
    color: var(--text-primary);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.search-btn:hover,
.fetch-btn:hover {
    background: linear-gradient(135deg, #0096FF 0%, #00B4FF 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.5), 0 0 30px rgba(0, 180, 255, 0.3);
}

.search-btn:active,
.fetch-btn:active {
    transform: translateY(0);
}

/* ========================================
   Weather Data Display
   ======================================== */

.weather-data {
    animation: fadeIn 0.5s ease;
}

.weather-data.hidden,
.loading-state.hidden,
.error-state.hidden {
    display: none;
}

/* Location Card */
.location-card {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.location-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.location-country {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.weather-icon-large {
    font-size: 4rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.weather-description {
    font-size: 1.3rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.metric-card {
    padding: var(--spacing-md);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.metric-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.metric-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.metric-content {
    flex: 1;
}

.metric-label {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.metric-detail {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Info Grid */
.info-grid {
    margin-bottom: var(--spacing-lg);
}

.info-card {
    padding: var(--spacing-md);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.info-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Insights Card */
.insights-card {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.insights-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.insight-item {
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Interactive Features
   ======================================== */

/* Real-time Clock */
.live-clock {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    animation: fadeIn 1s ease;
}

.clock-icon {
    animation: pulse 2s ease-in-out infinite;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-xs);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.search-suggestions.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.suggestion-item {
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: var(--spacing-lg);
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    margin-bottom: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-action-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Data Refresh Indicator */
.refresh-indicator {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    font-size: 0.8rem;
    color: var(--text-tertiary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.refresh-indicator.active {
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

/* Tooltip System */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Particle Effect Container */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

/* Space Weather Specific Colors */
.weather-section[data-bg="space"] .search-btn,
.weather-section[data-bg="space"] .fetch-btn {
    background: var(--space-primary);
}

.weather-section[data-bg="space"] .search-btn:hover,
.weather-section[data-bg="space"] .fetch-btn:hover {
    background: var(--space-secondary);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
}

.weather-section[data-bg="space"] .glass-card:hover {
    background: rgba(74, 158, 255, 0.1);
}

/* Help Button */
.help-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 1);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.help-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

.help-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.6));
}

/* Keyboard Shortcuts Overlay */
.shortcuts-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.shortcuts-overlay.show {
    display: flex;
}

.shortcuts-modal {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

.shortcuts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.shortcuts-header h3 {
    color: white;
    font-size: 24px;
    margin: 0;
    font-weight: 600;
}

.close-shortcuts {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.close-shortcuts:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.shortcuts-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.shortcut-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.shortcut-item kbd {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 4px 12px;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: inline-block;
    min-width: 32px;
    text-align: center;
}

.shortcut-item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Info Button (superscript style) */
.info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    padding: 0;
    margin-left: 12px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    vertical-align: super;
    position: relative;
    top: -8px;
}

.info-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.info-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* About Modal Overlay */
.about-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.about-overlay.show {
    display: flex;
}

.about-modal {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 0;
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.4s ease;
}

.about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: static;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 24px 24px 0 0;
}

.about-header h3 {
    color: white;
    font-size: 26px;
    margin: 0;
    font-weight: 600;
}

.close-about {
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s ease;
    line-height: 1;
}

.close-about:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.about-body {
    padding: 24px 32px 32px;
    color: rgba(255, 255, 255, 0.95);
}

.about-section {
    margin-bottom: 28px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h4 {
    color: white;
    font-size: 20px;
    margin: 0 0 14px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-section p {
    line-height: 1.7;
    margin: 0 0 12px 0;
    font-size: 15px;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-section ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}

.about-section ul li {
    padding: 10px 0 10px 28px;
    position: relative;
    line-height: 1.6;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-section ul li:last-child {
    border-bottom: none;
}

.about-section ul li::before {
    content: "▹";
    position: absolute;
    left: 8px;
    color: rgba(74, 158, 255, 0.9);
    font-weight: bold;
    font-size: 18px;
}

.about-section ul li strong {
    color: rgba(255, 255, 255, 1);
    font-weight: 600;
}

.about-section ol {
    list-style: none;
    counter-reset: item;
    padding: 0;
    margin: 12px 0 0 0;
}

.about-section ol li {
    padding: 12px 0 12px 40px;
    position: relative;
    line-height: 1.6;
    font-size: 15px;
    counter-increment: item;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-section ol li:last-child {
    border-bottom: none;
}

.about-section ol li::before {
    content: counter(item);
    position: absolute;
    left: 8px;
    top: 12px;
    background: rgba(74, 158, 255, 0.3);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.about-section ol li strong {
    color: rgba(255, 255, 255, 1);
    font-weight: 600;
}

/* Scrollbar for About Modal */
.about-modal::-webkit-scrollbar {
    width: 10px;
}

.about-modal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 24px 24px 0;
}

.about-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.about-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Chart Styles
   ======================================== */

.chart-container {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.chart-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

canvas {
    max-height: 300px;
    width: 100% !important;
}

/* ========================================
   Interactive Elements
   ======================================== */

.control-panel {
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    padding: var(--spacing-md);
}

.control-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.control-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.control-select {
    flex: 1;
    min-width: 150px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.control-select:hover {
    background: rgba(255, 255, 255, 0.15);
}

.control-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.control-select option {
    background: #1a1a1a;
    color: var(--text-primary);
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.summary-card {
    padding: var(--spacing-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.summary-card:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.summary-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.summary-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-xs);
}

.summary-value {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Events Container */
.events-container {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.events-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-height: 400px;
    overflow-y: auto;
}

.events-list::-webkit-scrollbar {
    width: 8px;
}

.events-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.events-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.events-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.event-item {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    border-left: 3px solid;
    animation: slideInLeft 0.3s ease;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.event-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.event-item.FLR {
    border-left-color: #FFD700;
}

.event-item.CME {
    border-left-color: #FF6347;
}

.event-item.GST {
    border-left-color: #00CED1;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.event-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.event-type.FLR {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
}

.event-type.CME {
    background: rgba(255, 99, 71, 0.2);
    color: #FF6347;
}

.event-type.GST {
    background: rgba(0, 206, 209, 0.2);
    color: #00CED1;
}

.event-time {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* Impact Card */
.impact-card {
    padding: var(--spacing-lg);
}

.impact-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.impact-item {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.impact-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.impact-icon {
    font-size: 1.5rem;
}

.impact-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.impact-list {
    list-style: none;
}

.impact-list li {
    color: var(--text-secondary);
    padding-left: var(--spacing-md);
    position: relative;
    margin-bottom: 0.5rem;
}

.impact-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ========================================
   Loading & Error States
   ======================================== */

.loading-state,
.error-state {
    text-align: center;
    padding: var(--spacing-xl);
    animation: fadeIn 0.3s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.loading-state p,
.error-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    position: relative;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding: var(--spacing-lg) var(--spacing-md);
    margin-top: var(--spacing-xl);
    z-index: 100;
}

.footer-content {
    text-align: center;
}

.footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.divider {
    color: var(--text-tertiary);
}

.footer-subtext {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* ========================================
   Animations
   ======================================== */

.fade-in {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .nav-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid,
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .control-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-text {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .divider {
        display: none;
    }
    
    /* Mobile optimization for search and quick actions */
    .search-container {
        flex-direction: column;
        gap: 12px;
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }
    
    .search-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-input {
        font-size: 16px; /* Prevents zoom on iOS */
        width: 100%;
        padding: 12px;
        text-align: center;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .quick-actions {
        gap: 8px;
        margin-top: 12px;
    }
    
    .quick-action-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
        justify-content: center;
        font-size: 11px;
        padding: 10px 12px;
    }
    
    /* Shortcuts modal for mobile */
    .shortcuts-modal {
        width: 95%;
        padding: 24px 20px;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .shortcut-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    /* About section header for mobile */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .info-btn {
        width: 24px;
        height: 24px;
        top: -6px;
    }
    
    .info-btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* About modal for mobile */
    .about-modal {
        width: 95%;
        padding: 24px 20px;
        max-height: 85vh;
    }
    
    .about-header h2 {
        font-size: 22px;
    }
    
    .about-section h3 {
        font-size: 16px;
    }
    
    .about-section p,
    .about-section li {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .location-name {
        font-size: 2rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .summary-value {
        font-size: 2rem;
    }
    
    /* Extra small screens optimization */
    .search-container {
        padding: 12px;
        margin-bottom: var(--spacing-sm);
    }
    
    .search-input {
        font-size: 16px;
        padding: 14px 12px;
    }
    
    .quick-action-btn {
        font-size: 10px;
        padding: 8px 10px;
        gap: 4px;
    }
    
    .search-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .live-clock {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .shortcuts-modal {
        padding: 20px 16px;
    }
    
    .shortcuts-header h3 {
        font-size: 20px;
    }
    
    /* Info button for extra small screens */
    .info-btn {
        width: 22px;
        height: 22px;
        top: -5px;
        margin-left: 8px;
    }
    
    .about-modal {
        padding: 20px 16px;
    }
    
    .about-header h2 {
        font-size: 20px;
    }
    
    .about-section h3 {
        font-size: 15px;
    }
}

/* ========================================
   Authentication UI
   ======================================== */

.auth-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    color: var(--text-primary);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #FF3B30;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.auth-btn {
    background: linear-gradient(135deg, #007AFF 0%, #0096FF 100%);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.user-menu {
    position: relative;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 6px 14px 6px 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

.user-avatar-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007AFF 0%, #0096FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    min-width: 200px;
    padding: 8px;
    box-shadow: var(--glass-shadow);
    z-index: 1000;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-primary);
    font-size: 14px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

/* Auth Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.auth-modal {
    max-width: 450px;
    width: 90%;
    padding: var(--spacing-xl);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.auth-tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-tab.active {
    color: var(--text-primary);
    border-bottom-color: #007AFF;
}

.auth-form h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 14px;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-group input::placeholder {
    color: var(--text-tertiary);
}

.auth-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #007AFF 0%, #0096FF 100%);
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 24px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-message {
    margin-top: var(--spacing-md);
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.auth-message.success {
    background: rgba(52, 199, 89, 0.1);
    color: #34C759;
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.auth-message.error {
    background: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
    border: 1px solid rgba(255, 59, 48, 0.3);
}

.hidden {
    display: none !important;
}

/* ==================== Notification Panel Styles ==================== */

.notification-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 400px;
    max-height: 600px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.notification-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
}

.notification-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.notification-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.notification-list::-webkit-scrollbar {
    width: 8px;
}

.notification-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.notification-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.notification-empty p {
    margin: 0;
    font-size: 1rem;
}

.notification-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.notification-item.unread {
    border-left-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.notification-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content h4 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-content p {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.notification-email-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    background: #ff3b30;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notification-badge.hidden {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .notification-panel {
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
        top: 70px;
    }
    
    .notification-item {
        padding: 12px;
    }
    
    .notification-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #667eea;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-slider.round {
    border-radius: 34px;
}

.toggle-slider.round:before {
    border-radius: 50%;
}
 
 
 