/* ===========================================
   FASTING CALENDAR - CLEAN CONSOLIDATED CSS
   ===========================================
   Final clean version with all fixes and no duplicates
*/

/* ===========================================
   THEME VARIABLES
=========================================== */
:root {
    /* Orange Theme (Primary) */
    --theme-primary: linear-gradient(135deg, #ff6b35, #f7931e);
    --theme-primary-solid: #ff6b35;
    --theme-primary-light: #ff8f65;
    --theme-primary-dark: #e55a2b;
    --theme-secondary: linear-gradient(135deg, #ffd23f, #ff6b35);
    --theme-accent: #ff4757;
    
    /* Background Colors */
    --background-light: #fef7f0;
    --background-dark: #1a1414;
    --surface-light: #ffffff;
    --surface-dark: #2d2424;
    
    /* Text Colors */
    --text-primary-light: #2d1b1b;
    --text-secondary-light: #7c4a3a;
    --text-disabled-light: #a67c6a;
    --text-primary-dark: #f5f5f5;
    --text-secondary-dark: #ccb8b8;
    --text-disabled-dark: #8a7575;
    --text-inverse: #ffffff;
    
    /* Borders and Shadows */
    --border-color-light: #f4e4d6;
    --border-color-dark: #4a3535;
    --border-accent: #ff6b35;
    --shadow-sm: 0 2px 8px rgba(255, 107, 53, 0.12);
    --shadow-md: 0 4px 16px rgba(255, 107, 53, 0.16);
    --shadow-lg: 0 8px 32px rgba(255, 107, 53, 0.24);
    
    /* Functional Colors */
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    --info-color: #3498db;
    
    /* Typography - Optimized Sizes */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.7rem;     /* 11px */
    --font-size-sm: 0.8rem;     /* 13px */
    --font-size-md: 0.9rem;     /* 14px */
    --font-size-lg: 1rem;       /* 16px */
    --font-size-xl: 1.1rem;     /* 18px */
    --font-size-2xl: 1.3rem;    /* 21px */
    --font-size-3xl: 1.6rem;    /* 26px */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing - Optimized */
    --spacing-xs: 0.2rem;       /* 3px */
    --spacing-sm: 0.4rem;       /* 6px */
    --spacing-md: 0.8rem;       /* 13px */
    --spacing-lg: 1.2rem;       /* 19px */
    --spacing-xl: 1.6rem;       /* 26px */
    --spacing-xxl: 2.4rem;      /* 38px */
    
    /* Border Radius */
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --border-radius-lg: 18px;
    --border-radius-xl: 24px;
    --border-radius-full: 9999px;
    
    /* Layout */
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 80px;
    --header-height: 56px;
    --info-sidebar-width: 320px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-index layers */
    --z-header: 100;
    --z-sidebar: 200;
    --z-modal: 300;
    --z-toast: 400;
    --z-dropdown: 150;
}

/* Dark Mode Variables */
body.dark-mode {
    --background-light: var(--background-dark);
    --surface-light: var(--surface-dark);
    --text-primary-light: var(--text-primary-dark);
    --text-secondary-light: var(--text-secondary-dark);
    --text-disabled-light: var(--text-disabled-dark);
    --border-color-light: var(--border-color-dark);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Alternative Themes */
[data-theme="purple"], body.theme-purple {
    --theme-primary: linear-gradient(135deg, #8b5cf6, #7c3aed);
    --theme-primary-solid: #8b5cf6;
    --theme-primary-light: #a78bfa;
    --theme-primary-dark: #7c3aed;
    --theme-secondary: linear-gradient(135deg, #ec4899, #8b5cf6);
    --theme-accent: #ec4899;
    --background-light: #faf7ff;
    --border-color-light: #e9e3ff;
}

[data-theme="green"], body.theme-green {
    --theme-primary: linear-gradient(135deg, #10b981, #059669);
    --theme-primary-solid: #10b981;
    --theme-primary-light: #34d399;
    --theme-primary-dark: #059669;
    --theme-secondary: linear-gradient(135deg, #3b82f6, #10b981);
    --theme-accent: #06b6d4;
    --background-light: #f0fdf9;
    --border-color-light: #d1fae5;
}

[data-theme="blue"], body.theme-blue {
    --theme-primary: linear-gradient(135deg, #3b82f6, #2563eb);
    --theme-primary-solid: #3b82f6;
    --theme-primary-light: #60a5fa;
    --theme-primary-dark: #2563eb;
    --theme-secondary: linear-gradient(135deg, #06b6d4, #3b82f6);
    --theme-accent: #8b5cf6;
    --background-light: #f8faff;
    --border-color-light: #dbeafe;
}

/* ===========================================
   BASE STYLES
=========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    line-height: 1.6;
    color: var(--text-primary-light);
    background: var(--background-light);
    transition: all var(--transition-normal);
    overflow-x: hidden;
}

/* Enhanced scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--theme-primary);
    border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--theme-primary-dark);
}

/* ===========================================
   ENHANCED BUTTON SYSTEM
=========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
}

/* Shimmer effect for buttons */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

/* Primary Button */
.btn-primary {
    background: var(--theme-primary);
    color: var(--text-inverse);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1);
    transition: all 0.1s;
}

/* Secondary Button */
.btn-secondary {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary-gradient);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e55a2b, #e67a35);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* Button Sizes */
.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-sm);
    border-radius: var(--border-radius-sm);
}

.btn-lg {
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: var(--font-size-lg);
    border-radius: var(--border-radius-lg);
}

/* Icon Button */
.btn-icon {
    width: 40px;
    padding: 0;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* Sign Out Button - Special Styling */
.sign-out-btn,
.btn-sign-out,
button[onclick*="signOut"],
button[onclick*="logout"],
a[href*="signOut"],
a[href*="logout"] {
    background: rgba(220, 53, 69, 0.9) !important;
    color: white !important;
    border: 2px solid rgba(220, 53, 69, 0.7) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3) !important;
}

.sign-out-btn:hover,
.btn-sign-out:hover,
button[onclick*="signOut"]:hover,
button[onclick*="logout"]:hover {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4) !important;
}

/* ===========================================
   APP LAYOUT
=========================================== */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--background-light);
}

/* Enhanced Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background: var(--surface-light);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
    z-index: var(--z-sidebar);
    overflow-y: auto;
    position: relative;
}

/* Professional Sidebar Design */

/* Hide old sidebar styles */
.sidebar-header,
.user-profile,
.sidebar-unified-header {
    display: none !important;
}

/* Main Professional Header Container */
.sidebar-professional-header {
    background: linear-gradient(135deg, rgb(255, 107, 53), rgb(124, 118, 247));
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.sidebar-professional-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>') repeat;
    pointer-events: none;
}

/* App Branding Section */
.app-branding-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px 20px 20px;
    position: relative;
    z-index: 2;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.logo-icon {
    font-size: 24px;
    color: white;
}

.app-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: white;
    letter-spacing: -0.5px;
}

.app-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.sidebar-toggle.professional {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.sidebar-toggle.professional:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Elegant Divider */
.elegant-divider {
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin: 8px 0 16px 0;
    position: relative;
    z-index: 2;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(255, 0, 0), transparent);
}

.divider-ornament {
    margin: 0 12px;
    color: rgb(255, 0, 0);
    font-size: 6px;
}

/* User Profile Section */
.user-profile-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px 24px 20px;
    position: relative;
    z-index: 2;
}

.user-avatar-container {
    position: relative;
}

.user-avatar.professional {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.user-avatar.professional:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.user-avatar.professional img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: #4CAF50;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

.user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: white;
    letter-spacing: -0.2px;
}

.user-status-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-text {
    font-size: 0.85rem;
    color: rgba(65, 247, 28, 0.8);
    font-weight: 400;
}

.user-actions {
    display: flex;
    gap: 8px;
}

.quick-action-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Navigation Menu */
.nav-menu.professional {
    margin-top: 0;
    padding-top: 8px;
}

.nav-menu.professional ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Enhanced Footer */
.sidebar-footer.professional {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    padding: 20px;
}

.theme-toggle.elegant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.switch.modern {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch.modern input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch.modern .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.switch.modern .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch.modern input:checked + .slider {
    background: rgba(76, 175, 80, 0.8);
}

.switch.modern input:checked + .slider:before {
    transform: translateX(26px);
}

.app-info.elegant {
    text-align: center;
}

.version-text {
    font-size: 0.8rem;
    color: rgb(242 50 0);
    display: block;
    margin-bottom: 4px;
}

.indian-flag {
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
    border: 1px solid #ddd;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.company-info {
    text-align: center;
    line-height: 1.4;
}

.heart {
    color: #ff6b6b;
    animation: heartbeat 2s ease-in-out infinite;
}

.guruji-brand {
    font-weight: 600;
    color: #ff6b35;
    display: block;
    margin-top: 2px;
}

.copyright {
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Dark mode support for the flag */
body.dark-mode .indian-flag {
    border-color: #555;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .app-branding-section {
        padding: 20px 16px 16px 16px;
    }
    
    .logo-container {
        gap: 12px;
    }
    
    .logo-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .app-title {
        font-size: 1.2rem;
    }
    
    .user-profile-section {
        padding: 0 16px 20px 16px;
        gap: 12px;
    }
    
    .user-avatar.professional {
        width: 48px;
        height: 48px;
    }
    
    .user-actions {
        display: none; /* Hide on mobile for cleaner look */
    }
}

/* Dark mode adjustments */
.dark-mode .sidebar-professional-header {
    background: linear-gradient(135deg, rgb(160, 75, 40), rgb(88, 82, 200));
}

/* Smooth animations */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-professional-header {
    animation: slideInFromTop 0.6s ease-out;
}

/* Hover effects for the entire header */
.sidebar-professional-header:hover .logo-icon-wrapper {
    transform: rotate(5deg) scale(1.05);
}

.sidebar-professional-header:hover .status-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}
auth-alternative {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.auth-alternative a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.gateway-number {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    text-align: center;
    margin: 15px 0;
    letter-spacing: 2px;
}

.verification-steps {
    text-align: center;
}

.instructions ol {
    text-align: left;
    margin: 20px 0;
    padding-left: 20px;
}

.verification-status {
    background: #f7f9ff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.status-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.info-box {
    background: #e6fffa;
    border: 1px solid #81e6d9;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
}

.pin-rules {
    background: #f8f9ff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.pin-rules h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #667eea;
}

.pin-rules ul {
    margin: 0;
    padding-left: 20px;
}

.pin-rules li {
    margin: 5px 0;
    font-size: 13px;
    color: #666;
}
/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #ff6b35, #7c76f7);
    color: var(--text-inverse);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo h1 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin: 0;
}

.logo-icon {
    font-size: var(--font-size-2xl);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Navigation */
.nav-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    color: var(--text-primary-light);
    margin: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
}

.nav-item:hover {
    background: linear-gradient(135deg, var(--theme-primary-light), var(--theme-primary-solid));
    color: var(--text-inverse);
    transform: translateX(8px);
    box-shadow: var(--shadow-sm);
}

.nav-item.active {
    background: var(--theme-primary);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -var(--spacing-sm);
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--theme-accent);
    border-radius: 0 2px 2px 0;
}

.nav-item i {
    font-size: var(--font-size-md);
    margin-right: var(--spacing-md);
    width: 20px;
    text-align: center;
}

/* ===========================================
   ENHANCED HEADER
=========================================== */
.top-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    background:linear-gradient(5deg, #6e67fde6, #ff6b35, #6e67fde6);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: var(--z-header);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.header-left h2 {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Hamburger Menu Button */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
}

.sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.sidebar-toggle i {
    font-size: 18px;
    transition: transform var(--transition-fast);
}

.sidebar-toggle:hover i {
    transform: rotate(90deg);
}

/* Enhanced Search Box */
.search-container {
    position: relative;
    width: 350px;
    max-width: 100%;
}

.search-input, 
input[type="search"],
input[placeholder*="Search"],
input[placeholder*="search"] {
    width: 100% !important;
    padding: 12px 20px 12px 45px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 25px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #333 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
}

.search-input:focus,
input[type="search"]:focus,
input[placeholder*="Search"]:focus,
input[placeholder*="search"]:focus {
    border-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3), 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
    background: rgba(255, 255, 255, 1) !important;
}

/* Search icon */
.search-container::before {
    content: '🔍' !important;
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 16px !important;
    z-index: 10 !important;
    pointer-events: none !important;
    color: #666 !important;
}

/* User Avatar */
.user-avatar,
.user-avatar-small,
.profile-pic {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    object-fit: cover !important;
}

.user-avatar:hover,
.user-avatar-small:hover,
.profile-pic:hover {
    border-color: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* ===========================================
   CALENDAR COMPONENTS
=========================================== */
.calendar-grid-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--surface-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin: var(--spacing-lg);
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.calendar-grid-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--theme-primary);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

/* Calendar Toolbar - WHITE BACKGROUND WITH ORANGE ELEMENTS */
.calendar-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 24px !important;
    background: white !important;
    color: #333 !important;
    flex-wrap: nowrap !important;
    gap: 24px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid #e0e0e0 !important;
    min-height: 80px !important;
    
    /* Rounded corners */
    border-radius: 16px !important;
    
    /* Optional: Add margin to prevent touching edges */
    margin: 16px 20px 0 20px !important;
    
    /* Remove border-bottom for cleaner rounded look */
    border-bottom: none !important;
    
    /* Enhanced shadow for rounded design */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.calendar-navigation {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.calendar-navigation h3,
#current-month-display {
    margin: 0 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #333 !important;
    text-shadow: none !important;
    min-width: 200px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* Navigation buttons - ORANGE */
.calendar-navigation .btn-icon,
#prev-month,
#next-month {
    background: #ff6b35 !important;
    border: 2px solid #ff6b35 !important;
    color: white !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3) !important;
}

.calendar-navigation .btn-icon:hover,
#prev-month:hover,
#next-month:hover {
    background: #e55a2b !important;
    border-color: #e55a2b !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4) !important;
}

/* Calendar Actions */
.calendar-actions {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
}

/* Today Button - ORANGE */
#today-btn {
    background: #ff6b35 !important;
    color: white !important;
    border: 2px solid #ff6b35 !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    border-radius: 20px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3) !important;
    font-size: 14px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

#today-btn:hover {
    background: #e55a2b !important;
    border-color: #e55a2b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4) !important;
}

/* View Switcher - ORANGE */
.view-switcher {
    display: flex !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    background: white !important;
    flex-shrink: 0 !important;
    height: 40px !important;
    border: 2px solid #ff6b35 !important;
}

.view-btn {
    padding: 0 16px !important;
    background: white !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: #ff6b35 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    position: relative !important;
    min-width: 60px !important;
    border-right: 1px solid #ff6b35 !important;
}

.view-btn:last-child {
    border-right: none !important;
}

.view-btn:hover {
    background: rgba(255, 107, 53, 0.1) !important;
    color: #e55a2b !important;
}

.view-btn.active {
    background: #ff6b35 !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Weekdays Header - KEEP ORANGE */
.weekdays {
    background: linear-gradient(135deg, #ff6b35, #550dfd) !important;
    color: white !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.5px !important;
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    text-align: center !important;
    padding: 12px 0 !important;
    font-size: 14px !important;
}


/* Calendar Days */
.day {
    border: 1px solid var(--border-color-light);
    padding: var(--spacing-xs);
    position: relative;
    overflow-y: auto;
    transition: all var(--transition-fast);
    cursor: pointer;
    background: var(--surface-light);
    font-size: var(--font-size-sm);
}

.day:hover {
    background: linear-gradient(135deg, var(--theme-primary-light), var(--theme-primary));
    color: var(--text-inverse);
    transform: scale(1.02);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.day.empty {
    background: var(--background-light);
    opacity: 0.5;
}

.day-number {
    position: absolute;
    top: var(--spacing-xs);
    left: var(--spacing-xs);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    border-radius: var(--border-radius-full);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

/* Today's Date - ORANGE NUMBER ONLY */
.day.today {
    background: var(--surface-light) !important;
    color: var(--text-primary-light) !important;
    box-shadow: none !important;
    border: 1px solid var(--border-color-light) !important;
}

.day.today .day-number {
    background: transparent !important;
    color: #ff6b35 !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    text-shadow: 0 1px 3px rgba(255, 107, 53, 0.3) !important;
    border: 2px solid #ff6b35 !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
}

.day.today:hover .day-number {
    background: rgba(255, 107, 53, 0.1) !important;
    transform: scale(1.1) !important;
}

.day:not(.today) .day-number {
    border: none !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary-light) !important;
}

/* Day Occasions */
.day-occasions {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* OCCASION INDICATORS - COLORS FROM API */
.occasion-indicator,
.occasion-bubble,
.event-indicator {
    /* Background color will be set by JavaScript from API */
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    margin-bottom: 3px !important;
    display: inline-block !important;
    max-width: 100% !important;
}

.occasion-indicator:hover,
.occasion-bubble:hover,
.event-indicator:hover {
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    filter: brightness(1.1) saturate(1.1) !important;
}

/* Light background occasions */
.occasion-indicator.light-bg,
.occasion-bubble.light-bg {
    color: #333 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* ===========================================
   ENHANCED SIDEBAR COMPONENTS
=========================================== */
.info-sidebar {
    width: var(--info-sidebar-width);
    background: var(--surface-light);
    border-left: 3px solid var(--theme-primary);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-md);
    font-size: var(--font-size-sm);
}

/* COMPACT ACCORDIONS */
.filter-accordion {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-section,
.sidebar-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #f0f0f0;
    margin-bottom: 4px;
}

.filter-section-title,
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ff6b35, #7c76f7);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    font-size: 14px;
}

.filter-section-title:hover,
.section-header:hover {
    background: linear-gradient(135deg, #e55a2b, #7c76f7);
}

.filter-section-title h3,
.section-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.filter-section-title::after,
.section-header::after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.3s ease;
    color: white;
}

.filter-section.collapsed .filter-section-title::after,
.sidebar-section.collapsed .section-header::after {
    transform: rotate(-90deg);
}

.filter-section-content {
    padding: 12px 16px;
    background: white;
    max-height: 200px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.filter-section.collapsed .filter-section-content {
    max-height: 0;
    padding: 0 16px;
    overflow: hidden;
}

/* Compact Filter Bubbles */
.filter-bubble {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #e8e8e8;
    font-size: 13px;
}

.filter-bubble:hover {
    background: #f8f9fa;
    border-color: #ff6b35;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

.filter-bubble.active {
    background: rgba(255, 107, 53, 0.1);
    border-color: #ff6b35;
    font-weight: 600;
    box-shadow: 0 1px 6px rgba(255, 107, 53, 0.2);
}

.filter-bubble-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.filter-name {
    flex: 1;
    font-weight: 500;
    color: #333;
    font-size: 13px;
}

/* UPCOMING OCCASIONS - NO ACCORDION */
.sidebar-section:last-child,
.upcoming-occasions-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: visible;
    border: 1px solid #f0f0f0;
    margin-bottom: 16px;
    padding: 16px;
}

.sidebar-section:last-child .section-header,
.upcoming-occasions-section .section-header {
    padding: 0 0 12px 0;
    background: transparent;
    color: #333;
    cursor: default;
    border-bottom: 2px solid #ff6b35;
    margin-bottom: 16px;
}

.sidebar-section:last-child .section-header h3,
.upcoming-occasions-section .section-header h3 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.sidebar-section:last-child .section-header::after,
.upcoming-occasions-section .section-header::after {
    display: none;
}

.upcoming-list {
    display: block;
    max-height: none;
    overflow: visible;
    padding: 0;
}

.upcoming-occasion-item,
.occasion-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.upcoming-occasion-item:last-child,
.occasion-item:last-child {
    border-bottom: none;
}

.upcoming-occasion-item:hover,
.occasion-item:hover {
    background: rgba(255, 107, 53, 0.05);
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
}

/* ===========================================
   ORANGE CENTERED USER PROFILE
=========================================== */

.user-profile {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: linear-gradient(135deg, #ff6b35, #7c76f7);
    color: white;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 120px;
    gap: var(--spacing-sm);
}

/* Subtle pattern overlay */
.user-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* User Avatar */
.user-profile .user-avatar,
.user-profile .profile-pic-clickable {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-profile .user-avatar:hover,
.user-profile .profile-pic-clickable:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.user-profile .profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* User Info Container */
.user-profile .user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    position: relative;
    z-index: 2;
    width: 100%;
}

/* User Name */
.user-profile .user-name {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    color: white;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    text-align: center;
}

/* User Status Container */
.user-profile .user-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.9);
    flex-wrap: wrap;
    width: 100%;
}

/* Active Status */
.user-profile .status-active {
    color: #4ade80;
    font-weight: var(--font-weight-semibold);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.user-profile .status-active::before {
    content: '●';
    color: #4ade80;
    font-size: 8px;
    animation: pulse 2s infinite;
}

/* Separator */
.user-profile .user-status::after {
    content: '|';
    color: rgba(255, 255, 255, 0.5);
    font-weight: var(--font-weight-light);
}

/* Sign Out Link */
.user-profile .signout-link,
.user-profile #sidebar-signout {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all 0.3s ease;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.user-profile .signout-link:hover,
.user-profile #sidebar-signout:hover {
    color: #fee2e2;
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Enhanced hover effect for sign out */
.user-profile .signout-link::before,
.user-profile #sidebar-signout::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.user-profile .signout-link:hover::before,
.user-profile #sidebar-signout:hover::before {
    left: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-profile {
        padding: var(--spacing-md) var(--spacing-sm);
        min-height: 100px;
    }
    
    .user-profile .user-avatar,
    .user-profile .profile-pic-clickable {
        width: 50px;
        height: 50px;
    }
    
    .user-profile .user-name {
        font-size: var(--font-size-sm);
    }
    
    .user-profile .user-status {
        font-size: var(--font-size-xs);
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .user-profile .user-status::after {
        display: none;
    }
}

/* Dark mode enhancements (maintains orange background) */
body.dark-mode .user-profile {
    background: linear-gradient(135deg, #ff6b35, #7c76f7);
}

body.dark-mode .user-profile .user-avatar,
body.dark-mode .user-profile .profile-pic-clickable {
    border-color: rgba(255, 255, 255, 0.4);
}

body.dark-mode .user-profile .signout-link:hover,
body.dark-mode .user-profile #sidebar-signout:hover {
    background: rgba(220, 38, 38, 0.3);
}

/* Animation for active status */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.9);
    }
}

/* Enhanced visual depth */
.user-profile {
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Alternative layout for very long names */
.user-profile.compact {
    min-height: 90px;
    padding: var(--spacing-sm);
}

.user-profile.compact .user-avatar,
.user-profile.compact .profile-pic-clickable {
    width: 45px;
    height: 45px;
}

.user-profile.compact .user-name {
    font-size: var(--font-size-sm);
    line-height: 1.1;
}

/* Print styles */
@media print {
    .user-profile {
        background: #ff6b35 !important;
        color: white !important;
        box-shadow: none !important;
    }
    
    .user-profile::before {
        display: none !important;
    }
}

/* ===========================================
   PROFESSIONAL CHECKBOXES
=========================================== */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px !important;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: var(--spacing-sm);
    flex-shrink: 0;
}

input[type="checkbox"]:hover {
    border-color: var(--theme-primary-solid);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

input[type="checkbox"]:checked {
    background: var(--theme-primary-solid);
    border-color: var(--theme-primary-solid);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

/* ===========================================
   NOTIFICATION PANEL - ROUNDED CORNERS
=========================================== */
#notifications-panel,
.panel[id*="notification"] {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 4px solid #ff6b35;
    border-radius: 20px 0 0 20px;
    overflow: hidden;
}

#notifications-panel.active,
#notifications-panel.show,
#notifications-panel.visible {
    right: 0;
}

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.notification-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.panel-header {
    padding: 20px;
    background: linear-gradient(135deg, #ff6b35, #7c76f7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px 0 0 0;
}

.panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.close-panel,
.panel-close-btn,
#notifications-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-panel:hover,
.panel-close-btn:hover,
#notifications-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: white;
}

.panel-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    flex-shrink: 0;
    border-radius: 0 0 0 20px;
}

/* Notification Bell Enhancement */
.btn-icon[data-panel="notifications"],
button[onclick*="notification"],
.notification-bell {
    position: relative;
    transition: all 0.3s ease;
}

.btn-icon[data-panel="notifications"]:hover,
button[onclick*="notification"]:hover,
.notification-bell:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
}

/* ===========================================
   COMPACT MODAL - REDUCED SIZE
=========================================== */
#occasion-modal .modal-content {
    background: linear-gradient(135deg, #ff6b35, #7c76f7);
    border-radius: 16px;
    border: 2px solid #ff6b35;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    max-width: 720px;
    width: 90%;
    max-height: 85vh;
    color: white;
}

.occasion-header {
    background: linear-gradient(135deg, #ff6b35, #7c76f7);
    padding: 16px 20px;
    position: relative;
}

.occasion-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.occasion-color-badge {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.occasion-title {
    flex: 1;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.occasion-content {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
}

.details-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    position: relative;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 107, 53, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #ff6b35;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-label i {
    font-size: 14px;
    width: 16px;
    text-align: center;
    color: #ff8f65;
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
    color: #ecf0f1;
    line-height: 1.4;
    word-break: break-word;
}

/* Astronomical Column */
.astronomical-column {
    flex: 1;
    padding: 16px;
    background: rgba(103, 126, 234, 0.18);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(103, 126, 234, 0.25);
    border-radius: 16px;
    color: #e0e6ff;
    position: relative;
}

.astronomical-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 16px;
    color: #a5b3ff;
    position: relative;
    z-index: 1;
}

.astronomical-header i {
    font-size: 16px;
    color: #bb86fc;
}

.moon-phase-container {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    z-index: 1;
}

.moon-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.moon-image-container {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(103, 126, 234, 0.6);
}

.moon-phase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.3) contrast(1.15);
}

.moon-phase-name {
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.moon-illumination {
    font-size: 11px;
    opacity: 0.9;
    color: #a5b3ff;
    font-weight: 500;
}

.astronomical-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.time-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.time-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.time-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.time-info {
    flex: 1;
    min-width: 0;
}

.time-label {
    font-size: 9px;
    opacity: 0.8;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #a5b3ff;
}

.time-value {
    font-weight: 700;
    font-size: 12px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.detail-actions {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.detail-actions .btn {
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    backdrop-filter: blur(10px);
}

.detail-actions .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.detail-actions .btn-danger {
    border-color: rgba(231, 76, 60, 0.6);
    background: rgba(231, 76, 60, 0.15);
}

.detail-actions .btn-danger:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* ===========================================
   VIEW LAYOUTS
=========================================== */

/* Day View */
.day-view,
.view-container[data-view="day"] {
    display: flex;
    flex-direction: row;
    height: 100%;
    overflow: hidden;
}

.day-time-column,
.time-column {
    width: 80px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
    flex-shrink: 0;
}

.time-slot {
    padding: 8px 12px;
    border-bottom: 1px solid #e9ecef;
    font-size: 12px;
    color: #666;
    text-align: center;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-events-area,
.events-area {
    flex: 1;
    overflow-y: auto;
    position: relative;
    background: white;
}

.day-event,
.event-block {
    position: absolute;
    left: 4px;
    right: 4px;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Year View */
.year-view,
.view-container[data-view="year"] {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding: 20px;
}

.year-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.year-month {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.year-month-header {
    background: linear-gradient(135deg, #ff6b35, #7c76f7);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.year-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #f8f9fa;
    padding: 8px;
}

.year-day {
    background: white;
    padding: 4px;
    text-align: center;
    font-size: 11px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.year-day:hover {
    background: rgba(255, 107, 53, 0.1);
}

.year-day.today {
    background: #ff6b35;
    color: white;
    font-weight: bold;
}

.year-day.has-events {
    position: relative;
}

.year-day.has-events::after {
    content: '•';
    position: absolute;
    bottom: 2px;
    right: 2px;
    color: #ff6b35;
    font-size: 8px;
}

/* ===========================================
   RESPONSIVE DESIGN
=========================================== */

@media (max-width: 1200px) {
    .year-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .search-container {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        z-index: var(--z-sidebar);
    }
    
    .sidebar.visible {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .calendar-toolbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        padding: 16px;
    }
    
    .calendar-navigation {
        order: 1;
        width: 100%;
        justify-content: center;
    }
    
    .calendar-actions {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .calendar-navigation h3,
    #current-month-display {
        font-size: 24px;
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    /* Show hamburger menu */
    .sidebar-toggle {
        display: flex !important;
    }
    
    /* Mobile sizing adjustments */
    :root {
        --header-height: 52px;
        --font-size-xs: 0.65rem;
        --font-size-sm: 0.75rem;
        --font-size-md: 0.85rem;
        --font-size-lg: 0.95rem;
        --spacing-xs: 0.15rem;
        --spacing-sm: 0.3rem;
        --spacing-md: 0.6rem;
        --spacing-lg: 0.9rem;
    }
    
    .top-header {
        height: var(--header-height);
        padding: 0 var(--spacing-md);
    }
    
    .header-left h2 {
        font-size: var(--font-size-lg);
    }
    
    .search-container {
        width: 100%;
        max-width: 250px;
    }
    
    .search-input,
    input[type="search"],
    input[placeholder*="Search"] {
        padding: 10px 16px 10px 35px !important;
        font-size: 14px !important;
        border-radius: 20px !important;
    }
    
    .search-container::before {
        left: 12px !important;
        font-size: 14px !important;
    }
    
    .info-sidebar {
        position: fixed;
        right: 0;
        top: var(--header-height);
        bottom: 0;
        width: 100%;
        max-width: 320px;
        transform: translateX(100%);
        z-index: var(--z-sidebar);
    }
    
    .info-sidebar.visible {
        transform: translateX(0);
    }
    
    .calendar-grid {
        grid-auto-rows: minmax(80px, 1fr);
    }
    
    .day-number {
        width: 20px;
        height: 20px;
        font-size: var(--font-size-xs);
    }
    
    .day.today .day-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .day-occasions {
        margin-top: 24px;
    }
    
    #notifications-panel {
        width: 100%;
        max-width: 320px;
        border-radius: 15px 0 0 15px;
    }
    
    .year-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .day-time-column {
        width: 60px;
    }
    
    .time-slot {
        font-size: 10px;
        height: 50px;
    }
    
    .calendar-toolbar {
        padding: 12px 16px;
        min-height: auto;
    }
    
    .calendar-navigation {
        gap: 16px;
    }
    
    .calendar-navigation h3,
    #current-month-display {
        font-size: 20px;
        min-width: 150px;
    }
    
    .calendar-actions {
        gap: 12px;
    }
    
    #today-btn {
        padding: 8px 16px;
        font-size: 13px;
        height: 36px;
    }
    
    .view-switcher {
        height: 36px;
    }
    
    .view-btn {
        padding: 0 12px;
        font-size: 13px;
        height: 36px;
        min-width: 50px;
    }
    
    .calendar-navigation .btn-icon,
    #prev-month,
    #next-month {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .view-switcher {
        flex-wrap: wrap;
        border-radius: 12px;
        height: auto;
        min-height: 36px;
    }
    
    .view-btn {
        flex: 1;
        min-width: 45px;
        padding: 0 8px;
        font-size: 12px;
        border-right: none;
        border-bottom: 1px solid #ff6b35;
    }
    
    .view-btn:last-child {
        border-bottom: none;
    }
    
    .calendar-navigation h3,
    #current-month-display {
        font-size: 18px;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .calendar-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    #today-btn {
        width: 100%;
        max-width: 120px;
        margin: 0 auto;
    }
    
    .view-switcher {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* ===========================================
   DARK MODE SUPPORT
=========================================== */

body.dark-mode .search-input,
body.dark-mode input[type="search"],
body.dark-mode input[placeholder*="Search"] {
    background: rgba(45, 36, 36, 0.95);
    color: #f5f5f5;
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .filter-section,
body.dark-mode .sidebar-section {
    background: #2d2424;
    border-color: #4a3535;
}

body.dark-mode .filter-section-content {
    background: #2d2424;
}

body.dark-mode .filter-bubble {
    background: #2d2424;
    border-color: #4a3535;
    color: #f5f5f5;
}

body.dark-mode .filter-name {
    color: #f5f5f5;
}

body.dark-mode #notifications-panel,
body.dark-mode .panel[id*="notification"] {
    background: #2d2424;
}

body.dark-mode .panel-content {
    background: #2d2424;
}

body.dark-mode .panel-footer {
    background: #3d3131;
    border-top-color: #4a3535;
}

body.dark-mode .sidebar-section:last-child,
body.dark-mode .upcoming-occasions-section {
    background: #2d2424;
    border-color: #4a3535;
}

body.dark-mode .sidebar-section:last-child .section-header h3,
body.dark-mode .upcoming-occasions-section .section-header h3 {
    color: #f5f5f5;
}

body.dark-mode .upcoming-occasion-item,
body.dark-mode .occasion-item {
    border-bottom-color: #4a3535;
}

body.dark-mode .year-month {
    background: #2d2424;
    border-color: #4a3535;
}

body.dark-mode .year-day {
    background: #3d3131;
    color: #f5f5f5;
}

body.dark-mode .day-time-column {
    background: #3d3131;
    border-right-color: #4a3535;
}

body.dark-mode .time-slot {
    border-bottom-color: #4a3535;
    color: #ccb8b8;
}

body.dark-mode .day-events-area {
    background: #2d2424;
}

body.dark-mode input[type="checkbox"] {
    background: #2d2424;
    border-color: #4a3535;
}

body.dark-mode input[type="checkbox"]:checked {
    background: var(--theme-primary-solid);
    border-color: var(--theme-primary-solid);
}

body.dark-mode .calendar-toolbar {
    background: #2d2424;
    border-bottom-color: #4a3535;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .calendar-navigation h3,
body.dark-mode #current-month-display {
    color: #f5f5f5;
}

body.dark-mode .view-switcher {
    background: #3d3131;
    border-color: #ff6b35;
}

body.dark-mode .view-btn {
    background: #3d3131;
    color: #ff6b35;
    border-right-color: #ff6b35;
}

body.dark-mode .view-btn:hover {
    background: rgba(255, 107, 53, 0.2);
}

body.dark-mode .view-btn.active {
    background: #ff6b35;
    color: white;
}
/* WEEK VIEW - More Specific Selectors */
[data-theme="dark"] .week-time-column,
[data-theme="dark"] .time-column,
.dark-mode .week-time-column,
.dark-mode .time-column,
body.dark-mode .week-time-column,
body.dark-mode .time-column {
    background: var(--surface-dark, #2d2424) !important;
    color: var(--text-primary-dark, #f5f5f5) !important;
}

/* Time slots in week view */
[data-theme="dark"] .week-time-column .time-slot,
[data-theme="dark"] .time-column .time-slot,
.dark-mode .week-time-column .time-slot,
.dark-mode .time-column .time-slot,
body.dark-mode .week-time-column .time-slot,
body.dark-mode .time-column .time-slot {
    background: var(--surface-dark, #2d2424) !important;
    color: var(--text-secondary-dark, #ccb8b8) !important;
    border-bottom-color: var(--border-color-dark, #4a3535) !important;
}

/* Day content areas in week view */
[data-theme="dark"] .day-content,
[data-theme="dark"] .day-events-area,
.dark-mode .day-content,
.dark-mode .day-events-area,
body.dark-mode .day-content,
body.dark-mode .day-events-area {
    background: var(--surface-dark, #2d2424) !important;
}

/* DAY VIEW - More Specific Selectors */
[data-theme="dark"] .day-time-column,
.dark-mode .day-time-column,
body.dark-mode .day-time-column {
    background: var(--surface-dark, #2d2424) !important;
    color: var(--text-primary-dark, #f5f5f5) !important;
}

[data-theme="dark"] .day-time-slots,
.dark-mode .day-time-slots,
body.dark-mode .day-time-slots {
    background: var(--surface-dark, #2d2424) !important;
}

[data-theme="dark"] .day-events-content,
.dark-mode .day-events-content,
body.dark-mode .day-events-content {
    background: var(--surface-dark, #2d2424) !important;
}

/* Hour slots in day view */
[data-theme="dark"] .day-time-column .hour-slot,
[data-theme="dark"] .day-time-column .time-slot,
.dark-mode .day-time-column .hour-slot,
.dark-mode .day-time-column .time-slot,
body.dark-mode .day-time-column .hour-slot,
body.dark-mode .day-time-column .time-slot {
    background: var(--surface-dark, #2d2424) !important;
    color: var(--text-secondary-dark, #ccb8b8) !important;
}

/* YEAR VIEW - Month content fix */
[data-theme="dark"] .year-month-grid,
.dark-mode .year-month-grid,
body.dark-mode .year-month-grid {
    background: var(--surface-dark, #2d2424) !important;
}

[data-theme="dark"] .year-day,
.dark-mode .year-day,
body.dark-mode .year-day {
    background: var(--surface-dark, #2d2424) !important;
    color: var(--text-primary-dark, #f5f5f5) !important;
}

/* Weekday headers in year view */
[data-theme="dark"] .year-weekday,
.dark-mode .year-weekday,
body.dark-mode .year-weekday {
    background: var(--border-color-dark, #4a3535) !important;
    color: var(--text-secondary-dark, #ccb8b8) !important;
}

/* CALENDAR CONTAINER AND GRID DARK MODE */
[data-theme="dark"] .calendar-grid-container,
.dark-mode .calendar-grid-container,
body.dark-mode .calendar-grid-container {
    background: var(--surface-dark, #2d2424) !important;
    color: var(--text-primary-dark, #f5f5f5) !important;
}

[data-theme="dark"] .calendar-grid,
[data-theme="dark"] #calendar-grid,
.dark-mode .calendar-grid,
.dark-mode #calendar-grid,
body.dark-mode .calendar-grid,
body.dark-mode #calendar-grid {
    background: var(--surface-dark, #2d2424) !important;
    color: var(--text-primary-dark, #f5f5f5) !important;
}

[data-theme="dark"] .view-container,
.dark-mode .view-container,
body.dark-mode .view-container {
    background: var(--background-dark, #1a1414) !important;
}

/* MONTH VIEW DARK MODE */
[data-theme="dark"] .day,
.dark-mode .day,
body.dark-mode .day {
    background: var(--surface-dark, #2d2424) !important;
    color: var(--text-primary-dark, #f5f5f5) !important;
    border-color: var(--border-color-dark, #4a3535) !important;
}

/* WEEK VIEW DARK MODE */
[data-theme="dark"] .week-view,
[data-theme="dark"] .view-container[data-view="week"],
.dark-mode .week-view,
.dark-mode .view-container[data-view="week"],
body.dark-mode .week-view,
body.dark-mode .view-container[data-view="week"] {
    background: var(--background-dark, #1a1414) !important;
}

[data-theme="dark"] .week-header-row,
.dark-mode .week-header-row,
body.dark-mode .week-header-row {
    background: var(--surface-dark, #2d2424) !important;
    color: var(--text-primary-dark, #f5f5f5) !important;
}

[data-theme="dark"] .week-content-area,
.dark-mode .week-content-area,
body.dark-mode .week-content-area {
    background: var(--surface-dark, #2d2424) !important;
}

/* WEEK VIEW - TIME COLUMN (excluding today) */
[data-theme="dark"] .week-time-column,
[data-theme="dark"] .time-column,
.dark-mode .week-time-column,
.dark-mode .time-column,
body.dark-mode .week-time-column,
body.dark-mode .time-column {
    background: var(--surface-dark, #2d2424) !important;
    color: var(--text-primary-dark, #f5f5f5) !important;
}

/* WEEK VIEW - DAY COLUMNS (excluding today) */
[data-theme="dark"] .day-column:not(.today),
.dark-mode .day-column:not(.today),
body.dark-mode .day-column:not(.today) {
    background: var(--surface-dark, #2d2424) !important;
    border-right-color: var(--border-color-dark, #4a3535) !important;
}

[data-theme="dark"] .day-column:not(.today) .hour-row,
.dark-mode .day-column:not(.today) .hour-row,
body.dark-mode .day-column:not(.today) .hour-row {
    background: var(--surface-dark, #2d2424) !important;
    border-bottom-color: var(--border-color-dark, #4a3535) !important;
}

[data-theme="dark"] .day-column:not(.today) .day-content,
[data-theme="dark"] .day-column:not(.today) .day-events-area,
.dark-mode .day-column:not(.today) .day-content,
.dark-mode .day-column:not(.today) .day-events-area,
body.dark-mode .day-column:not(.today) .day-content,
body.dark-mode .day-column:not(.today) .day-events-area {
    background: var(--surface-dark, #2d2424) !important;
}

/* TIME SLOTS (excluding today's column) */
[data-theme="dark"] .time-slot:not(.today),
[data-theme="dark"] .hour-marker:not(.today),
[data-theme="dark"] .hour-slot:not(.today),
.dark-mode .time-slot:not(.today),
.dark-mode .hour-marker:not(.today),
.dark-mode .hour-slot:not(.today),
body.dark-mode .time-slot:not(.today),
body.dark-mode .hour-marker:not(.today),
body.dark-mode .hour-slot:not(.today) {
    background: var(--surface-dark, #2d2424) !important;
    color: var(--text-secondary-dark, #ccb8b8) !important;
    border-bottom-color: var(--border-color-dark, #4a3535) !important;
}

/* DAY VIEW DARK MODE */
[data-theme="dark"] .day-view,
[data-theme="dark"] .view-container[data-view="day"],
.dark-mode .day-view,
.dark-mode .view-container[data-view="day"],
body.dark-mode .day-view,
body.dark-mode .view-container[data-view="day"] {
    background: var(--background-dark, #1a1414) !important;
}

[data-theme="dark"] .day-time-column,
.dark-mode .day-time-column,
body.dark-mode .day-time-column {
    background: var(--surface-dark, #2d2424) !important;
    color: var(--text-primary-dark, #f5f5f5) !important;
    border-right-color: var(--border-color-dark, #4a3535) !important;
}

[data-theme="dark"] .day-time-slots,
.dark-mode .day-time-slots,
body.dark-mode .day-time-slots {
    background: var(--surface-dark, #2d2424) !important;
}

[data-theme="dark"] .day-events-area,
[data-theme="dark"] .day-events-content,
.dark-mode .day-events-area,
.dark-mode .day-events-content,
body.dark-mode .day-events-area,
body.dark-mode .day-events-content {
    background: var(--surface-dark, #2d2424) !important;
}

/* YEAR VIEW DARK MODE */
[data-theme="dark"] .year-view,
[data-theme="dark"] .view-container[data-view="year"],
.dark-mode .year-view,
.dark-mode .view-container[data-view="year"],
body.dark-mode .year-view,
body.dark-mode .view-container[data-view="year"] {
    background: var(--background-dark, #1a1414) !important;
}

[data-theme="dark"] .year-month,
[data-theme="dark"] .month-card,
.dark-mode .year-month,
.dark-mode .month-card,
body.dark-mode .year-month,
body.dark-mode .month-card {
    background: var(--surface-dark, #2d2424) !important;
    border-color: var(--border-color-dark, #4a3535) !important;
}

[data-theme="dark"] .year-month-grid,
[data-theme="dark"] .month-grid,
.dark-mode .year-month-grid,
.dark-mode .month-grid,
body.dark-mode .year-month-grid,
body.dark-mode .month-grid {
    background: var(--surface-dark, #2d2424) !important;
}

[data-theme="dark"] .year-day,
.dark-mode .year-day,
body.dark-mode .year-day {
    background: var(--surface-dark, #2d2424) !important;
    color: var(--text-primary-dark, #f5f5f5) !important;
    border-color: var(--border-color-dark, #4a3535) !important;
}

[data-theme="dark"] .year-weekday,
.dark-mode .year-weekday,
body.dark-mode .year-weekday {
    background: var(--border-color-dark, #4a3535) !important;
    color: var(--text-secondary-dark, #ccb8b8) !important;
}

/* WEEKEND DARK MODE FIX (excluding today) */
[data-theme="dark"] .week-day-header.weekend:not(.today),
.dark-mode .week-day-header.weekend:not(.today),
body.dark-mode .week-day-header.weekend:not(.today) {
    background: linear-gradient(135deg, #4a3535, #6c5555) !important;
    opacity: 1 !important;
}

[data-theme="dark"] .day-column.weekend:not(.today),
.dark-mode .day-column.weekend:not(.today),
body.dark-mode .day-column.weekend:not(.today) {
    background: var(--surface-dark, #2d2424) !important;
}

[data-theme="dark"] .day-column.weekend:not(.today) .hour-row,
.dark-mode .day-column.weekend:not(.today) .hour-row,
body.dark-mode .day-column.weekend:not(.today) .hour-row {
    background: var(--surface-dark, #2d2424) !important;
}

/* PRESERVE TODAY'S GREEN HIGHLIGHTING */
[data-theme="dark"] .day-column.today,
.dark-mode .day-column.today,
body.dark-mode .day-column.today {
    background: #28a745 !important;
    color: white !important;
}

[data-theme="dark"] .day-column.today .hour-row,
.dark-mode .day-column.today .hour-row,
body.dark-mode .day-column.today .hour-row {
    background: rgba(40, 167, 69, 0.9) !important;
    color: white !important;
}

[data-theme="dark"] .day-column.today .day-content,
[data-theme="dark"] .day-column.today .day-events-area,
.dark-mode .day-column.today .day-content,
.dark-mode .day-column.today .day-events-area,
body.dark-mode .day-column.today .day-content,
body.dark-mode .day-column.today .day-events-area {
    background: #28a745 !important;
    color: white !important;
}

[data-theme="dark"] .week-day-header.today,
.dark-mode .week-day-header.today,
body.dark-mode .week-day-header.today {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
}

/* TODAY HIGHLIGHTING FOR YEAR VIEW */
[data-theme="dark"] .year-day.today,
.dark-mode .year-day.today,
body.dark-mode .year-day.today {
    background: #28a745 !important;
    color: white !important;
    border-color: #20c997 !important;
}

/* TODAY HIGHLIGHTING FOR MONTH VIEW */
[data-theme="dark"] .day.today,
.dark-mode .day.today,
body.dark-mode .day.today {
    background: var(--surface-dark, #2d2424) !important;
    color: var(--text-primary-dark, #f5f5f5) !important;
}

[data-theme="dark"] .day.today .day-number,
.dark-mode .day.today .day-number,
body.dark-mode .day.today .day-number {
    background: transparent !important;
    color: #28a745 !important;
    font-weight: 800 !important;
    border: 2px solid #28a745 !important;
    border-radius: 50% !important;
}

/* ===========================================
   UTILITY CLASSES
=========================================== */

/* Text Utilities */
.text-gradient {
    background: var(--theme-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: var(--font-weight-bold);
}

.text-primary { color: var(--text-primary-light); }
.text-secondary { color: var(--text-secondary-light); }
.text-muted { color: var(--text-disabled-light); }
.text-inverse { color: var(--text-inverse); }

/* Background Utilities */
.bg-gradient { background: var(--theme-primary); }
.bg-surface { background: var(--surface-light); }
.bg-primary { background: var(--background-light); }

/* Shadow Utilities */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Border Radius Utilities */
.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: var(--border-radius-sm); }
.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-xl { border-radius: var(--border-radius-xl); }
.rounded-full { border-radius: var(--border-radius-full); }

/* Spacing Utilities */
.p-0 { padding: 0; }
.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

.m-0 { margin: 0; }
.m-xs { margin: var(--spacing-xs); }
.m-sm { margin: var(--spacing-sm); }
.m-md { margin: var(--spacing-md); }
.m-lg { margin: var(--spacing-lg); }
.m-xl { margin: var(--spacing-xl); }

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }

/* ===========================================
   ANIMATIONS
=========================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-10px); }
    70% { transform: translateY(-5px); }
    90% { transform: translateY(-2px); }
}

/* Animation Classes */
.animate-fade-in { animation: fadeIn 0.6s ease-out; }
.animate-slide-in-left { animation: slideInLeft 0.4s ease-out; }
.animate-slide-in-right { animation: slideInRight 0.4s ease-out; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-bounce { animation: bounce 1s infinite; }

/* ===========================================
   ENHANCED FORMS
=========================================== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary-light);
    font-size: var(--font-size-sm);
}

.form-input, .form-select, textarea {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid var(--border-color-light);
    border-radius: var(--border-radius);
    background: var(--surface-light);
    color: var(--text-primary-light);
    font-size: var(--font-size-md);
    transition: all var(--transition-fast);
    font-family: inherit;
}

.form-input:focus, .form-select:focus, textarea:focus {
    outline: none;
    border-color: var(--theme-primary-solid);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    transform: scale(1.01);
}

.form-input:hover, .form-select:hover, textarea:hover {
    border-color: var(--theme-primary-light);
}

/* Enhanced Input with Icons */
.input-group {
    position: relative;
}

.input-group .form-input {
    padding-left: 3rem;
}

.input-group .input-icon {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary-light);
    font-size: var(--font-size-lg);
}

.input-group .form-input:focus + .input-icon {
    color: var(--theme-primary-solid);
}

/* ===========================================
   ENHANCED CARDS & MODALS
=========================================== */
.card {
    background: var(--surface-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color-light);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--theme-primary);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: var(--spacing-lg);
    background: var(--theme-primary);
    color: var(--text-inverse);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    padding: var(--spacing-lg);
    background: var(--background-light);
    border-top: 1px solid var(--border-color-light);
}

/* Enhanced Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: var(--z-modal);
    overflow-y: auto;
}

.modal-content {
    background: var(--surface-light);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 600px;
    margin: 50px auto;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--theme-primary);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: var(--spacing-xl);
    background: var(--theme-primary);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: var(--spacing-xl);
}

/* ===========================================
   TOAST NOTIFICATIONS
=========================================== */
.toast-container {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    z-index: var(--z-toast);
}

.toast {
    display: flex;
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--surface-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 350px;
    max-width: 450px;
    animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 5px solid;
    backdrop-filter: blur(10px);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--error-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

.toast.info {
    border-left-color: var(--info-color);
}

.toast-icon {
    margin-right: var(--spacing-md);
    font-size: var(--font-size-xl);
}

.toast.success .toast-icon {
    color: var(--success-color);
}

.toast.error .toast-icon {
    color: var(--error-color);
}

.toast.warning .toast-icon {
    color: var(--warning-color);
}

.toast.info .toast-icon {
    color: var(--info-color);
}

/* ===========================================
   ACCESSIBILITY & PERFORMANCE
=========================================== */

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
.btn:focus-visible,
.nav-item:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible {
    outline: 2px solid var(--theme-primary-solid);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .occasion-indicator {
        border-width: 2px;
        font-weight: 700;
    }
    
    #notifications-panel {
        border-left-width: 6px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .occasion-indicator:hover {
        transform: none !important;
    }
}

/* ===========================================
   PRINT STYLES
=========================================== */
@media print {
    .sidebar,
    .btn-fab,
    .toast-container,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .calendar-grid-container {
        box-shadow: none !important;
        border: 1px solid #000;
    }
    
    .day {
        border: 1px solid #ccc;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}

/* ===========================================
   PERFORMANCE OPTIMIZATIONS
=========================================== */

/* Optimize transitions for performance */
* {
    will-change: auto;
    transition: background-color var(--transition-normal),
                color var(--transition-normal),
                border-color var(--transition-normal),
                box-shadow var(--transition-normal);
}

.occasion-indicator,
.filter-bubble,
.btn {
    will-change: transform;
}

/* ===========================================
   THEME SWITCHING ANIMATION
=========================================== */
.theme-transition * {
    transition: background-color var(--transition-normal),
                color var(--transition-normal),
                border-color var(--transition-normal),
                box-shadow var(--transition-normal);
}
/* Beautiful Login & Signup Modal Styles */

/* Modal backdrop with enhanced blur */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(12px);
    animation: fadeIn 0.4s ease;
}

/* Modal container with glassmorphism effect */
.modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    border-radius: 24px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Dark mode support */
.dark-mode .modal-content {
    background: linear-gradient(145deg, rgba(42, 42, 42, 0.95), rgba(32, 32, 32, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Beautiful header with gradient */
.modal-header {
    background: linear-gradient(135deg, #ff6b35, #ff8c42, #ffad5a);
    color: white;
    padding: 32px 32px 24px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

.modal-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Close button with elegant styling */
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

/* Modal body with proper spacing */
.modal-body {
    padding: 32px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
}

.dark-mode .modal-body {
    background: rgba(42, 42, 42, 0.8);
}

/* Google button with enhanced styling */
.social-login {
    margin-bottom: 24px;
}

.btn-google {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-google i {
    font-size: 18px;
    color: #4285f4;
}

/* Elegant divider */
.divider {
    position: relative;
    margin: 24px 0;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
}

.divider span {
    background: rgba(255, 255, 255, 0.9);
    padding: 0 16px;
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
    position: relative;
    backdrop-filter: blur(10px);
}

.dark-mode .divider span {
    background: rgba(42, 42, 42, 0.9);
    color: #adb5bd;
}

/* Form styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 600;
    font-size: 14px;
}

.dark-mode .form-group label {
    color: #adb5bd;
}

/* Beautiful input fields */
.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    transform: translateY(-1px);
}

.dark-mode .form-group input {
    background: rgba(52, 58, 64, 0.8);
    border-color: #495057;
    color: #f8f9fa;
}

.dark-mode .form-group input:focus {
    background: rgba(52, 58, 64, 0.95);
    border-color: #ff8c42;
}

/* Password input with toggle */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.toggle-password:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
}

/* Forgot password link */
.forgot-password {
    color: #ff6b35;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.forgot-password:hover {
    color: #e55a2b;
    text-decoration: underline;
}

/* Primary button styling */
.btn-primary {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e55a2b, #e67a35);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* TOTP/Authenticator button */
.btn-totp-auth {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #6f42c1, #8b5cf6);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-totp-auth:hover {
    background: linear-gradient(135deg, #5d2f99, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.3);
}

/* Login divider between buttons */
.login-divider {
    position: relative;
    margin: 16px 0 8px;
    text-align: center;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
}

.login-divider span {
    background: rgba(255, 255, 255, 0.9);
    padding: 0 12px;
    color: #6c757d;
    font-size: 12px;
    position: relative;
}

/* Modal footer */
.modal-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(233, 236, 239, 0.5);
}

.modal-footer p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.modal-footer a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.modal-footer a:hover {
    color: #e55a2b;
    text-decoration: underline;
}

/* Checkbox styling for signup */
input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #ff6b35;
}

/* Password strength indicator */
.password-strength {
    margin-top: 8px;
    font-size: 12px;
}

.password-strength.weak { color: #dc3545; }
.password-strength.medium { color: #ffc107; }
.password-strength.strong { color: #28a745; }

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1; 
        backdrop-filter: blur(12px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0%, 100% { 
        transform: translateX(-50%) translateY(-50%) rotate(0deg);
        opacity: 0.3;
    }
    50% { 
        transform: translateX(-30%) translateY(-30%) rotate(180deg);
        opacity: 0.7;
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .modal-content {
        margin: 20px;
        max-width: none;
        width: calc(100% - 40px);
        border-radius: 20px;
    }
    
    .modal-header {
        padding: 24px 20px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.6rem;
    }
    
    .modal-body {
        padding: 24px 20px;
    }
    
    .btn-primary {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* Focus states for accessibility */
.btn-google:focus,
.btn-primary:focus,
.btn-totp-auth:focus {
    outline: 3px solid rgba(255, 107, 53, 0.3);
    outline-offset: 2px;
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
/* Email OTP Authentication Styles */
/* File: /styles/email-otp-styles.css */

/* Email OTP Button */
.btn-email-otp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    margin: 8px 0;
    border: 2px solid #28a745;
    border-radius: 8px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-email-otp:hover {
    background: linear-gradient(135deg, #218838 0%, #1abc9c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-email-otp:active {
    transform: translateY(0);
}

.btn-email-otp i {
    font-size: 16px;
}

/* Email OTP Modal */
#email-otp-modal .modal-content {
    max-width: 480px;
    margin: 5% auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#email-otp-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
}

#email-otp-modal .modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

#email-otp-modal .modal-body {
    padding: 0;
    position: relative;
    min-height: 300px;
}

/* Email OTP Steps */
.email-otp-step {
    display: none;
    padding: 32px 24px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.email-otp-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step Icons */
.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.step-icon.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.3);
}

.email-otp-step h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.email-otp-step p {
    margin: 0 0 24px 0;
    color: #6c757d;
    font-size: 16px;
    line-height: 1.5;
}

/* Form Styling */
.email-otp-step .form-group {
    margin-bottom: 24px;
    text-align: left;
}

.email-otp-step .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.email-otp-step input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.email-otp-step input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* OTP Input Container */
.otp-input-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}

.otp-digit {
    width: 50px;
    height: 50px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.otp-digit:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.otp-digit:not(:placeholder-shown) {
    border-color: #28a745;
    background-color: #f8f9fa;
}

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    text-align: center;
}

/* Resend Section */
.resend-section {
    margin: 24px 0;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.resend-section p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #6c757d;
}

#resend-timer {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

#timer-count {
    color: #667eea;
    font-weight: 600;
}

/* Success Actions */
.success-actions {
    margin-top: 24px;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-overlay p {
    margin: 0;
    color: #6c757d;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Styles */
.email-otp-step .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.email-otp-step .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.email-otp-step .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.email-otp-step .btn-text {
    background: transparent;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.email-otp-step .btn-text:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.email-otp-step .btn-block {
    width: 100%;
    justify-content: center;
}

/* Modal Footer */
.email-otp-step .modal-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #667eea;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 400px;
    min-width: 300px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left-color: #28a745;
}

.toast-error {
    border-left-color: #dc3545;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-content i {
    font-size: 18px;
}

.toast-success .toast-content i {
    color: #28a745;
}

.toast-error .toast-content i {
    color: #dc3545;
}

.toast-content span {
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.4;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    #email-otp-modal .modal-content {
        margin: 2% 16px;
        max-width: none;
    }
    
    .email-otp-step {
        padding: 24px 16px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .email-otp-step h3 {
        font-size: 20px;
    }
    
    .otp-input-container {
        gap: 8px;
    }
    
    .otp-digit {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .toast {
        right: 16px;
        left: 16px;
        min-width: auto;
        max-width: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .email-otp-step {
        background-color: #2c3e50;
        color: #ecf0f1;
    }
    
    .email-otp-step h3 {
        color: #ecf0f1;
    }
    
    .email-otp-step p {
        color: #bdc3c7;
    }
    
    .email-otp-step input[type="email"] {
        background-color: #34495e;
        border-color: #4a5f7a;
        color: #ecf0f1;
    }
    
    .email-otp-step input[type="email"]:focus {
        border-color: #667eea;
    }
    
    .otp-digit {
        background-color: #34495e;
        border-color: #4a5f7a;
        color: #ecf0f1;
    }
    
    .otp-digit:focus {
        border-color: #667eea;
    }
    
    .otp-digit:not(:placeholder-shown) {
        background-color: #2c3e50;
        border-color: #28a745;
    }
    
    .resend-section {
        background-color: #34495e;
        border-color: #4a5f7a;
    }
    
    .loading-overlay {
        background: rgba(44, 62, 80, 0.95);
    }
    
    .loading-overlay p {
        color: #bdc3c7;
    }
    
    .toast {
        background-color: #34495e;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .toast-content span {
        color: #ecf0f1;
    }
}

/* Animation Enhancements */
.email-otp-step.active {
    animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.otp-digit {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.otp-digit:focus {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Focus Management */
.email-otp-step input:focus,
.email-otp-step button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-email-otp {
        border-width: 3px;
    }
    
    .otp-digit {
        border-width: 3px;
    }
    
    .email-otp-step input[type="email"] {
        border-width: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .email-otp-step,
    .otp-digit,
    .btn-email-otp,
    .toast {
        animation: none;
        transition: none;
    }
    
    .loading-overlay .loading-spinner {
        animation: none;
        border-top-color: transparent;
    }
}
/* Add these styles to your email-otp-styles.css file */

/* Email Error Messages */
#email-error {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    padding: 12px 16px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

#email-error i {
    color: #dc3545;
    font-size: 16px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
    }
}

/* Suggestion Box Styles */
.suggestion-box {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 2px solid #90caf9;
    border-radius: 12px;
    text-align: center;
    animation: fadeInUp 0.4s ease;
}

.suggestion-content h4 {
    margin: 0 0 8px 0;
    color: #1565c0;
    font-size: 16px;
    font-weight: 600;
}

.suggestion-content p {
    margin: 0 0 16px 0;
    color: #424242;
    font-size: 14px;
    line-height: 1.4;
}

.suggestion-content .btn {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.suggestion-content .btn:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Error Message for OTP Step */
#otp-error {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    animation: shake 0.5s ease;
}

#otp-error i {
    font-size: 16px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Loading State Improvements */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 12px;
}

.loading-overlay .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-overlay p {
    margin: 0;
    color: #6c757d;
    font-weight: 500;
    font-size: 14px;
}

/* Success Message Styling */
.success-message {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    padding: 12px 16px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

.success-message i {
    color: #28a745;
    font-size: 16px;
}

/* Mobile Responsiveness for Error Messages */
@media (max-width: 576px) {
    .suggestion-box {
        margin-top: 16px;
        padding: 16px;
    }
    
    .suggestion-content h4 {
        font-size: 15px;
    }
    
    .suggestion-content p {
        font-size: 13px;
    }
    
    .suggestion-content .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    #email-error {
        padding: 10px 12px;
        font-size: 13px;
        margin: 12px 0;
    }
    
    #otp-error {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* Dark Mode Support for Error Messages */
@media (prefers-color-scheme: dark) {
    #email-error {
        background-color: #f5c6cb;
        border-color: #f1aeb5;
        color: #58151c;
    }
    
    .suggestion-box {
        background: linear-gradient(135deg, #263238 0%, #37474f 100%);
        border-color: #546e7a;
    }
    
    .suggestion-content h4 {
        color: #81c784;
    }
    
    .suggestion-content p {
        color: #b0bec5;
    }
    
    .loading-overlay {
        background: rgba(44, 62, 80, 0.95);
    }
    
    .loading-overlay p {
        color: #bdc3c7;
    }
    
    #otp-error {
        background-color: #f5c6cb;
        border-color: #f1aeb5;
        color: #58151c;
    }
}
/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-content h2 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}



.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.achievement-option {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.achievement-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.referral-link-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.referral-link-container input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.share-options {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.share-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.email {
    background: #EA4335;
    color: white;
}

/* FAB Menu Styles */
.fab-menu {
    position: absolute;
    bottom: 70px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: slideUp 0.3s ease;
}

.fab-action {
    background: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 600;
}

.fab-action:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Messaging panel minimized state */
.social-messaging-panel.minimized {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.social-messaging-panel.minimized .messaging-header {
    padding: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-messaging-panel.minimized .messaging-body {
    display: none;
}

.social-messaging-panel.minimized h3 {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Fix messaging panel */
.social-messaging-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.messaging-header {
    background: var(--primary-gradient);
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.messaging-header h3 {
    color: white !important;
    margin: 0 !important;
    font-size: 1.2rem !important;
}

.minimize-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white !important;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.messaging-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Minimized state */
.social-messaging-panel.minimized {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.social-messaging-panel.minimized .messaging-body {
    display: none;
}

.social-messaging-panel.minimized .messaging-header {
    border-radius: 50%;
    padding: 0;
    height: 60px;
    width: 60px;
    justify-content: center;
}

.social-messaging-panel.minimized h3 {
    display: none;
}
/* Stats Modal Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.regional-breakdown {
    margin-top: 30px;
}

.region-list {
    margin-top: 15px;
}

.region-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* Country Stats Styles */
.country-stats {
    margin: 20px 0;
}

.country-map-placeholder {
    background: #f0f0f0;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.legend-items {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.country-rank-item {
    display: grid;
    grid-template-columns: 30px 40px 1fr 80px 60px;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.country-growth {
    color: #27ae60;
    font-weight: 600;
}

/* Records Styles */
.records-container {
    margin: 20px 0;
}

.record-category {
    margin-bottom: 30px;
}

.record-list {
    margin-top: 15px;
}

.record-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
}

.record-icon {
    font-size: 2rem;
}

.record-title {
    font-weight: 600;
    color: var(--text-primary);
}

.record-value {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 5px 0;
}

.record-holder {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Invite Styles */
.invite-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.referral-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.referral-stat {
    text-align: center;
}

.referral-stat .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.share-btn.telegram {
    background: #0088cc;
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.invite-benefits {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.invite-benefits ul {
    margin: 10px 0 0 20px;
}

/* Group Fast Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
}
/* Enhanced Logo Styling for Hindu Vrat Panchang */

.logo-icon-wrapper {
    width: 50px;  /* Increased from 40px */
    height: 50px; /* Increased from 40px */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px; /* Slightly more rounded */
    background: linear-gradient(135deg, #FFE082, #FF8F00);
    margin-right: 15px; /* Increased spacing */
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced diya SVG */
.logo-icon-wrapper svg {
    width: 42px;  /* Increased from 32px */
    height: 42px; /* Increased from 32px */
    filter: drop-shadow(0 3px 6px rgba(255, 152, 0, 0.4));
    transition: all 0.3s ease;
}

/* Hover effect for better interaction */
.logo-icon-wrapper:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.logo-icon-wrapper:hover svg {
    filter: drop-shadow(0 4px 10px rgba(255, 152, 0, 0.6));
    transform: scale(1.05);
}

/* Make the app title more prominent to balance with larger logo */
.app-title {
    font-size: 1.4rem; /* Slightly larger */
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #fff8e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Optional: Add a subtle pulse animation to make it more engaging */
@keyframes subtle-pulse {
    0%, 100% { 
        box-shadow: 0 4px 16px rgba(255, 152, 0, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
        transform: scale(1.02);
    }
}

.logo-icon-wrapper {
    animation: subtle-pulse 4s ease-in-out infinite;
}

/* Dark mode enhancements */
.dark-mode .logo-icon-wrapper {
    background: linear-gradient(135deg, #FFD54F, #FF6F00);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.4);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .logo-icon-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .logo-icon-wrapper svg {
        width: 38px;
        height: 38px;
    }
    
    .app-title {
        font-size: 1.2rem;
    }
    
    .app-tagline {
        font-size: 0.7rem;
    }
}

/* Alternative: If you want an even more prominent logo */
.logo-prominent {
    width: 55px;
    height: 55px;
}

.logo-prominent svg {
    width: 48px;
    height: 48px;
}
/* ===========================================
   WEEK VIEW LAYOUT FIX - PROPER HEADER & SYNC GRID LINES
   Target: Fix header row, grid sync, and no-scroll layout
=========================================== */

/* Week View Container - Ensure proper height calculation */
.week-view,
.view-container[data-view="week"],
.calendar-container.week-view {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Full viewport height */
    max-height: calc(100vh - 120px); /* Account for header/toolbar */
    overflow: hidden; /* NO SCROLL as per requirement */
    background: #f8f9fa;
}

/* Week Grid - FIXED: Separate header row from content */
.week-grid,
.calendar-grid.week-view {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #e9ecef;
}

/* FIXED: Separate header row for day names */
.week-header-row {
    display: grid !important;
    grid-template-columns: 80px repeat(7, 1fr) !important; /* Time column + 7 days */
    background: #fff;
    border-bottom: 2px solid #ff6b35;
    flex-shrink: 0; /* Don't shrink */
    z-index: 10;
}

/* Time Header Cell - Shows "Time" not "12 AM" */
.week-time-header {
    background: linear-gradient(135deg, #6c757d, #adb5bd);
    color: white;
    padding: 12px 4px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #dee2e6;
}

/* Day Headers - Proper styling */
.week-day-header {
    background: linear-gradient(135deg, #ff6b35, #7c76f7);
    color: white;
    padding: 12px 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #dee2e6;
}

.week-day-name {
    font-size: 10px;
    margin-bottom: 2px;
    opacity: 0.9;
}

.week-day-number {
    font-size: 16px;
    font-weight: 700;
}

.week-day-header.today {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* FIXED: Main content area with grid structure */
.week-content-area {
    display: grid !important;
    grid-template-columns: 80px repeat(7, 1fr) !important;
    flex: 1 !important;
    overflow: hidden !important;
    background: #fff;
}

/* FIXED: Scrollable time column that syncs with day columns */
.week-time-column {
    background: #f8f9fa;
    border-right: 2px solid #dee2e6;
    overflow-y: auto;
    scrollbar-width: none; /* Hide scrollbar */
    -ms-overflow-style: none;
}

.week-time-column::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
}

/* FIXED: Hour slots that move with scroll */
.time-slot,
.hour-slot {
    border-bottom: 1px solid #dee2e6;
    padding: 4px 6px;
    font-size: 9px !important;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    background: #f8f9fa;
    min-height: 25px !important;
    max-height: 25px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: relative;
}

/* Major hour markers (6 AM, 12 PM, 6 PM) - these move with scroll */
.time-slot[data-hour="6"],
.time-slot[data-hour="12"],
.time-slot[data-hour="18"] {
    border-bottom: 2px solid #adb5bd;
    background: #e9ecef;
    font-weight: 600;
}

/* Noon marker (12 PM) - special styling that moves with scroll */
.time-slot[data-hour="12"] {
    border-bottom: 2px solid #ff6b35;
    background: #fff5f0;
    font-weight: 700;
    color: #ff6b35;
}

/* FIXED: Day columns that sync scroll with time column */
.day-column,
.week-day-column {
    background: #fff;
    border-right: 1px solid #dee2e6;
    position: relative;
    overflow-y: auto;
    scrollbar-width: none; /* Hide scrollbar */
    -ms-overflow-style: none;
}

.day-column::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
}

/* FIXED: Day content with proper hour slots that move with scroll */
.day-content,
.day-events-area {
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* FIXED: Hour rows that align with time slots */
.hour-row {
    min-height: 25px;
    max-height: 25px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1px 2px;
}

/* FIXED: Major hour highlighting that moves with content */
.hour-row[data-hour="6"],
.hour-row[data-hour="12"],
.hour-row[data-hour="18"] {
    border-bottom: 2px solid #adb5bd;
    background: rgba(233, 236, 239, 0.3);
}

.hour-row[data-hour="12"] {
    border-bottom: 2px solid #ff6b35;
    background: rgba(255, 245, 240, 0.5);
}

/* Business hours highlighting that moves with content */
.hour-row[data-hour="9"],
.hour-row[data-hour="10"],
.hour-row[data-hour="11"],
.hour-row[data-hour="12"],
.hour-row[data-hour="13"],
.hour-row[data-hour="14"],
.hour-row[data-hour="15"],
.hour-row[data-hour="16"] {
    background: rgba(255, 107, 53, 0.02);
    border-left: 2px solid rgba(255, 107, 53, 0.2);
}

/* Event Items positioned within hour rows */
.week-event,
.occasion-item {
    background: #6200ee;
    color: white;
    padding: 1px 4px;
    margin: 0px 1px 1px 1px;
    border-radius: 3px;
    font-size: 8px !important;
    font-weight: 500;
    line-height: 1.1;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 2px);
    position: relative;
    z-index: 3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.week-event:hover,
.occasion-item:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* CRITICAL: Synchronized scrolling between time column and day columns */
.week-scroll-sync {
    display: contents;
}

/* Current time indicator - positioned relative to current hour */
.current-time-indicator {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #dc3545;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.3);
}

.current-time-indicator::before {
    content: '';
    position: absolute;
    left: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ===========================================
   MOBILE RESPONSIVENESS - PROPER SCALING
=========================================== */

/* Large Mobile (768px and below) */
@media (max-width: 768px) {
    .week-header-row,
    .week-content-area {
        grid-template-columns: 60px repeat(7, 1fr) !important;
    }
    
    .week-time-column {
        min-width: 60px;
    }
    
    .time-slot,
    .hour-slot,
    .hour-row {
        min-height: 20px !important;
        max-height: 20px !important;
        font-size: 8px !important;
        padding: 2px 3px;
    }
    
    .week-day-header {
        padding: 8px 2px;
    }
    
    .week-day-name {
        font-size: 9px;
    }
    
    .week-day-number {
        font-size: 14px;
    }
    
    .week-event,
    .occasion-item {
        font-size: 7px !important;
        padding: 1px 2px;
    }
}

/* Medium Mobile (576px and below) */
@media (max-width: 576px) {
    .week-header-row,
    .week-content-area {
        grid-template-columns: 50px repeat(7, 1fr) !important;
    }
    
    .week-time-column {
        min-width: 50px;
    }
    
    .time-slot,
    .hour-slot,
    .hour-row {
        min-height: 18px !important;
        max-height: 18px !important;
        font-size: 7px !important;
        padding: 1px 2px;
    }
    
    .week-day-header {
        padding: 6px 1px;
    }
    
    .week-day-name {
        font-size: 8px;
        display: none; /* Hide on very small screens */
    }
    
    .week-day-number {
        font-size: 12px;
    }
    
    .week-event,
    .occasion-item {
        font-size: 6px !important;
        padding: 1px;
        border-radius: 2px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .week-view,
    .view-container[data-view="week"] {
        max-height: calc(100vh - 100px);
    }
    
    .week-header-row,
    .week-content-area {
        grid-template-columns: 45px repeat(7, 1fr) !important;
    }
    
    .week-time-column {
        min-width: 45px;
    }
    
    .time-slot,
    .hour-slot,
    .hour-row {
        min-height: 16px !important;
        max-height: 16px !important;
        font-size: 6px !important;
    }
    
    .week-day-header {
        padding: 4px 1px;
    }
    
    .week-day-number {
        font-size: 11px;
    }
    
    .week-event,
    .occasion-item {
        font-size: 6px !important;
        line-height: 1.1;
    }
}



/* ===========================================
   UTILITIES AND ENHANCEMENTS
=========================================== */

/* Empty state for days with no events */
.day-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 10px;
    text-align: center;
    padding: 20px 10px;
    height: 100%;
    opacity: 0.6;
}

/* Weekend highlighting */
.week-day-header.weekend {
    background: linear-gradient(135deg, #6c757d, #adb5bd) !important;
    opacity: 0.8;
}

.day-column.weekend {
    background: #f8f9fa !important;
}

.day-column.weekend .hour-row {
    background: rgba(248, 249, 250, 0.8) !important;
}

/* Week number display */
.week-number-display {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    color: #6c757d;
    backdrop-filter: blur(4px);
    z-index: 15;
}

/* Loading state */
.week-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    font-size: 14px;
}

/* Error state */
.week-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #dc3545;
    font-size: 12px;
    text-align: center;
    padding: 20px;
}

/* Focus states for accessibility */
.day-column:focus {
    outline: 2px solid #0d6efd;
    outline-offset: -2px;
}

.week-event:focus,
.occasion-item:focus {
    outline: 2px solid #fff;
    outline-offset: 1px;
}
/* ===========================================
   DAY VIEW LAYOUT FIX - COMPACT NO-SCROLL DESIGN
   Target: Fit all 24 hours in viewport without scrolling
=========================================== */

/* Day View Container - Full viewport usage */
.day-view,
.view-container[data-view="day"],
.calendar-container.day-view {
    display: flex;
    flex-direction: row;
    height: 100vh;
    max-height: calc(100vh - 120px); /* Account for header/toolbar */
    overflow: hidden; /* NO SCROLL as per requirement */
    background: #f8f9fa;
}

/* Day Grid Container - Flex layout for time column + events */
.calendar-grid.day-view {
    display: flex !important;
    flex-direction: row !important;
    height: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    background: #fff;
}

/* Time Column - Compact and responsive */
.day-time-column,
.time-column {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    background: #f8f9fa;
    border-right: 2px solid #dee2e6;
    overflow: hidden; /* No scroll */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* FIXED: Date header for day view */
.day-date-header {
    background: linear-gradient(135deg, #ff6b35, #7c76f7);
    color: white;
    padding: 12px 8px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #ff6b35;
    flex-shrink: 0;
}

/* FIXED: Time slots container - scrollable to fit 24 hours */
.day-time-slots {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.day-time-slots::-webkit-scrollbar {
    display: none;
}

/* FIXED: Compact time slots that fit all 24 hours */
.time-slot,
.hour-marker {
    border-bottom: 1px solid #e9ecef;
    padding: 2px 4px;
    font-size: 9px !important;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    background: #f8f9fa;
    min-height: 24px !important; /* Compact height to fit 24 hours */
    max-height: 24px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

/* Major hour markers (6 AM, 12 PM, 6 PM) */
.time-slot[data-hour="6"],
.time-slot[data-hour="12"],
.time-slot[data-hour="18"],
.hour-marker[data-hour="6"],
.hour-marker[data-hour="12"],
.hour-marker[data-hour="18"] {
    border-bottom: 2px solid #adb5bd;
    background: #e9ecef;
    font-weight: 600;
}

/* Noon marker (12 PM) - special styling */
.time-slot[data-hour="12"],
.hour-marker[data-hour="12"] {
    border-bottom: 2px solid #ff6b35;
    background: #fff5f0;
    font-weight: 700;
    color: #ff6b35;
}

/* Events Area - Main content area */
.day-events-area,
.events-area,
.events-column {
    flex: 1;
    background: #fff;
    overflow: hidden; /* No scroll on main area */
    position: relative;
    display: flex;
    flex-direction: column;
}

/* FIXED: Day header for events area */
.day-events-header {
    background: linear-gradient(135deg, #ff6b35, #7c76f7);
    color: white;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #ff6b35;
    flex-shrink: 0;
}

.day-events-header.today {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

/* FIXED: Events content area with synced scroll */
.day-events-content {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    display: flex;
    flex-direction: column;
}

.day-events-content::-webkit-scrollbar {
    width: 4px;
}

.day-events-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* FIXED: Hour slots in events area that sync with time column */
.hour-slot {
    min-height: 24px !important;
    max-height: 24px !important;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1px 4px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.hour-slot:hover {
    background: rgba(255, 107, 53, 0.05);
}

/* Major hour highlighting that syncs with time column */
.hour-slot[data-hour="6"],
.hour-slot[data-hour="12"],
.hour-slot[data-hour="18"] {
    border-bottom: 2px solid #adb5bd;
    background: rgba(233, 236, 239, 0.3);
}

.hour-slot[data-hour="12"] {
    border-bottom: 2px solid #ff6b35;
    background: rgba(255, 245, 240, 0.5);
}

/* Current hour highlighting */
.hour-slot.current-hour {
    background: rgba(40, 167, 69, 0.1) !important;
    border-left: 3px solid #28a745;
}

/* Business hours highlighting (9 AM - 5 PM) */
.hour-slot[data-hour="9"],
.hour-slot[data-hour="10"],
.hour-slot[data-hour="11"],
.hour-slot[data-hour="12"],
.hour-slot[data-hour="13"],
.hour-slot[data-hour="14"],
.hour-slot[data-hour="15"],
.hour-slot[data-hour="16"] {
    background: rgba(255, 107, 53, 0.02);
    border-left: 2px solid rgba(255, 107, 53, 0.2);
}

/* Event Items in Day View */
.day-event,
.event-block,
.occasion-item {
    background: #6200ee;
    color: white;
    padding: 2px 6px;
    margin: 1px 2px;
    border-radius: 4px;
    font-size: 10px !important;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 3px solid currentColor;
}

.day-event:hover,
.event-block:hover,
.occasion-item:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* Occasion time and title styling */
.occasion-time {
    font-size: 8px;
    opacity: 0.9;
    font-weight: 600;
    margin-bottom: 1px;
}

.occasion-title {
    font-size: 9px;
    font-weight: 500;
    line-height: 1.1;
}

.occasion-details {
    font-size: 7px;
    opacity: 0.8;
    margin-top: 1px;
    line-height: 1.1;
}

/* Current time indicator */
.current-time-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #dc3545;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.3);
    border-radius: 1px;
}

.current-time-line::before {
    content: '';
    position: absolute;
    left: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ===========================================
   MOBILE RESPONSIVENESS - DAY VIEW
=========================================== */

/* Large Mobile (768px and below) */
@media (max-width: 768px) {
    .day-time-column,
    .time-column {
        width: 60px;
        min-width: 60px;
        max-width: 60px;
    }
    
    .time-slot,
    .hour-marker,
    .hour-slot {
        min-height: 20px !important;
        max-height: 20px !important;
        font-size: 8px !important;
        padding: 1px 2px;
    }
    
    .day-date-header,
    .day-events-header {
        padding: 8px 4px;
        font-size: 10px;
    }
    
    .day-event,
    .occasion-item {
        font-size: 8px !important;
        padding: 1px 4px;
        margin: 1px;
    }
    
    .occasion-time {
        font-size: 7px;
    }
    
    .occasion-title {
        font-size: 8px;
    }
    
    .occasion-details {
        font-size: 6px;
    }
}

/* Medium Mobile (576px and below) */
@media (max-width: 576px) {
    .day-time-column,
    .time-column {
        width: 50px;
        min-width: 50px;
        max-width: 50px;
    }
    
    .time-slot,
    .hour-marker,
    .hour-slot {
        min-height: 18px !important;
        max-height: 18px !important;
        font-size: 7px !important;
        padding: 1px;
    }
    
    .day-date-header,
    .day-events-header {
        padding: 6px 2px;
        font-size: 9px;
    }
    
    .day-event,
    .occasion-item {
        font-size: 7px !important;
        padding: 1px 2px;
        border-radius: 2px;
    }
    
    .occasion-time {
        font-size: 6px;
    }
    
    .occasion-title {
        font-size: 7px;
    }
    
    .occasion-details {
        display: none; /* Hide details on small screens */
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .day-view,
    .view-container[data-view="day"] {
        max-height: calc(100vh - 100px);
    }
    
    .day-time-column,
    .time-column {
        width: 45px;
        min-width: 45px;
        max-width: 45px;
    }
    
    .time-slot,
    .hour-marker,
    .hour-slot {
        min-height: 16px !important;
        max-height: 16px !important;
        font-size: 6px !important;
    }
    
    .day-date-header,
    .day-events-header {
        padding: 4px 1px;
        font-size: 8px;
    }
    
    .day-event,
    .occasion-item {
        font-size: 6px !important;
        padding: 1px;
        line-height: 1.1;
    }
    
    .occasion-time,
    .occasion-title {
        font-size: 6px;
    }
}

/* ===========================================
   SCROLL SYNCHRONIZATION SETUP
=========================================== */

/* Ensure smooth scrolling between time column and events area */
.day-time-slots,
.day-events-content {
    scroll-behavior: smooth;
}

/* ===========================================
   UTILITIES AND ENHANCEMENTS
=========================================== */

/* Empty state for days with no events */
.day-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 12px;
    text-align: center;
    padding: 40px 20px;
    height: 100%;
    flex-direction: column;
}

.day-empty-state-icon {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* All-day events section (if needed) */
.all-day-events-section {
    background: #e9ecef;
    border-bottom: 2px solid #dee2e6;
    padding: 8px;
    flex-shrink: 0;
}

.all-day-event {
    background: #17a2b8;
    color: white;
    padding: 4px 8px;
    margin: 2px 0;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
}

/* Loading state */
.day-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    font-size: 14px;
}

/* Error state */
.day-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #dc3545;
    font-size: 12px;
    text-align: center;
    padding: 20px;
}

/* Focus states for accessibility */
.hour-slot:focus {
    outline: 2px solid #0d6efd;
    outline-offset: -2px;
    background: rgba(13, 110, 253, 0.1);
}

.day-event:focus,
.occasion-item:focus {
    outline: 2px solid #fff;
    outline-offset: 1px;
}

/* Weekend styling for day view */
.day-view.weekend .day-events-header {
    background: linear-gradient(135deg, #6c757d, #adb5bd) !important;
}

.day-view.weekend .hour-slot {
    background: #f8f9fa !important;
}

/* ===========================================
   PRINT STYLES (Optional)
=========================================== */
@media print {
    .day-view {
        height: auto !important;
        max-height: none !important;
    }
    
    .day-time-slots,
    .day-events-content {
        overflow: visible !important;
        max-height: none !important;
    }
    
    .current-time-line {
        display: none !important;
    }
    
    .hour-slot:hover {
        background: transparent !important;
    }
}
/* ===========================================
   YEAR VIEW COMPACT FIX - FIT ALL MONTHS IN 100% VIEW
   Target: Make year view smaller so all 12 months are visible without scrolling
=========================================== */

/* Year View Container - More compact */
.year-view,
.view-container[data-view="year"],
.calendar-container.year-view {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    max-height: calc(100vh - 120px) !important;
    overflow: hidden !important; /* No scroll - everything fits */
    padding: 10px !important; /* Reduced padding */
    background: #f8f9fa !important;
}

/* Calendar Grid for Year View - Compact layout */
.calendar-grid.year-view {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important; /* Reduced gap */
    width: 100% !important;
    padding: 10px !important; /* Reduced padding */
    background: transparent !important;
    overflow: hidden !important;
    height: 100% !important; /* Use full available height */
}

/* Year Month Cards - Much more compact */
.year-month,
.month-card {
    background: white !important;
    border-radius: 8px !important; /* Smaller border radius */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important; /* Smaller shadow */
    overflow: hidden !important;
    border: 1px solid #e9ecef !important;
    transition: all 0.2s ease !important; /* Faster transition */
    display: flex !important;
    flex-direction: column !important;
    min-height: 180px !important; /* Much smaller height */
    max-height: 200px !important; /* Compact max height */
}

.year-month:hover,
.month-card:hover {
    transform: translateY(-1px) !important; /* Smaller hover effect */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-color: #ff6b35 !important;
}

/* Year Month Headers - More compact */
.year-month-header,
.month-header {
    background: linear-gradient(135deg, #ff6b35, #7c76f7) !important;
    color: white !important;
    padding: 6px 12px !important; /* Much smaller padding */
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 11px !important; /* Smaller font */
    flex-shrink: 0 !important;
    border-bottom: 1px solid #ff6b35 !important; /* Thinner border */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Month Grid Container - Very compact */
.year-month-grid,
.month-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 0.5px !important; /* Minimal gap */
    background: #f8f9fa !important;
    padding: 4px !important; /* Much smaller padding */
    flex: 1 !important;
    overflow: hidden !important;
}

/* Weekday Headers in Month Grid - Compact */
.year-weekday {
    font-weight: bold !important;
    font-size: 8px !important; /* Smaller font */
    color: #666 !important;
    text-align: center !important;
    padding: 2px 1px !important; /* Minimal padding */
    background: #e9ecef !important;
    border-radius: 1px !important;
}

/* Year Day Cells - Very compact */
.year-day {
    background: white !important;
    padding: 1px !important; /* Minimal padding */
    text-align: center !important;
    font-size: 9px !important; /* Smaller font */
    min-height: 16px !important; /* Much smaller height */
    max-height: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important; /* Faster transition */
    border: 1px solid transparent !important;
    line-height: 1 !important;
}

.year-day:hover {
    background: rgba(255, 107, 53, 0.1) !important;
    border-color: #ff6b35 !important;
    transform: scale(1.05) !important; /* Smaller scale */
    z-index: 2 !important;
    box-shadow: 0 1px 4px rgba(255, 107, 53, 0.2) !important; /* Smaller shadow */
}

.year-day.today {
    background: #ff6b35 !important;
    color: white !important;
    font-weight: bold !important;
    border-color: #e55a2b !important;
    box-shadow: 0 1px 4px rgba(255, 107, 53, 0.3) !important;
}

.year-day.empty {
    background: transparent !important;
    cursor: default !important;
}

.year-day.empty:hover {
    background: transparent !important;
    transform: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Event indicators - Smaller */
.year-day.has-events {
    position: relative !important;
}

.year-day.has-events::after {
    content: '•' !important;
    position: absolute !important;
    bottom: 0px !important;
    right: 1px !important;
    color: #ff6b35 !important;
    font-size: 6px !important; /* Smaller indicator */
    font-weight: bold !important;
    line-height: 1 !important;
}

.year-day.today.has-events::after {
    color: white !important;
}

/* ===========================================
   RESPONSIVE DESIGN - ENSURE ALL MONTHS FIT
=========================================== */

/* Extra large screens (1400px and up) - 4 columns, more space */
@media (min-width: 1400px) {
    .calendar-grid.year-view {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px !important;
    }
    
    .year-month,
    .month-card {
        min-height: 200px !important;
        max-height: 220px !important;
    }
    
    .year-month-header,
    .month-header {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }
    
    .year-day {
        font-size: 10px !important;
        min-height: 18px !important;
        max-height: 18px !important;
    }
    
    .year-weekday {
        font-size: 9px !important;
        padding: 3px 1px !important;
    }
}

/* Large screens (1200px to 1399px) - 4 columns, compact */
@media (max-width: 1399px) and (min-width: 1200px) {
    .calendar-grid.year-view {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 12px !important;
    }
    
    .year-month,
    .month-card {
        min-height: 180px !important;
        max-height: 200px !important;
    }
    
    .year-month-header,
    .month-header {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }
}

/* Medium screens (992px to 1199px) - 3 columns */
@media (max-width: 1199px) and (min-width: 992px) {
    .calendar-grid.year-view {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
    
    .year-month,
    .month-card {
        min-height: 200px !important;
        max-height: 220px !important;
    }
    
    .year-month-header,
    .month-header {
        font-size: 11px !important;
        padding: 7px 12px !important;
    }
}

/* Small screens (768px to 991px) - 2 columns */
@media (max-width: 991px) and (min-width: 768px) {
    .year-view,
    .view-container[data-view="year"] {
        padding: 8px !important;
        overflow-y: auto !important; /* Allow scroll on smaller screens */
        max-height: calc(100vh - 100px) !important;
    }
    
    .calendar-grid.year-view {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 8px !important;
    }
    
    .year-month,
    .month-card {
        min-height: 220px !important;
        max-height: 240px !important;
    }
    
    .year-month-header,
    .month-header {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }
    
    .year-day {
        font-size: 9px !important;
        min-height: 18px !important;
        max-height: 18px !important;
    }
}

/* Very small screens (767px and below) - 1 column */
@media (max-width: 767px) {
    .year-view,
    .view-container[data-view="year"] {
        padding: 5px !important;
        overflow-y: auto !important; /* Definitely need scroll on mobile */
        max-height: calc(100vh - 80px) !important;
    }
    
    .calendar-grid.year-view {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 5px !important;
    }
    
    .year-month,
    .month-card {
        min-height: 200px !important;
        max-height: 220px !important;
    }
    
    .year-month-header,
    .month-header {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }
    
    .year-day {
        font-size: 9px !important;
        min-height: 16px !important;
        max-height: 16px !important;
    }
    
    .year-weekday {
        font-size: 8px !important;
        padding: 2px 1px !important;
    }
}

/* ===========================================
   SPECIFIC FIX FOR 100% BROWSER ZOOM
=========================================== */

/* Ensure everything fits in 100% zoom on desktop */
@media (min-width: 1200px) {
    .year-view,
    .view-container[data-view="year"] {
        height: calc(100vh - 140px) !important; /* Account for header/toolbar */
        max-height: calc(100vh - 140px) !important;
        overflow: hidden !important; /* No scroll at 100% zoom */
        padding: 8px !important;
    }
    
    .calendar-grid.year-view {
        height: 100% !important;
        padding: 8px !important;
        gap: 10px !important;
    }
    
    /* Ensure 3 rows fit perfectly */
    .year-month,
    .month-card {
        min-height: calc((100vh - 220px) / 3 - 20px) !important; /* Dynamic height based on viewport */
        max-height: calc((100vh - 220px) / 3 - 10px) !important;
    }
}

/* Ultra-wide screens - make sure it still looks good */
@media (min-width: 1600px) {
    .calendar-grid.year-view {
        max-width: 1400px !important;
        margin: 0 auto !important;
    }
}

/* ===========================================
   PRINT STYLES - COMPACT LAYOUT
=========================================== */
@media print {
    .year-view {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 10px !important;
    }
    
    .calendar-grid.year-view {
        gap: 8px !important;
    }
    
    .year-month,
    .month-card {
        min-height: 150px !important;
        max-height: 170px !important;
        break-inside: avoid !important;
    }
    
    .year-day {
        font-size: 8px !important;
        min-height: 14px !important;
        max-height: 14px !important;
    }
    
    .year-month-header,
    .month-header {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }
}
/* ===========================================
   USAGE ANALYTICS MODAL - DARK MODE FIX
=========================================== */

.usage-analytics-modal {
    padding: 0 !important;
    max-width: 800px;
    margin: 0 auto;
}

.usage-analytics-modal h4 {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: white;
    margin: -20px -20px 0 -20px;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Analytics Cards */
.analytics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.analytics-card {
    background: var(--surface-light);
    border: 2px solid var(--border-color-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.analytics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--theme-primary-solid);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
}

.card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary-light);
    margin-bottom: 5px;
}

.card-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary-light);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-secondary-light);
}

/* Feature Usage Section */
.feature-usage {
    background: var(--surface-light);
    border: 2px solid var(--border-color-light);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.feature-usage h5 {
    color: var(--text-primary-light);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 18px;
}

.feature-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-bar span:first-child {
    min-width: 150px;
    font-weight: 500;
    color: var(--text-primary-light);
    font-size: 14px;
}

.progress {
    flex: 1;
    height: 8px;
    background: var(--border-color-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    border-radius: 4px;
    transition: width 0.8s ease;
}

.feature-bar span:last-child {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    color: var(--theme-primary-solid);
    font-size: 14px;
}

/* Insights Recommendations */
.insights-recommendations {
    background: var(--surface-light);
    border: 2px solid var(--border-color-light);
    border-radius: 12px;
    padding: 25px;
}

.insights-recommendations h5 {
    color: var(--text-primary-light);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 18px;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: var(--background-light);
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid var(--theme-primary-light);
}

.insight-item:last-child {
    margin-bottom: 0;
}

.insight-item i {
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.insight-item span {
    color: var(--text-primary-light);
    font-size: 14px;
    line-height: 1.5;
}

/* Loading and Error States */
.analytics-loading,
.analytics-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary-light);
}

.analytics-loading i {
    font-size: 24px;
    color: var(--theme-primary-solid);
    margin-bottom: 10px;
}

.analytics-error {
    color: #dc3545;
}

.analytics-error i {
    font-size: 32px;
    margin-bottom: 15px;
}

/* ===========================================
   DARK MODE SUPPORT
=========================================== */

body.dark-mode .usage-analytics-modal {
    background: var(--surface-dark) !important;
    color: var(--text-primary-dark) !important;
}

body.dark-mode .analytics-card,
body.dark-mode .feature-usage,
body.dark-mode .insights-recommendations {
    background: var(--surface-dark) !important;
    border-color: var(--border-color-dark) !important;
}

body.dark-mode .analytics-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

body.dark-mode .card-value,
body.dark-mode .card-label,
body.dark-mode .feature-usage h5,
body.dark-mode .insights-recommendations h5 {
    color: var(--text-primary-dark) !important;
}

body.dark-mode .card-subtitle {
    color: var(--text-secondary-dark) !important;
}

body.dark-mode .feature-bar span:first-child,
body.dark-mode .insight-item span {
    color: var(--text-primary-dark) !important;
}

body.dark-mode .progress {
    background: var(--border-color-dark) !important;
}

body.dark-mode .insight-item {
    background: var(--background-dark) !important;
}

body.dark-mode .analytics-loading,
body.dark-mode .analytics-error {
    color: var(--text-secondary-dark) !important;
}

/* ===========================================
   RESPONSIVE DESIGN
=========================================== */

@media (max-width: 768px) {
    .analytics-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .feature-bar span:first-child {
        min-width: auto;
    }
    
    .feature-bar span:last-child {
        align-self: flex-end;
    }
    
    .insight-item {
        padding: 12px;
    }
}
/* Dark Mode Fixes for Upcoming Occasions Section */

/* Force override inline styles for dark mode */
[data-theme="dark"] .sidebar-section.upcoming-occasions-section,
.dark-mode .sidebar-section.upcoming-occasions-section,
body.dark-mode .sidebar-section.upcoming-occasions-section {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

/* Section header dark mode */
[data-theme="dark"] .upcoming-occasions-section .section-header,
.dark-mode .upcoming-occasions-section .section-header,
body.dark-mode .upcoming-occasions-section .section-header {
    background: transparent !important;
    color: var(--text-primary) !important;
    border-bottom: 2px solid var(--primary) !important;
}

/* Section header h3 dark mode */
[data-theme="dark"] .upcoming-occasions-section .section-header h3,
.dark-mode .upcoming-occasions-section .section-header h3,
body.dark-mode .upcoming-occasions-section .section-header h3 {
    color: var(--text-primary) !important;
}

/* Upcoming occasions list dark mode */
[data-theme="dark"] .upcoming-occasions-section #upcoming-occasions-list,
.dark-mode .upcoming-occasions-section #upcoming-occasions-list,
body.dark-mode .upcoming-occasions-section #upcoming-occasions-list {
    background: transparent !important;
    color: var(--text-primary) !important;
}

/* Empty state dark mode */
[data-theme="dark"] .upcoming-occasions-section .empty-state,
.dark-mode .upcoming-occasions-section .empty-state,
body.dark-mode .upcoming-occasions-section .empty-state {
    color: var(--text-secondary) !important;
    background: transparent !important;
}

/* Occasion items dark mode (if any) */
[data-theme="dark"] .upcoming-occasions-section .occasion-item,
.dark-mode .upcoming-occasions-section .occasion-item,
body.dark-mode .upcoming-occasions-section .occasion-item {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Occasion item text elements */
[data-theme="dark"] .upcoming-occasions-section .occasion-item .occasion-title,
.dark-mode .upcoming-occasions-section .occasion-item .occasion-title,
body.dark-mode .upcoming-occasions-section .occasion-item .occasion-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .upcoming-occasions-section .occasion-item .occasion-date,
.dark-mode .upcoming-occasions-section .occasion-item .occasion-date,
body.dark-mode .upcoming-occasions-section .occasion-item .occasion-date {
    color: var(--text-secondary) !important;
}

/* General sidebar sections dark mode override */
[data-theme="dark"] .sidebar-section,
.dark-mode .sidebar-section,
body.dark-mode .sidebar-section {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .sidebar-section .section-header,
.dark-mode .sidebar-section .section-header,
body.dark-mode .sidebar-section .section-header {
    color: var(--text-primary) !important;
    border-bottom-color: var(--primary) !important;
}

[data-theme="dark"] .sidebar-section h3,
.dark-mode .sidebar-section h3,
body.dark-mode .sidebar-section h3 {
    color: var(--text-primary) !important;
}

/* If you're using a toggle switch or button for dark mode */
[data-theme="dark"] .sidebar-section *,
.dark-mode .sidebar-section *,
body.dark-mode .sidebar-section * {
    border-color: var(--border-color) !important;
}

/* Animation support for dark mode transitions */
.sidebar-section,
.sidebar-section .section-header,
.sidebar-section h3,
.upcoming-occasions-section,
.upcoming-occasions-section .section-header,
.upcoming-occasions-section #upcoming-occasions-list {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}
/* Dark Mode for Filter Search Container */

/* Main search container */
[data-theme="dark"] .filter-search-container,
.dark-mode .filter-search-container,
body.dark-mode .filter-search-container {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

/* Search input wrapper */
[data-theme="dark"] .search-input-wrapper,
.dark-mode .search-input-wrapper,
body.dark-mode .search-input-wrapper {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px;
}

/* Search input field */
[data-theme="dark"] .occasion-search-input,
[data-theme="dark"] #occasion-search,
.dark-mode .occasion-search-input,
.dark-mode #occasion-search,
body.dark-mode .occasion-search-input,
body.dark-mode #occasion-search {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
}

/* Search input placeholder */
[data-theme="dark"] .occasion-search-input::placeholder,
[data-theme="dark"] #occasion-search::placeholder,
.dark-mode .occasion-search-input::placeholder,
.dark-mode #occasion-search::placeholder,
body.dark-mode .occasion-search-input::placeholder,
body.dark-mode #occasion-search::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.7;
}

/* Search input focus state */
[data-theme="dark"] .occasion-search-input:focus,
[data-theme="dark"] #occasion-search:focus,
.dark-mode .occasion-search-input:focus,
.dark-mode #occasion-search:focus,
body.dark-mode .occasion-search-input:focus,
body.dark-mode #occasion-search:focus {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2) !important;
    outline: none !important;
}

/* Clear search icon */
[data-theme="dark"] .clear-search,
[data-theme="dark"] #clear-search,
.dark-mode .clear-search,
.dark-mode #clear-search,
body.dark-mode .clear-search,
body.dark-mode #clear-search {
    color: var(--text-secondary) !important;
    background: transparent !important;
}

/* Clear search icon hover */
[data-theme="dark"] .clear-search:hover,
[data-theme="dark"] #clear-search:hover,
.dark-mode .clear-search:hover,
.dark-mode #clear-search:hover,
body.dark-mode .clear-search:hover,
body.dark-mode #clear-search:hover {
    color: var(--text-primary) !important;
    background: var(--bg-hover) !important;
    border-radius: 50%;
}

/* Search results info */
[data-theme="dark"] .search-results-info,
[data-theme="dark"] #search-results-info,
.dark-mode .search-results-info,
.dark-mode #search-results-info,
body.dark-mode .search-results-info,
body.dark-mode #search-results-info {
    background: var(--bg-secondary) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
}

/* Search input wrapper hover state */
[data-theme="dark"] .search-input-wrapper:hover,
.dark-mode .search-input-wrapper:hover,
body.dark-mode .search-input-wrapper:hover {
    border-color: var(--primary) !important;
    background: var(--bg-card) !important;
}

/* Additional styling for better dark mode experience */
[data-theme="dark"] .search-input-wrapper:focus-within,
.dark-mode .search-input-wrapper:focus-within,
body.dark-mode .search-input-wrapper:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1) !important;
}

/* If there's a search icon */
[data-theme="dark"] .search-input-wrapper .fas.fa-search,
.dark-mode .search-input-wrapper .fas.fa-search,
body.dark-mode .search-input-wrapper .fas.fa-search {
    color: var(--text-secondary) !important;
}

/* Search dropdown/suggestions (if any) */
[data-theme="dark"] .search-suggestions,
[data-theme="dark"] .search-dropdown,
.dark-mode .search-suggestions,
.dark-mode .search-dropdown,
body.dark-mode .search-suggestions,
body.dark-mode .search-dropdown {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .search-suggestion-item,
.dark-mode .search-suggestion-item,
body.dark-mode .search-suggestion-item {
    color: var(--text-primary) !important;
    background: transparent !important;
}

[data-theme="dark"] .search-suggestion-item:hover,
.dark-mode .search-suggestion-item:hover,
body.dark-mode .search-suggestion-item:hover {
    background: var(--bg-hover) !important;
    color: var(--text-primary) !important;
}

/* Transitions for smooth dark mode switching */
.filter-search-container,
.search-input-wrapper,
.occasion-search-input,
#occasion-search,
.clear-search,
#clear-search,
.search-results-info,
#search-results-info {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Auto-complete or search results container */
[data-theme="dark"] .search-results-container,
.dark-mode .search-results-container,
body.dark-mode .search-results-container {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .search-result-item,
.dark-mode .search-result-item,
body.dark-mode .search-result-item {
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .search-result-item:hover,
.dark-mode .search-result-item:hover,
body.dark-mode .search-result-item:hover {
    background: var(--bg-hover) !important;
}

/* No results message */
[data-theme="dark"] .no-search-results,
.dark-mode .no-search-results,
body.dark-mode .no-search-results {
    color: var(--text-secondary) !important;
    background: var(--bg-secondary) !important;
}

/* Search loading state */
[data-theme="dark"] .search-loading,
.dark-mode .search-loading,
body.dark-mode .search-loading {
    color: var(--text-secondary) !important;
}

/* Search input with icons inside */
[data-theme="dark"] .search-input-wrapper i,
.dark-mode .search-input-wrapper i,
body.dark-mode .search-input-wrapper i {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .search-input-wrapper i:hover,
.dark-mode .search-input-wrapper i:hover,
body.dark-mode .search-input-wrapper i:hover {
    color: var(--text-primary) !important;
}
  /* Modal Backdrop */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }

        /* Dark Mode Modal Content */
        body.dark-mode .modal-content,
        [data-theme="dark"] .modal-content,
        .dark-mode .modal-content {
            max-width: 500px;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 
                0 25px 50px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(255, 255, 255, 0.05);
            background: #1a1a1a;
            border: 1px solid #333;
            transform: scale(1);
            transition: all 0.3s ease;
        }

        /* Light mode override */
        body:not(.dark-mode) .modal-content,
        [data-theme="light"] .modal-content {
            background: white !important;
            border: 1px solid #e0e0e0 !important;
            box-shadow: 
                0 25px 50px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.2) !important;
        }

        .modal-content:hover {
            transform: scale(1.02);
            box-shadow: 
                0 30px 60px rgba(0, 0, 0, 0.8),
                0 0 0 1px rgba(255, 255, 255, 0.08);
        }

        /* Dark Mode Header */
        body.dark-mode .modal-header,
        [data-theme="dark"] .modal-header,
        .dark-mode .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 24px;
            border-bottom: 1px solid #333;
            background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%);
            position: relative;
        }

        /* Light mode header (add this if you don't have it) */
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 24px;
            border-bottom: 1px solid #eee;
            background: linear-gradient(135deg, #ff6b35, #ff8c42);
            position: relative;
            color: white;
        }

        .modal-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, 
                transparent, 
                rgba(98, 0, 238, 0.5), 
                transparent);
        }

        .modal-header h3 {
            margin: 0;
            color: #ffffff;
            font-size: 1.25rem;
            font-weight: 600;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }

        /* Dark Mode Close Button */
        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #888;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .modal-close:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            transform: rotate(90deg);
        }

        /* Dark Mode Body */
        .modal-body {
            padding: 24px;
            background: #1a1a1a;
            color: #e0e0e0;
        }

        .modal-body p {
            margin-bottom: 20px;
            color: #b0b0b0;
            font-size: 14px;
            line-height: 1.5;
        }

        /* Dark Mode Info Box */
        .info-box {
            background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            border-left: 4px solid #6200ee;
            box-shadow: 
                inset 0 1px 0 rgba(255, 255, 255, 0.05),
                0 2px 8px rgba(0, 0, 0, 0.3);
            position: relative;
        }

        .info-box::before {
            content: '';
            position: absolute;
            top: 0;
            left: 4px;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, 
                rgba(98, 0, 238, 0.8), 
                transparent 50%);
        }

        .info-item {
            margin-bottom: 12px;
            color: #c0c0c0;
            font-size: 13px;
            display: flex;
            align-items: center;
            transition: color 0.2s ease;
        }

        .info-item:hover {
            color: #e0e0e0;
        }

        .info-item:last-child {
            margin-bottom: 0;
        }

        .info-item::before {
            content: '•';
            color: #6200ee;
            font-weight: bold;
            margin-right: 8px;
            font-size: 16px;
        }

        /* Dark Mode Footer */
        .modal-footer {
            padding: 20px 24px;
            border-top: 1px solid #333;
            display: flex;
            gap: 12px;
            justify-content: flex-end;
            background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%);
        }

        /* Dark Mode Buttons */
        .btn-cancel {
            padding: 10px 20px;
            border: 1px solid #444;
            background: #2a2a2a;
            border-radius: 6px;
            cursor: pointer;
            color: #e0e0e0;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .btn-cancel:hover {
            background: #333;
            border-color: #555;
            color: #fff;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }

        .btn-confirm {
            padding: 10px 20px;
            border: none;
            color: white;
            border-radius: 6px;
            cursor: pointer;
            background: linear-gradient(135deg, #6200ee 0%, #7c4dff 100%);
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s ease;
            box-shadow: 
                0 2px 8px rgba(98, 0, 238, 0.3),
                0 1px 0 rgba(255, 255, 255, 0.1) inset;
            position: relative;
            overflow: hidden;
        }

        .btn-confirm::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 255, 255, 0.2), 
                transparent);
            transition: left 0.5s ease;
        }

        .btn-confirm:hover {
            background: linear-gradient(135deg, #7c4dff 0%, #9c27b0 100%);
            transform: translateY(-1px);
            box-shadow: 
                0 4px 12px rgba(98, 0, 238, 0.4),
                0 1px 0 rgba(255, 255, 255, 0.1) inset;
        }

        .btn-confirm:hover::before {
            left: 100%;
        }

        .btn-confirm:active {
            transform: translateY(0);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .modal-content {
                max-width: 90vw;
                margin: 20px;
            }
            
            .modal-header,
            .modal-body,
            .modal-footer {
                padding: 16px;
            }
            
            .modal-footer {
                flex-direction: column;
            }
            
            .btn-cancel,
            .btn-confirm {
                width: 100%;
                justify-content: center;
            }
        }

