 body {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            transition: 
        background-color 0.5s ease, 
        color 0.3s ease,
        border-color 0.3s ease;
        }
        
        .login-container {
            width: 100%;
            max-width: 420px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(10px);
            padding: 2.5rem;
            animation: fadeIn 0.6s ease-out;
             transition: 
        background-color 0.5s ease, 
        color 0.3s ease,
        border-color 0.3s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .login-logo {
            width: 80px;
            height: 80px;
            margin: 0 auto 1.5rem;
            display: block;
            object-fit: contain;
        }
        
        .login-title {
            text-align: center;
            margin-bottom: 1.5rem;
            color: var(--secondary-color);
            font-weight: 700;
            font-size: 1.8rem;
        }
        
        .login-subtitle {
            text-align: center;
            color: #6c757d;
            margin-bottom: 2rem;
            font-size: 0.95rem;
        }
        
        .form-control {
            padding: 0.75rem 1rem;
            border-radius: 8px;
            border: 1px solid #e0e0e0;
             transition: 
        background-color 0.3s ease, 
        border-color 0.3s ease;
        }
        
        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
        }
        
        .btn-login {
            background-color: var(--primary-color);
            border: none;
            padding: 0.75rem;
            font-weight: 600;
            border-radius: 8px;
            transition: all 0.3s;
            letter-spacing: 0.5px;
        }
        
        .btn-login:hover {
            background-color:var(--secondary-color);
            transform: translateY(-2px);
        }
        
        .admin-link {
            display: block;
            text-align: center;
            margin-top: 1.5rem;
            color: var(--secondary-color);
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .admin-link:hover {
            color: var(--accent-color);
        }
        
        .input-icon {
            position: relative;
        }
        
        .input-icon i {
          position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    z-index: 2;
        }
        
        .input-icon input {
            padding-left: 40px;
        }

        .input-with-voice {
    position: relative;
}

.input-with-voice input {
    padding-right: 45px;    /* ← crucial: make space on the right */
}
             /* Floating particles */
        .particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }
        
        .particle {
            position: absolute;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 50%;
            animation: float linear infinite;
        }
        
        @keyframes float {
            0% { transform: translateY(0) rotate(0deg); }
            100% { transform: translateY(-100vh) rotate(360deg); }
        }
        
        @media (max-width: 576px) {
            .login-container {
                margin: 0 15px;
            }
            
            .login-header, .login-body {
                padding: 20px;
            }
        }
        
        /* Animation */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .login-container {
            animation: fadeIn 0.5s ease-out;
        }
        
       /* Bell Animation */
/*.notification-bell.pulse {*/
/*    animation: pulse 2s infinite ease-in-out;*/
/*    transform-origin: center top;*/
/*}*/

@keyframes gentleTilt {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

/* Make the entire bell area clickable */
.notification-bell {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: transform 0.3s;
     animation: gentleTilt 4s infinite ease-in-out;
}

.notification-bell:hover {
    animation: none !important; /* Stop animation on hover */
    transform: scale(1.3);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Theme Toggle Styles */
.theme-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--secondary-color);
    z-index: 1000;
    transition: all 0.3s;
    background: rgba(255,255,255,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.3);
}

/* Dark Mode Styles */
body.dark-mode {
    background: #121212;
}

body.dark-mode .login-container {
    background: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode .login-title,
body.dark-mode .admin-link {
    color: #e0e0e0;
}

body.dark-mode .form-control {
    background-color: #2a2a2a;
    border-color: #444;
    color: white;
}

body.dark-mode .form-control::placeholder {
    color: #aaa;
}

/* Voice Button Styles */
.voice-btn {
   position: absolute;
    right: 4px;
    top: 65%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--secondary-color);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 2;
}

.voice-btn:hover {
   color: var(--accent-color);
    background: rgba(231, 76, 60, 0.08);
    transform: translateY(-50%) scale(1.15);
}

.voice-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Optional: pulsing ring when listening */
.voice-btn.listening {
    color: var(--accent-color);
    animation: voicePulse 1.2s infinite;
}
@keyframes voicePulse {
    0%   { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Add to your existing voice button styles */
.voice-btn.listening::after {
    content: "Listening...";
    position: absolute;
    right: 100%;
    white-space: nowrap;
    background: var(--accent-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
    font-size: 0.8rem;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Add to your CSS */
.conversion-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: opacity 0.3s;
    z-index: 10000;
}

.conversion-hint .original {
    color: #ff9999;
}

.conversion-hint .converted {
    color: #88ff88;
}
/* Add to your CSS */
.voice-login-feedback {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--primary-color);
    font-weight: bold;
    animation: fadeInUp 0.5s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}