        body { 
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
            -webkit-tap-highlight-color: transparent;
        }

        /* =============================================
           LOGIN LOADING OVERLAY
        ============================================= */
        #login-loading-overlay {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #0c4a6e 0%, #0ea5e9 50%, #0284c7 100%);
            transition: opacity 0.6s ease, visibility 0.6s ease;
            opacity: 1;
            visibility: visible;
        }
        #login-loading-overlay.fade-out {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        /* Ocean wave spinner */
        .loader-logo {
            width: 80px;
            height: 80px;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(0,0,0,0.3);
            margin-bottom: 28px;
        }
        .loader-logo img { width: 100%; height: 100%; object-fit: cover; }

        .loader-spinner {
            width: 52px;
            height: 52px;
            border: 4px solid rgba(255,255,255,0.2);
            border-top-color: #ffffff;
            border-radius: 50%;
            animation: loader-spin 0.9s linear infinite;
            margin-bottom: 20px;
        }
        @keyframes loader-spin {
            to { transform: rotate(360deg); }
        }

        .loader-text {
            color: #ffffff;
            font-size: 15px;
            font-weight: 600;
            letter-spacing: 0.05em;
            opacity: 0.9;
            margin-bottom: 6px;
        }
        .loader-subtext {
            color: rgba(255,255,255,0.6);
            font-size: 12px;
            font-weight: 400;
        }

        /* Animated dots */
        .loader-dots span {
            display: inline-block;
            width: 6px; height: 6px;
            border-radius: 50%;
            background: rgba(255,255,255,0.7);
            margin: 0 3px;
            animation: loader-dot-bounce 1.2s ease-in-out infinite;
        }
        .loader-dots span:nth-child(2) { animation-delay: 0.2s; }
        .loader-dots span:nth-child(3) { animation-delay: 0.4s; }
        @keyframes loader-dot-bounce {
            0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
            40% { transform: scale(1.1); opacity: 1; }
        }
        .tab-active { border-bottom: 3px solid #0ea5e9; color: #0284c7; font-weight: 600; }
        .glass-panel { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.4); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); }
        .toast { transition: all 0.3s ease; transform: translateY(100%); opacity: 0; }
        .toast.show { transform: translateY(0); opacity: 1; }
        
        /* Rigid permission hiding class */
        .auth-hidden { display: none !important; }
        
        /* Custom scrollbar for calendar */
        .calendar-scroll::-webkit-scrollbar { height: 8px; }
        .calendar-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.5); border-radius: 4px; }
        .calendar-scroll::-webkit-scrollbar-thumb { background: rgba(203,213,225,0.8); border-radius: 4px; }
        .calendar-scroll::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,0.9); }
        
        /* iOS Mobile Optimizations */
        input[type="date"], input[type="month"], select { min-height: 38px; }
        .ios-safe-pt { padding-top: env(safe-area-inset-top); }
        .ios-safe-pb { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
        .ios-safe-mb { margin-bottom: env(safe-area-inset-bottom); }
        
        /* Hide scrollbar for Chrome, Safari and Opera */
        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }
