/* ===== ROOT VARIABLES ===== */
:root {
    /* Color Palette */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    --danger-gradient: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    --info-gradient: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);

    /* Background Colors */
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1e3a;
    --bg-tertiary: #2a2e4a;

    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.25);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-light-75: rgba(255, 255, 255, 0.75);
    --text-light-50: rgba(255, 255, 255, 0.5);

    /* Spacing */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;

    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== LOADING SKELETON STYLES ===== */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--border-radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text.large { height: 24px; }
.skeleton-text.small { height: 12px; }

.skeleton-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.skeleton-table-row {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skeleton-circle {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== HEAVY BRAND FONT ===== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue:wght@400&display=swap');

.brand-heavy {
    font-family: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0;
}

/* Add padding to body when navbar is fixed */
body.has-fixed-navbar {
    padding-top: 100px;
}

/* Responsive padding for fixed navbar */
@media (max-width: 991.98px) {
    body.has-fixed-navbar {
        padding-top: 80px;
    }
}

/* ===== BACKGROUND STYLES ===== */
.login-background,
.admin-login-background,
.main-background,
.admin-background,
.contact-background {
    min-height: 100vh;
    background:
        linear-gradient(135deg, #0a0e27 0%, #1a1e3a 25%, #2a2e4a 50%, #1a1e3a 75%, #0a0e27 100%),
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(240, 147, 251, 0.03) 0%, transparent 50%);
    position: relative;
}

.login-background::before,
.admin-login-background::before,
.main-background::before,
.admin-background::before,
.contact-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(240, 147, 251, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 60% 30%, rgba(17, 153, 142, 0.08) 0%, transparent 50%);
    animation: backgroundShift 25s ease-in-out infinite, backgroundRotate 40s linear infinite;
    pointer-events: none;
}

.admin-login-background::before {
    background: radial-gradient(circle at 20% 50%, rgba(231, 76, 60, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(192, 57, 43, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(155, 89, 182, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 60% 30%, rgba(230, 126, 34, 0.08) 0%, transparent 50%);
}

.login-background::after,
.admin-login-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 50% 10%, rgba(240, 147, 251, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 10% 90%, rgba(17, 153, 142, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 90% 40%, rgba(251, 191, 36, 0.2) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 80px 80px, 120px 120px, 90px 90px;
    animation: particleFloat 30s ease-in-out infinite;
    opacity: 0.6;
    pointer-events: none;
}

.admin-login-background::after {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(231, 76, 60, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(192, 57, 43, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 50% 10%, rgba(155, 89, 182, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 10% 90%, rgba(230, 126, 34, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 90% 40%, rgba(241, 196, 15, 0.2) 1px, transparent 1px);
}

.login-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 50% 10%, rgba(240, 147, 251, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 10% 90%, rgba(17, 153, 142, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 90% 40%, rgba(251, 191, 36, 0.2) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 80px 80px, 120px 120px, 90px 90px;
    animation: particleFloat 30s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes backgroundShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes backgroundRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) translateX(-15px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translateY(15px) translateX(5px) scale(1.05);
        opacity: 0.7;
    }
}

/* ===== GLASS MORPHISM COMPONENTS ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px var(--glass-shadow);
    transition: all var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px var(--glass-shadow);
}

.glass-navbar {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--glass-border);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
    padding: 1.5rem 0;
    min-height: 80px;
    transition: all 0.4s ease;
}

.glass-navbar.scrolled {
    background: rgba(0, 0, 0, 0.7) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    padding: 1rem 0;
    min-height: 70px;
}

.glass-navbar .navbar-brand {
    font-size: 3.6rem;
    font-weight: 800;
    letter-spacing: -1.2px;
    text-shadow: 0 3px 15px rgba(102, 126, 234, 0.6);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-right: auto;
}

.glass-navbar .navbar-brand:hover {
    transform: scale(1.02);
    text-shadow: 0 3px 15px rgba(102, 126, 234, 0.7);
}

.glass-navbar .navbar-logo {
    transition: transform 0.4s ease;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.4));
}

.glass-navbar .navbar-brand:hover .navbar-logo {
    /* No transform - keep original size */
}

.glass-navbar .navbar-toggler {
    padding: 0.75rem;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-navbar .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.glass-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.5);
}

.glass-navbar .navbar-toggler-icon {
    width: 1.25em;
    height: 1.25em;
}

.glass-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    font-size: 1.8rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding: 1.5rem 2rem !important;
    margin: 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 140px;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.glass-navbar .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.glass-navbar .nav-link:hover::before,
.glass-navbar .nav-link.active::before {
    opacity: 1;
}

.glass-navbar .nav-link:hover::after,
.glass-navbar .nav-link.active::after {
    width: 70%;
}

.glass-navbar .nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    text-shadow: 0 1px 5px rgba(102, 126, 234, 0.5);
}

.glass-navbar .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.2));
    box-shadow:
        0 12px 40px rgba(102, 126, 234, 0.6),
        0 0 30px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(102, 126, 234, 0.6);
    border-radius: 16px;
    transform: translateY(-5px) scale(1.08);
    position: relative;
    overflow: hidden;
    font-weight: 800;
}

.glass-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    border-radius: 19px;
    z-index: -2;
    opacity: 0.5;
    filter: blur(12px);
    animation: activeGlow 1.5s ease-in-out infinite alternate;
}

.glass-navbar .navbar-text {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-right: 1rem;
}

.glass-navbar .navbar-text i {
    color: var(--primary-gradient);
    opacity: 0.8;
}

.glass-navbar .logout-link {
    color: rgba(251, 191, 36, 0.95) !important;
    font-weight: 600;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    transition: all 0.3s ease !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.glass-navbar .logout-link:hover {
    color: #fbbf24 !important;
    background: rgba(251, 191, 36, 0.2) !important;
    border-color: rgba(251, 191, 36, 0.4) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

/* Mobile Navigation Styles */
@media (max-width: 991.98px) {
    .glass-navbar {
        padding: 1rem 0;
        min-height: 70px;
    }

    .glass-navbar .navbar-collapse {
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        margin-top: 1rem;
        padding: 1.5rem;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }

    .glass-navbar .navbar-brand {
        font-size: 1.5rem;
    }

    .glass-navbar .nav-link {
        padding: 1rem 1.25rem !important;
        margin: 0.5rem 0;
        font-size: 1.1rem;
        justify-content: flex-start;
        border-radius: 12px;
    }

    .glass-navbar .navbar-text {
        padding: 1rem 1.25rem;
        margin: 0.5rem 0;
        display: flex;
        font-size: 1rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.08);
    }

    .glass-navbar .logout-link {
        padding: 1rem 1.25rem !important;
        margin: 0.5rem 0;
        justify-content: flex-start;
        font-size: 1.1rem;
    }
}

.glass-input {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
    position: relative;
}

.glass-input::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
    pointer-events: none;
    z-index: -1;
}

.glass-input:focus-within::before {
    left: 100%;
}

.glass-input:focus-within {
    border-color: #667eea;
    box-shadow: inset 0 0 0 1px rgba(102, 126, 234, 0.3), 0 0 6px rgba(102, 126, 234, 0.15);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.glass-input .form-control {
    background: transparent !important;
    border: none !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
    pointer-events: auto !important;
}

.glass-input .form-control:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.glass-input .form-control::placeholder {
    color: var(--text-muted) !important;
}

.glass-input .input-group-text {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-secondary);
}

.glass-input .password-toggle {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-secondary) !important;
    transition: all var(--transition-normal) !important;
}

.glass-input .password-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
    color: var(--text-primary) !important;
    transform: scale(1.05);
}

.glass-btn {
    background: var(--primary-gradient) !important;
    border: none !important;
    border-radius: var(--border-radius-sm) !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    transition: all var(--transition-normal) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.glass-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 0.6s;
}

.glass-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    border-radius: 50%;
}

.glass-btn:hover::before {
    left: 100%;
}

.glass-btn:hover::after {
    width: 300px;
    height: 300px;
}

.glass-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5), 0 0 20px rgba(102, 126, 234, 0.2) !important;
}

.glass-btn:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

.glass-alert {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--border-radius-sm) !important;
    color: var(--text-primary) !important;
}

.glass-alert.alert-success {
    border-color: rgba(56, 239, 125, 0.3) !important;
    background: rgba(56, 239, 125, 0.1) !important;
}

.glass-alert.alert-danger {
    border-color: rgba(232, 67, 147, 0.3) !important;
    background: rgba(232, 67, 147, 0.1) !important;
}

.glass-alert.alert-warning {
    border-color: rgba(251, 191, 36, 0.3) !important;
    background: rgba(251, 191, 36, 0.1) !important;
}

.glass-header {
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2)) !important;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    border-bottom: 1px solid var(--glass-border) !important;
    padding: 1.5rem !important;
}

.glass-header-success {
    background: linear-gradient(45deg, rgba(17, 153, 142, 0.2), rgba(56, 239, 125, 0.2)) !important;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    border-bottom: 1px solid var(--glass-border) !important;
    padding: 1.5rem !important;
}

.glass-modal .modal-content {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--border-radius) !important;
    color: var(--text-primary) !important;
}

/* Enhanced modal styling for better visibility */
.modal {
    z-index: 1060;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1055;
}

.modal-content {
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.modal-title {
    color: white !important;
    font-weight: 600;
}

.modal-body {
    color: white !important;
}

.modal .form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

.modal .form-control:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

.modal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.modal .form-label {
    color: white !important;
    font-weight: 500;
}

.modal .form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.modal .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.modal .form-check-label {
    color: white !important;
}

.modal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ===== ENHANCED DELETE MODAL STYLES ===== */
.delete-modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 24px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.delete-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ef4444, #dc2626, #b91c1c, #dc2626, #ef4444);
    background-size: 400% 100%;
    animation: dangerShift 3s ease-in-out infinite;
}

@keyframes dangerShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.delete-modal-header {
    padding: 2.5rem 2.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    border-bottom: 2px solid rgba(239, 68, 68, 0.2);
}

.delete-warning-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    animation: warningPulse 2s ease-in-out infinite;
}

.delete-warning-icon i {
    font-size: 1.75rem;
    color: white;
}

@keyframes warningPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 12px 35px rgba(239, 68, 68, 0.6);
    }
}

.delete-modal-title {
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    flex: 1;
    margin: 0 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.delete-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.delete-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    transform: scale(1.1);
}

.delete-modal-body {
    padding: 2.5rem;
}

.delete-visual-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    border-radius: 20px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.delete-icon-container {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-main-icon {
    font-size: 3rem;
    color: #ef4444;
    z-index: 2;
    position: relative;
}

.delete-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    animation: deletePulse 2s ease-in-out infinite;
}

.delete-pulse-ring.delay-1 {
    animation-delay: 0.5s;
    border-color: rgba(239, 68, 68, 0.2);
}

@keyframes deletePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.delete-user-info {
    text-align: center;
}

.delete-label {
    display: block;
    color: var(--text-light-75);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.delete-username {
    display: block;
    color: #ef4444;
    font-size: 1.5rem;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.delete-message-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.delete-question {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.delete-description {
    color: var(--text-light-75);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.delete-consequences {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.consequence-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.consequence-item:last-child {
    border-bottom: none;
}

.consequence-item i {
    color: #ef4444;
    font-size: 1.25rem;
    width: 20px;
    text-align: center;
}

.consequence-item span {
    color: var(--text-light-75);
    font-size: 0.95rem;
    font-weight: 500;
}

.delete-confirmation-input {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.confirmation-label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

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

.delete-input:focus {
    outline: none;
    border-color: #ef4444;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.delete-input::placeholder {
    color: var(--text-muted);
}

.delete-modal-footer {
    padding: 2rem 2.5rem 2.5rem;
    border-top: 2px solid rgba(239, 68, 68, 0.2);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-delete-permanent {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: 2px solid rgba(239, 68, 68, 0.5);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-delete-permanent:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: rgba(220, 38, 38, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

.btn-delete-permanent:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Mobile responsive for delete modal */
@media (max-width: 768px) {
    .delete-modal-content {
        margin: 1rem;
        border-radius: 20px;
    }

    .delete-modal-header {
        padding: 2rem 1.5rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .delete-warning-icon {
        width: 50px;
        height: 50px;
    }

    .delete-warning-icon i {
        font-size: 1.5rem;
    }

    .delete-modal-title {
        font-size: 1.5rem;
        margin: 0;
    }

    .delete-modal-body {
        padding: 2rem 1.5rem;
    }

    .delete-visual-section {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .delete-icon-container {
        width: 80px;
        height: 80px;
    }

    .delete-main-icon {
        font-size: 2.5rem;
    }

    .delete-username {
        font-size: 1.25rem;
    }

    .delete-consequences {
        padding: 1.5rem;
    }

    .delete-confirmation-input {
        padding: 1.25rem;
    }

    .delete-modal-footer {
        padding: 1.5rem;
        flex-direction: column;
    }

    .btn-cancel,
    .btn-delete-permanent {
        width: 100%;
        justify-content: center;
    }
}

.permission-option {
    transition: all 0.3s ease;
}

.permission-option:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px);
}

.alert {
    color: white !important;
}

/* ===== LOGIN PAGE STYLES ===== */
.login-card, .admin-login-card {
    max-width: 480px;
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.enhanced-login-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(102, 126, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.enhanced-login-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(102, 126, 234, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
}

.enhanced-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 100%;
    animation: gradientShift 3s ease-in-out infinite;
    z-index: 1;
}

.enhanced-login-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.enhanced-login-card:hover::after {
    opacity: 1;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 16px;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.login-header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
    position: relative;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.03));
    border-radius: 16px 16px 0 0;
    margin: -1px -1px 0 -1px;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 1px;
}

.logo-container {
    margin-bottom: 2rem;
    position: relative;
}

.logo {
    width: 90px;
    height: 90px;
    filter: drop-shadow(0 6px 20px rgba(102, 126, 234, 0.4));
    transition: transform 0.3s ease;
}

.logo-container:hover .logo {
    transform: scale(1.05) rotate(5deg);
}

.navbar-logo {
    width: 40px;
    height: 40px;
}

.login-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0;
    font-weight: 400;
}

.login-body, .admin-body {
    padding: 2rem 3rem 3rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.02));
    border-radius: 0 0 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Enhanced Login Form Styles */
.login-form, .admin-form {
    position: relative;
}

.login-form .form-group, .admin-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.login-form .form-group::before, .admin-form .form-group::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.login-form .form-group:focus-within::before, .admin-form .form-group:focus-within::before {
    height: 100%;
}

.admin-form .form-group::before {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* Enhanced input animations */
.glass-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-input:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

.enhanced-login-card .glass-input:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

.enhanced-login-card .admin-login-card .glass-input:hover {
    border-color: rgba(231, 76, 60, 0.3);
}

.security-notice {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.contact-link {
    margin-top: 1rem;
}

/* ===== ADMIN LOGIN STYLES ===== */
.admin-login-card {
    max-width: 420px;
    width: 100%;
    margin-top: 2rem;
    animation: fadeInUp 0.6s ease-out, float 6s ease-in-out infinite;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(231, 76, 60, 0.1);
    position: relative;
}

.admin-login-card.enhanced-login-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border: 2px solid rgba(231, 76, 60, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(231, 76, 60, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.admin-login-card.enhanced-login-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(231, 76, 60, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(231, 76, 60, 0.4);
}

.admin-login-card.enhanced-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #c0392b, #9b59b6, #e67e22);
    background-size: 300% 100%;
    animation: gradientShift 3s ease-in-out infinite;
    z-index: 1;
}

.admin-login-card.enhanced-login-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.admin-login-card.enhanced-login-card:hover::after {
    opacity: 1;
}

.admin-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.1));
    border-radius: 16px;
    pointer-events: none;
}

.admin-header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
    position: relative;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), rgba(192, 57, 43, 0.03));
    border-radius: 16px 16px 0 0;
    margin: -1px -1px 0 -1px;
}

.admin-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    border-radius: 1px;
}

.admin-icon {
    font-size: 4.5rem;
    color: #e74c3c;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 6px 20px rgba(231, 76, 60, 0.4));
    transition: transform 0.3s ease;
}

.admin-login-card:hover .admin-icon {
    transform: scale(1.05) rotate(5deg);
}

.admin-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
    letter-spacing: -0.5px;
}

.admin-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0;
    font-weight: 400;
}

.admin-body {
    padding: 1.5rem 2.5rem 2.5rem;
}

.security-warning {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #e74c3c;
}

.admin-btn {
    background: var(--danger-gradient) !important;
    border: none !important;
    border-radius: var(--border-radius-sm) !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    transition: all var(--transition-normal) !important;
}

.admin-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4) !important;
}

/* ===== MAIN DASHBOARD STYLES ===== */
.stats-container {
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1rem;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-value-small {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.processing-card {
    animation: fadeInUp 0.8s ease-out;
}

.result-card {
    animation: fadeInUp 1s ease-out;
}

.result-content {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.result-text {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

.char-counter {
    color: var(--text-light-75);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Enhanced small text in profile sections */
.profile-section small {
    color: var(--text-light-75) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.logout-link {
    color: var(--text-secondary) !important;
    transition: color var(--transition-fast) !important;
}

.logout-link:hover {
    color: var(--text-primary) !important;
}

/* ===== ADMIN DASHBOARD STYLES ===== */
.admin-card {
    animation: fadeInUp 0.6s ease-out;
    margin-bottom: 2rem;
}

/* ===== PROFILE CARDS STYLES ===== */
.profile-card {
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9)),
        linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.05));
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 28px;
    box-shadow:
        0 32px 100px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 40px rgba(102, 126, 234, 0.06);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    height: 100%;
    cursor: pointer;
    margin-top: 2rem;
    transform: translateY(0);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,
        #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe, #43e97b, #38f9d7);
    background-size: 400% 100%;
    animation: gradientFlow 4s ease-in-out infinite;
    z-index: 1;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.profile-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.profile-card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow:
        0 45px 120px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 16px 50px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.6);
    background:
        linear-gradient(145deg, rgba(20, 30, 52, 0.98), rgba(35, 48, 68, 0.95)),
        linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.08));
}

.profile-card:hover::before {
    animation: gradientFlow 2s ease-in-out infinite;
}

.profile-card:hover::after {
    opacity: 1;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.profile-header {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8)),
        linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.06));
    padding: 2.5rem 2rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
    pointer-events: none;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.4), transparent);
}

.profile-avatar {
    width: 90px;
    height: 90px;
    background:
        linear-gradient(135deg, #667eea, #764ba2, #f093fb),
        linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow:
        0 12px 35px rgba(102, 126, 234, 0.6),
        0 0 20px rgba(102, 126, 234, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
    border: 3px solid rgba(255, 255, 255, 0.25);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-avatar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.profile-card:hover .profile-avatar {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.7);
    border-color: rgba(255, 255, 255, 0.4);
}

.profile-card:hover .profile-avatar::before {
    opacity: 1;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.profile-name {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.8px;
    line-height: 1.2;
    background: linear-gradient(135deg, white, rgba(255, 255, 255, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-id {
    color: var(--text-light-75);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-id::before {
    content: 'ID:';
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.profile-status {
    margin-left: auto;
    position: relative;
    z-index: 2;
}

.profile-status .badge {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.625rem 1.25rem;
    border-radius: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.profile-status .badge::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;
}

.profile-card:hover .profile-status .badge::before {
    left: 100%;
}

.profile-status .badge.bg-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.profile-status .badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.profile-status .badge.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.profile-status .badge.bg-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.profile-body {
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.3),
        rgba(30, 41, 59, 0.2));
    position: relative;
}

.profile-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.profile-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-row:last-child {
    margin-bottom: 0;
}

.profile-section.compact {
    flex: 1;
    margin-bottom: 0;
    padding: 1.25rem 1rem;
    min-height: auto;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.05));
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.profile-section.compact:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.08));
    border-color: rgba(102, 126, 234, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.profile-section.empty {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    position: relative;
}

.profile-section.empty::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 16px;
    pointer-events: none;
}

.profile-section.empty .section-icon {
    opacity: 0.4;
    color: var(--text-muted);
}

.profile-section.empty .section-content {
    opacity: 0.6;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.02));
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-section:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(4px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.profile-section:hover::before {
    opacity: 1;
}

.section-icon {
    font-size: 1.5rem;
    color: var(--primary-gradient);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.1));
    border-radius: 14px;
    border: 1px solid rgba(102, 126, 234, 0.25);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.section-icon::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.2));
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-section:hover .section-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.15));
    border-color: rgba(102, 126, 234, 0.4);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.profile-section:hover .section-icon::before {
    opacity: 1;
}

.section-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    position: relative;
    z-index: 2;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.api-key-display {
    font-family: 'Consolas', 'Monaco', monospace;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-light-75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    word-break: break-all;
    line-height: 1.4;
}

.btn-copy {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 8px;
    margin-left: 0.75rem;
    background: rgba(102, 126, 234, 0.1) !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
    color: var(--text-secondary) !important;
    transition: all var(--transition-fast) !important;
}

.btn-copy:hover {
    background: rgba(102, 126, 234, 0.2) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
    color: var(--text-primary) !important;
    transform: scale(1.05);
}

.usage-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.usage-text {
    font-weight: 700;
    color: white;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.usage-percent {
    color: var(--text-light-75);
    font-size: 1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.device-info {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.device-info .badge {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.device-info .badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-actions {
    padding: 2.5rem 2rem;
    background:
        linear-gradient(135deg, rgba(10, 14, 39, 0.8), rgba(20, 24, 59, 0.7)),
        linear-gradient(135deg, rgba(102, 126, 234, 0.06), rgba(118, 75, 162, 0.04));
    border-top: 2px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.profile-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.profile-actions::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.action-btn {
    padding: 0.9rem 1.4rem;
    font-size: 0.85rem;
    border-radius: 16px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Specific button backgrounds */
.action-btn.btn-outline-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: white !important;
}

.action-btn.btn-outline-info {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: white !important;
}

.action-btn.btn-outline-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
    color: white !important;
}

.action-btn.btn-outline-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: white !important;
}

.action-btn.btn-outline-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: white !important;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    border-radius: 50%;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover::after {
    width: 300px;
    height: 300px;
}

.action-btn:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    filter: brightness(1.15) saturate(1.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.action-btn.btn-outline-warning:hover {
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
}

.action-btn.btn-outline-info:hover {
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.action-btn.btn-outline-primary:hover {
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.action-btn.btn-outline-success:hover {
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
}

.action-btn.btn-outline-danger:hover {
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.4);
}

.action-btn:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

.action-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.1);
}

/* Responsive Profile Cards */
@media (max-width: 1200px) {
    .profile-card {
        margin-bottom: 1.5rem;
        transform: scale(1.02);
    }

    .action-buttons {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 992px) {
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-header {
        padding: 1.5rem 1rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-avatar {
        font-size: 3rem;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    .profile-body {
        padding: 1.5rem 1rem;
    }

    .profile-row {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .profile-section.compact {
        padding: 0.875rem;
        gap: 1rem;
    }

    .section-icon {
        font-size: 1.3rem;
        width: 35px;
        height: 35px;
    }

    .profile-actions {
        padding: 1.25rem 1rem;
    }

    .action-buttons {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .action-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
        min-height: 40px;
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .profile-card {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .profile-header {
        padding: 1.25rem 0.875rem 0.875rem;
    }

    .profile-avatar {
        font-size: 2.5rem;
    }

    .profile-name {
        font-size: 1.2rem;
    }

    .profile-body {
        padding: 1.25rem 0.875rem;
    }

    .profile-section {
        padding: 0.625rem;
        gap: 0.875rem;
    }

    .section-icon {
        font-size: 1.2rem;
        width: 28px;
    }

    .action-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        min-height: 36px;
    }
}

.table-responsive {
    border-radius: var(--border-radius-sm);
    background: rgba(0, 0, 0, 0.2);
    max-height: 70vh;
    overflow-y: auto;
}

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
    --bs-table-border-color: var(--glass-border);
}

.table-dark thead th {
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid var(--glass-border);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
}

.table-dark tbody tr {
    transition: all var(--transition-fast);
}

.table-dark tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-color: var(--glass-border);
}

.api-key-display {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.progress-container {
    width: 100%;
}

.progress-bar-custom {
    width: 100%;
    height: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.25rem;
}

.progress-fill {
    height: 100%;
    background: var(--success-gradient);
    border-radius: 12px;
    transition: width 0.6s ease;
    position: relative;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-light-75);
    text-align: center;
    display: block;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.expiry-info {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.expiry-info .badge {
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-card {
    max-width: 600px;
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
}

.contact-header {
    padding: 2rem 2rem 1rem;
}

.contact-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.3));
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
}

.contact-body {
    padding: 1rem 2rem 2rem;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.info-item {
    text-align: center;
}

.info-item i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.info-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.info-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.back-link {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* ===== FORM STYLES ===== */
.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ===== UTILITY CLASSES ===== */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.text-light-75 {
    color: var(--text-light-75) !important;
}

.text-light-50 {
    color: var(--text-light-50) !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .login-card,
    .admin-login-card,
    .contact-card {
        margin: 1rem;
        max-width: none;
    }

    .login-header,
    .admin-header,
    .contact-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .login-body,
    .admin-body,
    .contact-body {
        padding: 1rem 1.5rem 1.5rem;
    }

    /* Enhanced mobile login styles */
    .enhanced-login-card {
        margin: 1rem auto;
        transform: none;
    }

    .enhanced-login-card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .login-background .row,
    .admin-login-background .row {
        padding-top: 2rem !important;
    }

    .login-background .col-11,
    .admin-login-background .col-11 {
        margin-top: 2rem !important;
    }

    .login-title,
    .contact-title {
        font-size: 1.75rem;
    }

    .admin-title {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .glass-navbar .navbar-brand {
        font-size: 1.3rem;
    }

    .glass-navbar .navbar-logo {
        width: 35px;
        height: 35px;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .glass-header {
        padding: 1rem !important;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .api-key-display {
        font-size: 0.75rem;
    }
    
    .info-box {
        font-size: 0.875rem !important;
    }
    
    .security-tip {
        font-size: 0.85rem !important;
    }
    
    .glass-card .table th,
    .glass-card .table td {
        padding: 0.5rem !important;
        white-space: nowrap;
    }
}

/* ===== API KEYS HEADER STYLES ===== */
.api-keys-header {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.1),
        rgba(118, 75, 162, 0.1),
        rgba(240, 147, 251, 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px 20px 0 0;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.api-keys-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    flex: 1;
}

.header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.header-icon i {
    font-size: 2rem;
    color: white;
}

.api-keys-header:hover .header-icon {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.header-text {
    flex: 1;
}

.header-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 1rem;
    color: var(--text-light-75);
    margin: 0;
    font-weight: 500;
}

.header-stats {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light-75);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.header-actions {
    position: relative;
    z-index: 2;
}

.btn-generate {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: 2px solid rgba(102, 126, 234, 0.3) !important;
    color: white !important;
    padding: 0.875rem 1.5rem !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.btn-generate:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5) !important;
}

.btn-generate i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-generate:hover i {
    transform: scale(1.1);
}

/* Mobile responsive for API keys header */
@media (max-width: 1200px) {
    .api-keys-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem;
        min-height: auto;
    }

    .header-content {
        justify-content: center;
    }

    .header-stats {
        justify-content: center;
        gap: 1rem;
    }

    .stat-item {
        min-width: 70px;
        padding: 0.75rem 0.5rem;
    }

    .header-actions {
        width: 100%;
    }

    .btn-generate {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .api-keys-header {
        padding: 1.25rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .header-icon {
        width: 60px;
        height: 60px;
    }

    .header-icon i {
        font-size: 1.75rem;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .header-subtitle {
        font-size: 0.9rem;
    }

    .header-stats {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .stat-item {
        min-width: 60px;
        padding: 0.5rem 0.25rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

/* ===== GENERATE NEW API KEY STYLES ===== */
.generate-key-container {
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.04),
        rgba(102, 126, 234, 0.03));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.generate-key-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,
        #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 100%;
    animation: gradientFlow 8s ease-in-out infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.generate-key-header {
    padding: 2.5rem 3rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.header-icon-section {
    flex-shrink: 0;
}

.generate-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.generate-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: iconShine 3s ease-in-out infinite;
}

@keyframes iconShine {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.generate-icon i {
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 2;
}

.header-content-section {
    flex: 1;
}

.generate-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.generate-subtitle {
    font-size: 1.1rem;
    color: var(--text-light-75);
    margin: 0;
    font-weight: 500;
}

.generate-key-form {
    padding: 0 3rem 3rem;
}

/* Form Sections */
.form-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-section:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.section-header {
    padding: 2rem 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.1),
        rgba(118, 75, 162, 0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.form-section:hover .section-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.section-icon i {
    font-size: 1.5rem;
    color: white;
}

.section-title h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.section-title p {
    font-size: 0.9rem;
    color: var(--text-light-75);
    margin: 0;
    font-weight: 500;
}

.section-content {
    padding: 2rem;
}

/* Form Rows and Groups */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group .form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group .form-label i {
    color: var(--primary-gradient);
    opacity: 0.8;
}

.form-group .form-control,
.form-group .form-select {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-group .form-help {
    font-size: 0.8rem;
    color: var(--text-light-75);
    margin-top: 0.5rem;
    font-weight: 400;
}

/* Permissions Grid */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.permission-card {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.permission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.05),
        rgba(118, 75, 162, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.permission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.permission-card:hover::before {
    opacity: 1;
}

.permission-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.permission-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.permission-icon.mobile {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.permission-icon.email {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.permission-icon.aadhaar {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.permission-card:hover .permission-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.permission-info h6 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.permission-info p {
    font-size: 0.85rem;
    color: var(--text-light-75);
    margin: 0;
    font-weight: 500;
}

.permission-card .form-check {
    margin-bottom: 0;
}

.permission-card .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.permission-card .form-check-input:checked {
    background: var(--primary-gradient);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.3);
}

.permission-card .form-check-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    user-select: none;
}

.permission-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-light-75);
    font-size: 0.9rem;
    font-weight: 500;
}

.permission-notice i {
    color: #3b82f6;
}

/* Generate Section */
.generate-section {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.1),
        rgba(118, 75, 162, 0.08));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.generate-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.generate-preview {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    flex: 1;
}

.preview-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    animation: float 4s ease-in-out infinite;
}

.preview-icon i {
    font-size: 1.75rem;
    color: white;
}

.preview-info h6 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.preview-info p {
    font-size: 0.9rem;
    color: var(--text-light-75);
    margin: 0;
    font-weight: 500;
}

.btn-generate-main {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: white;
    padding: 0;
    border-radius: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.4s ease;
    min-width: 200px;
    position: relative;
    z-index: 2;
}

.btn-generate-main:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.generate-content {
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.generate-content i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.btn-generate-main:hover .generate-content i {
    transform: rotate(15deg) scale(1.1);
}

.generate-content span {
    font-size: 0.95rem;
}

.generate-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-generate-main:hover .generate-shine {
    left: 100%;
}

/* Mobile Responsive for Generate Form */
@media (max-width: 1200px) {
    .generate-key-header {
        padding: 2rem 2rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .generate-title {
        font-size: 2rem;
    }

    .generate-key-form {
        padding: 0 2rem 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .permissions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .generate-section {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }

    .btn-generate-main {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .generate-key-container {
        margin: 0 1rem;
        border-radius: 20px;
    }

    .generate-key-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .generate-icon {
        width: 60px;
        height: 60px;
    }

    .generate-icon i {
        font-size: 2rem;
    }

    .generate-title {
        font-size: 1.75rem;
    }

    .generate-subtitle {
        font-size: 1rem;
    }

    .generate-key-form {
        padding: 0 1.5rem 1.5rem;
    }

    .section-header {
        padding: 1.5rem 1.5rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .section-content {
        padding: 1.5rem;
    }

    .form-row {
        gap: 1rem;
    }

    .permissions-grid {
        gap: 1rem;
    }

    .permission-card {
        padding: 1.25rem;
    }

    .generate-section {
        padding: 1.5rem;
    }

    .preview-icon {
        width: 50px;
        height: 50px;
    }

    .preview-icon i {
        font-size: 1.5rem;
    }
}

/* ===== ENHANCED DASHBOARD STYLES ===== */
.dashboard-header {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05),
        rgba(102, 126, 234, 0.08));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.dashboard-welcome {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.welcome-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: crownShine 4s ease-in-out infinite;
}

@keyframes crownShine {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.welcome-icon i {
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 2;
}

.welcome-content {
    flex: 1;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: var(--text-light-75);
    margin: 0;
    font-weight: 500;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 100px;
}

.action-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.action-item i {
    font-size: 1.5rem;
    color: var(--text-light-75);
    transition: all 0.3s ease;
}

.action-item:hover i {
    color: white;
    transform: scale(1.1);
}

.action-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light-75);
    text-align: center;
    transition: color 0.3s ease;
}

.action-item:hover span {
    color: white;
}

/* Enhanced Statistics */
.stats-overview {
    margin-bottom: 2rem;
}

.stats-header {
    margin-bottom: 2rem;
    text-align: center;
}

.stats-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.stats-subtitle {
    font-size: 1rem;
    color: var(--text-light-75);
    margin: 0;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card-enhanced {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

.stat-card-enhanced.primary {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.15),
        rgba(102, 126, 234, 0.08));
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-card-enhanced.success {
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.15),
        rgba(16, 185, 129, 0.08));
    border-color: rgba(16, 185, 129, 0.3);
}

.stat-card-enhanced.warning {
    background: linear-gradient(135deg,
        rgba(245, 158, 11, 0.15),
        rgba(245, 158, 11, 0.08));
    border-color: rgba(245, 158, 11, 0.3);
}

.stat-card-enhanced.info {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.15),
        rgba(59, 130, 246, 0.08));
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-visual {
    flex-shrink: 0;
    position: relative;
}

.stat-icon-large {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    position: relative;
    z-index: 2;
}

.stat-card-enhanced.primary .stat-icon-large {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.stat-card-enhanced.success .stat-icon-large {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.stat-card-enhanced.warning .stat-icon-large {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.stat-card-enhanced.info .stat-icon-large {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.stat-sparkline {
    margin-top: 0.5rem;
    opacity: 0.7;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light-75);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

.stat-change i {
    font-size: 0.75rem;
}

.stat-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    opacity: 0.1;
    pointer-events: none;
}

.pattern-dot {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    position: absolute;
}

.pattern-dot:nth-child(1) { top: 20px; right: 30px; }
.pattern-dot:nth-child(2) { top: 40px; right: 50px; }
.pattern-dot:nth-child(3) { top: 60px; right: 25px; }

.pattern-circle {
    width: 6px;
    height: 6px;
    border: 1px solid white;
    border-radius: 50%;
    position: absolute;
}

.pattern-circle:nth-child(1) { top: 25px; right: 35px; }
.pattern-circle:nth-child(2) { top: 55px; right: 45px; }

.pattern-triangle {
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 5px solid white;
    position: absolute;
}

.pattern-triangle:nth-child(1) { top: 20px; right: 40px; }
.pattern-triangle:nth-child(2) { top: 50px; right: 25px; }

.pattern-wave {
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, transparent, white, transparent);
    border-radius: 2px;
    position: absolute;
    top: 30px;
    right: 20px;
}

/* Stats Summary */
.stats-summary {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.summary-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.summary-icon i {
    font-size: 1.25rem;
    color: white;
}

.summary-text {
    text-align: left;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.summary-label {
    font-size: 0.85rem;
    color: var(--text-light-75);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* Permission Items */
.permission-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.permission-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* ===== MOBILE RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 1200px) {
    .dashboard-header {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 2rem;
    }

    .dashboard-title {
        font-size: 2rem;
    }

    .dashboard-actions {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .stats-summary {
        flex-wrap: wrap;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .glass-header.d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem;
    }

    .info-box {
        margin-bottom: 1rem;
    }

    .table-responsive {
        border-radius: 8px;
        max-height: 60vh;
    }

    .dashboard-header {
        padding: 1.5rem;
    }

    .welcome-icon {
        width: 60px;
        height: 60px;
    }

    .welcome-icon i {
        font-size: 2rem;
    }

    .dashboard-title {
        font-size: 1.75rem;
    }

    .dashboard-subtitle {
        font-size: 1rem;
    }

    .dashboard-actions {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .action-item {
        min-width: 80px;
        padding: 0.75rem 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card-enhanced {
        padding: 1.5rem;
        gap: 1rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stats-summary {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .summary-item {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .dashboard-welcome {
        flex-direction: column;
        gap: 1.5rem;
    }

    .dashboard-title {
        font-size: 1.5rem;
    }

    .stats-header {
        margin-bottom: 1.5rem;
    }

    .stats-title {
        font-size: 1.5rem;
    }

    .stat-card-enhanced {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .stat-visual {
        align-self: center;
    }

    .stat-content {
        text-align: center;
    }
}

/* ===== DEVICE MANAGEMENT TABLE MOBILE STYLES ===== */
@media (max-width: 768px) {
    .table thead th:nth-child(3),
    .table tbody td:nth-child(3),
    .table thead th:nth-child(4),
    .table tbody td:nth-child(4) {
        display: none;
    }
    
    .device-name-cell {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ===== SCROLLBAR STYLES ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== BUTTON VARIANTS ===== */
.btn-outline-light {
    border-color: var(--glass-border) !important;
    color: var(--text-secondary) !important;
    background: transparent !important;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: var(--text-primary) !important;
}

/* ===== LOADING STATES ===== */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== FOCUS STATES ===== */
.btn:focus,
.form-control:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* ===== BREADCRUMB STYLES ===== */
.glass-breadcrumb {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

.glass-breadcrumb .breadcrumb-item {
    color: var(--text-light-75);
}

.glass-breadcrumb .breadcrumb-item a {
    color: var(--text-light-75);
    text-decoration: none;
    transition: color 0.3s ease;
}

.glass-breadcrumb .breadcrumb-item a:hover {
    color: var(--text-primary);
}

.glass-breadcrumb .breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

.glass-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: rgba(255, 255, 255, 0.4);
    padding: 0 0.5rem;
}

/* ===== DATA LOOKUP SERVICE ENHANCEMENTS ===== */
.lookup-icon-container {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    animation: lookupPulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.lookup-icon-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: lookupShine 4s ease-in-out infinite;
}

.lookup-icon-container i {
    font-size: 1.5rem;
    color: white;
    position: relative;
    z-index: 2;
}

@keyframes lookupPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    }
}

@keyframes lookupShine {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Enhanced Lookup Input Styles */
.lookup-input-section {
    position: relative;
}

.input-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.lookup-types {
    margin-top: 0.5rem;
}

.lookup-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light-75);
    transition: all 0.3s ease;
}

.lookup-type-badge:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.lookup-type-badge i {
    font-size: 0.7rem;
    margin-right: 0.25rem;
}

.input-container {
    position: relative;
}

.enhanced-glass-input {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    color: white !important;
    font-family: 'Consolas', 'Monaco', monospace !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.enhanced-glass-input:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), 0 8px 30px rgba(102, 126, 234, 0.15) !important;
    transform: translateY(-2px) !important;
}

.enhanced-glass-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    font-style: italic;
}

.char-counter-badge {
    position: absolute;
    bottom: 12px;
    right: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    backdrop-filter: blur(10px);
    z-index: 5;
}

.char-counter-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.char-counter-badge.danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.input-status {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 5;
}

.input-status.ready i {
    color: #10b981;
    animation: statusReady 2s ease-in-out infinite;
}

.input-status.typing i {
    color: #667eea;
    animation: statusTyping 1s ease-in-out infinite;
}

.input-status.error i {
    color: #ef4444;
    animation: statusError 0.5s ease-in-out infinite;
}

@keyframes statusReady {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes statusTyping {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

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

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Enhanced Lookup Actions */
.lookup-actions-section {
    margin-top: 2rem;
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: start;
}

.enhanced-lookup-btn {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 0 !important;
    min-height: 70px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
    position: relative !important;
    overflow: hidden !important;
}

.enhanced-lookup-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 0.6s;
}

.enhanced-lookup-btn:hover::before {
    left: 100%;
}

.enhanced-lookup-btn:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.6) !important;
}

.enhanced-lookup-btn:active {
    transform: translateY(-2px) scale(0.98) !important;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 2;
}

.btn-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.enhanced-lookup-btn:hover .btn-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(5deg);
}

.btn-icon i {
    font-size: 1.2rem;
    color: white;
}

.btn-text {
    flex: 1;
    text-align: left;
    color: white;
}

.btn-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.btn-text small {
    font-size: 0.8rem;
    opacity: 0.9;
}

.btn-spinner {
    display: none;
}

.btn-spinner .spinner-ring {
    width: 24px;
    height: 24px;
    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: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cooldown-timer {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-action-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-light-75);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    color: white;
    transform: scale(1.05);
}

.quick-action-btn i {
    font-size: 1rem;
}

.limit-warning-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.warning-header i {
    color: #fbbf24;
    font-size: 1.25rem;
}

.warning-header span {
    font-weight: 700;
    color: #fbbf24;
    font-size: 1rem;
}

.warning-text {
    color: var(--text-light-75);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* ===== ENHANCED GENERATE KEY FORM STYLES ===== */

/* Compact Form Inputs */
.admin-card .form-control.glass-input {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    height: 32px;
    border-radius: 6px;
    width: 100%;
}

.admin-card .form-select.glass-input {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    height: 32px;
    border-radius: 6px;
    width: 100%;
}

/* Enhanced Form Labels and Icons */
.admin-card .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-card .form-label i {
    font-size: 1.2rem;
    color: var(--primary-gradient);
    opacity: 0.9;
}

/* Compact Form Groups */
.admin-card .col-md-6 .form-group,
.admin-card .col-md-3 .form-group {
    margin-bottom: 1rem;
}

/* Enhanced Permission Items */
.permission-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.75rem !important;
}

.permission-item:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.15);
}

.permission-item .form-check-input {
    width: 1rem;
    height: 1rem;
    margin-right: 0.6rem;
}

.permission-item .form-check-label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 0.3rem;
}

.permission-item .form-check-label i {
    font-size: 1.3rem;
    margin-right: 0.5rem;
}

/* Enhanced Preset Buttons */
.btn-outline-primary,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-success {
    border-width: 1px;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.btn-outline-primary:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover,
.btn-outline-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Compact Generate Button */
.admin-card .btn-success.glass-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(25, 135, 84, 0.3);
}

.admin-card .btn-success.glass-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
}

/* Form Help Text */
.form-help {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    font-style: italic;
    line-height: 1.2;
}

/* Compact Card Header */
.admin-card .card-header {
    padding: 1rem 1.5rem !important;
}

.admin-card .card-header h5 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.admin-card .card-header p {
    font-size: 0.85rem;
}

/* Compact Card Body */
.admin-card .card-body {
    padding: 1.5rem !important;
}

/* ===== ENHANCED GENERATE KEY FORM STYLES ===== */
.generate-key-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px var(--glass-shadow);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.generate-key-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-bottom: 1px solid var(--glass-border);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-icon-section {
    flex-shrink: 0;
}

.generate-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.generate-icon i {
    font-size: 2rem;
    color: white;
}

.header-content-section {
    flex: 1;
}

.generate-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.generate-subtitle {
    color: var(--text-light-75);
    font-size: 1rem;
    margin: 0;
}

/* Preset Section */
.preset-section {
    padding: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.preset-header {
    text-align: center;
    margin-bottom: 2rem;
}

.preset-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.preset-subtitle {
    color: var(--text-light-75);
    font-size: 0.9rem;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.preset-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.preset-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.preset-card:hover::before {
    left: 100%;
}

.preset-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.preset-card.active {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.preset-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.preset-card[data-preset="basic"] .preset-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.preset-card[data-preset="premium"] .preset-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.preset-card[data-preset="developer"] .preset-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.preset-card[data-preset="enterprise"] .preset-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.preset-icon i {
    font-size: 1.5rem;
    color: white;
}

.preset-info {
    flex: 1;
}

.preset-info h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.preset-info p {
    font-size: 0.85rem;
    color: var(--text-light-75);
    margin: 0;
}

.preset-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preset-card[data-preset="basic"] .preset-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.preset-card[data-preset="premium"] .preset-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.preset-card[data-preset="developer"] .preset-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.preset-card[data-preset="enterprise"] .preset-badge {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

/* Form Sections */
.form-section {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.form-section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon i {
    font-size: 1.25rem;
    color: white;
}

.section-title h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.section-title p {
    color: var(--text-light-75);
    font-size: 0.9rem;
    margin: 0;
}

.section-content {
    margin-left: 3.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-help {
    font-size: 0.8rem;
    color: var(--text-light-75);
    margin-top: 0.25rem;
}

/* Permissions Grid */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.permission-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.permission-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.permission-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.permission-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.permission-icon.mobile {
    background: linear-gradient(135deg, #10b981, #059669);
}

.permission-icon.email {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.permission-icon.aadhaar {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.permission-icon i {
    font-size: 1.5rem;
    color: white;
}

.permission-info h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.permission-info p {
    font-size: 0.85rem;
    color: var(--text-light-75);
    margin: 0;
}

.permission-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-light-75);
}

/* Generate Section */
.generate-section {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-top: 1px solid var(--glass-border);
}

.generate-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.preview-icon i {
    font-size: 1.5rem;
    color: white;
}

.preview-info h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.preview-info p {
    font-size: 0.9rem;
    color: var(--text-light-75);
    margin: 0;
}

.btn-generate-main {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-generate-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.btn-generate-main:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.generate-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.generate-content i {
    font-size: 1.25rem;
}

.generate-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-generate-main:hover .generate-shine {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .generate-key-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .permissions-grid {
        grid-template-columns: 1fr;
    }

    .preset-grid {
        grid-template-columns: 1fr;
    }

    .section-content {
        margin-left: 0;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* ===== ENHANCED SETTINGS PAGE STYLES ===== */

/* Settings Page Header */
.settings-icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
}

.settings-icon-container i {
    font-size: 2.5rem;
    color: white;
}

.settings-stats-bar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stat-mini-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.stat-mini-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.stat-icon-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-small i {
    font-size: 1.2rem;
    color: white;
}

.stat-content-small {
    flex: 1;
    min-width: 0;
}

.stat-value-small {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.125rem;
}

.stat-label-small {
    font-size: 0.75rem;
    color: var(--text-light-75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Enhanced Account Information Cards */
.account-info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.account-info-icon i {
    font-size: 1.5rem;
    color: white;
}

.account-info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.account-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.account-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.account-info-card:hover::before {
    opacity: 1;
}

.primary-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(102, 126, 234, 0.05));
    border-color: rgba(102, 126, 234, 0.2);
}

.warning-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
    border-color: rgba(251, 191, 36, 0.2);
}

.info-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border-color: rgba(59, 130, 246, 0.2);
}

.card-icon-section {
    flex-shrink: 0;
}

.card-icon-bg {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.primary-card .card-icon-bg {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.warning-card .card-icon-bg {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.info-card .card-icon-bg {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.card-icon-bg i {
    font-size: 1.75rem;
    color: white;
}

.card-content-section {
    flex: 1;
    min-width: 0;
}

.card-label {
    font-size: 0.85rem;
    color: var(--text-light-75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.card-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.cooldown-alert {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: #fbbf24;
    font-weight: 600;
    text-align: center;
}

.cooldown-alert-placeholder {
    min-height: 2.5rem;
    margin-top: 1rem;
}

/* Account Statistics Row */
.account-stats-row {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.mini-stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.mini-stat-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mini-stat-icon i {
    font-size: 1rem;
    color: white;
}

.mini-stat-content {
    flex: 1;
    min-width: 0;
}

.mini-stat-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.125rem;
}

.mini-stat-label {
    font-size: 0.7rem;
    color: var(--text-light-75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Account Notice */
.account-notice {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notice-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notice-icon i {
    font-size: 1.25rem;
    color: white;
}

.notice-content {
    flex: 1;
}

.notice-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.notice-text {
    font-size: 0.9rem;
    color: var(--text-light-75);
    line-height: 1.5;
}

.notice-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.notice-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Enhanced Device Management */
.device-management-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.device-management-icon i {
    font-size: 1.5rem;
    color: white;
}

.device-status-indicator {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.status-badge.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge i {
    font-size: 0.9rem;
}

/* Enhanced Security Center */
.security-center-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.security-center-icon i {
    font-size: 1.5rem;
    color: white;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.security-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.security-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.security-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.security-card:hover::before {
    opacity: 1;
}

.success-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-color: rgba(16, 185, 129, 0.2);
}

.danger-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border-color: rgba(239, 68, 68, 0.2);
}

.info-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border-color: rgba(59, 130, 246, 0.2);
}

.warning-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
    border-color: rgba(251, 191, 36, 0.2);
}

.security-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.success-card .security-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.danger-card .security-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.info-card .security-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.warning-card .security-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.security-icon i {
    font-size: 1.5rem;
    color: white;
}

.security-content {
    flex: 1;
    min-width: 0;
}

.security-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.security-description {
    font-size: 0.9rem;
    color: var(--text-light-75);
    line-height: 1.5;
    margin: 0;
}

/* Security Status */
.security-status {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.status-header i {
    color: #10b981;
}

.status-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.status-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.status-note {
    font-size: 0.9rem;
    color: var(--text-light-75);
    margin: 0;
    line-height: 1.5;
}

/* ===== ENHANCED ADMIN NAVBAR STYLES ===== */

/* Notification Badges */
.nav-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

/* Quick Actions Section */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    margin-right: 1rem;
}

.action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.action-btn:active {
    transform: translateY(0) scale(0.98);
}

.action-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.theme-btn:hover i {
    transform: rotate(180deg);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    position: relative;
}

.status-indicator.online {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    animation: statusPulse 2s ease-in-out infinite;
}

.status-indicator.offline {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

@keyframes statusPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    }
    50% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    }
}

/* Search Modal/Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    animation: fadeIn 0.3s ease;
}

.search-modal {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-header i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
}

.search-modal-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-modal-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.search-modal-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.search-results {
    padding: 2rem;
    min-height: 200px;
}

.search-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.search-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.search-placeholder p {
    margin: 0;
    font-size: 1.1rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.nav-link-item:hover .nav-link-icon {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Mobile Enhancements */
@media (max-width: 1024px) {
    .navbar-actions {
        gap: 0.5rem;
        margin-right: 0.5rem;
    }

    .action-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .navbar-links {
        display: none;
    }

    .navbar-actions {
        margin-right: 0.5rem;
    }

    .search-overlay {
        padding-top: 5vh;
    }

    .search-modal {
        width: 95%;
    }
}

/* ===== MODERN ADMIN DASHBOARD STYLES ===== */

/* Modern Dashboard Header */
.dashboard-header-modern {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.dashboard-header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.header-content-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header-greeting {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.greeting-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    animation: float 3s ease-in-out infinite;
}

.greeting-icon i {
    font-size: 2rem;
    color: white;
}

.greeting-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.greeting-text p {
    color: var(--text-light-75);
    font-size: 1.1rem;
    margin: 0;
}

.header-actions-modern {
    display: flex;
    gap: 1rem;
}

.btn-modern {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary-modern {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary-modern {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary-modern:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Modern Statistics Section */
.stats-section-modern {
    margin-bottom: 3rem;
}

.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.stat-card-modern {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-card-modern.primary-modern {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(102, 126, 234, 0.05));
    border-color: rgba(102, 126, 234, 0.2);
}

.stat-card-modern.success-modern {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-color: rgba(16, 185, 129, 0.2);
}

.stat-card-modern.warning-modern {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border-color: rgba(245, 158, 11, 0.2);
}

.stat-card-modern.info-modern {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border-color: rgba(59, 130, 246, 0.2);
}

.stat-card-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon-modern {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card-modern.primary-modern .stat-icon-modern {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.stat-card-modern.success-modern .stat-icon-modern {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.stat-card-modern.warning-modern .stat-icon-modern {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.stat-card-modern.info-modern .stat-icon-modern {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.stat-content-modern {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label-modern {
    font-size: 0.9rem;
    color: var(--text-light-75);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.stat-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    opacity: 0.1;
}

.decoration-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: currentColor;
}

.decoration-triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 80px solid currentColor;
}

.decoration-square {
    width: 100%;
    height: 100%;
    background: currentColor;
    transform: rotate(45deg);
}

.decoration-wave {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, currentColor 0%, transparent 70%);
}

/* Modern Key Generator Section */
.key-generator-section {
    margin-bottom: 3rem;
}

.generator-card-modern {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.generator-header-modern {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.generator-icon-modern {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.generator-icon-modern i {
    font-size: 2rem;
    color: white;
}

.generator-title-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.generator-title-modern p {
    color: var(--text-light-75);
    font-size: 1rem;
    margin: 0;
}

.generator-form-modern {
    padding: 2rem;
}

.form-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-field-modern {
    display: flex;
    flex-direction: column;
}

.field-label-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.field-label-modern i {
    color: var(--text-light-75);
}

.field-input-modern {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.field-input-modern:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.field-input-modern::placeholder {
    color: var(--text-muted);
}

.cooldown-group {
    display: flex;
    gap: 0.5rem;
}

.field-select-modern {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.field-select-modern:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.12);
}

.permissions-section-modern {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.permissions-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.permissions-title i {
    color: var(--text-light-75);
}

.permissions-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.permission-item-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.permission-item-modern:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.2);
}

.permission-item-modern input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.permission-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.permission-content i {
    width: 20px;
    text-align: center;
    color: var(--text-light-75);
}

.permission-content span {
    font-weight: 500;
    color: white;
}

.generator-actions-modern {
    display: flex;
    justify-content: center;
}

.btn-generate-modern {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-generate-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.btn-generate-modern i {
    font-size: 1.2rem;
}

/* Profile Cards Section */
.api-keys-header {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.header-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon i {
    font-size: 1.5rem;
    color: white;
}

.header-text h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.header-text p {
    color: var(--text-light-75);
    font-size: 0.95rem;
    margin: 0;
}

.header-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light-75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Cards */
.profile-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.profile-header {
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.profile-avatar i {
    font-size: 1.5rem;
    color: white;
}

.profile-info {
    flex: 1;
    margin-left: 1rem;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.profile-id {
    font-size: 1rem;
    color: var(--text-light-75);
    font-weight: 500;
}

.profile-status {
    margin-left: auto;
}

.profile-body {
    padding: 2.5rem;
}

.profile-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-row:last-child {
    margin-bottom: 0;
}

.profile-section {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-section.compact {
    flex: 1;
    padding: 0.5rem;
}

.section-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon i {
    font-size: 1rem;
    color: var(--text-light-75);
}

.section-content {
    flex: 1;
    min-width: 0;
}

.api-key-display {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    color: var(--text-light-75);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    word-break: break-all;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light-75);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.usage-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.usage-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.usage-percent {
    font-size: 0.75rem;
    color: var(--text-light-75);
}

.permission-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.badge-sm {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

.device-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.expiry-info {
    font-size: 0.85rem;
    color: white;
    font-weight: 500;
}

.profile-actions {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.action-btn {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light-75);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    min-height: 44px;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-btn i {
    font-size: 1rem;
}

.action-btn span {
    display: none;
}

@media (min-width: 768px) {
    .action-btn span {
        display: inline;
    }
}

/* Notification Styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.notification {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease;
}

.notification.success {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
}

.notification.error {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification.success .notification-icon {
    background: rgba(16, 185, 129, 0.2);
}

.notification.error .notification-icon {
    background: rgba(239, 68, 68, 0.2);
}

.notification-icon i {
    font-size: 0.9rem;
    color: white;
}

.notification-content {
    flex: 1;
}

.notification-content p {
    margin: 0;
    font-size: 0.9rem;
    color: white;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-light-75);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes shimmer {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-header-modern {
        padding: 1.5rem;
    }

    .header-content-modern {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .header-greeting {
        flex-direction: column;
        gap: 1rem;
    }

    .greeting-text h1 {
        font-size: 1.8rem;
    }

    .stats-grid-modern {
        grid-template-columns: 1fr;
    }

    .form-grid-modern {
        grid-template-columns: 1fr;
    }

    .permissions-grid-modern {
        grid-template-columns: 1fr;
    }

    .profile-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.empty-icon i {
    font-size: 2.5rem;
    color: white;
}

.empty-state h5 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-light-75);
    font-size: 1rem;
    margin: 0;
}

/* ===== ENHANCED ADMIN NAVBAR STYLES ===== */
.admin-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Advanced Admin Navbar Enhancements */
.navbar-brand {
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.navbar-logo {
    transition: all 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: rotate(5deg) scale(1.05);
}

/* Navigation Links Enhancement */
.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    margin: 0 2px;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.15));
    color: #667eea !important;
    font-weight: 700;
    box-shadow:
        0 8px 32px rgba(102, 126, 234, 0.4),
        0 0 20px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 16px;
    transform: translateY(-3px) scale(1.05);
    position: relative;
    overflow: hidden;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 14px;
    z-index: -1;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 18px;
    z-index: -2;
    opacity: 0.3;
    filter: blur(8px);
    animation: activeGlow 2s ease-in-out infinite alternate;
}

@keyframes activeGlow {
    0% {
        opacity: 0.2;
        filter: blur(6px);
    }
    100% {
        opacity: 0.4;
        filter: blur(10px);
    }
}

.nav-indicator {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link.active .nav-indicator {
    width: 80%;
}

/* Status Indicator */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    position: relative;
}

.status-indicator.online {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: statusPulse 2s ease-in-out infinite;
}

.status-indicator.offline {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

@keyframes statusPulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    }
    50% {
        box-shadow: 0 0 16px rgba(16, 185, 129, 0.8);
    }
}

/* Admin Avatar Mini */
.admin-avatar-mini {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.admin-avatar-mini i {
    font-size: 1.2rem;
    color: white;
}

/* Dropdown Menu Enhancements */
.dropdown-menu {
    background: rgba(20, 24, 59, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    margin-top: 8px !important;
    border-radius: 16px !important;
    padding: 8px 0 !important;
}

.dropdown-item {
    padding: 12px 20px !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    margin: 2px 8px !important;
    font-weight: 500 !important;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.15) !important;
    color: #667eea !important;
    transform: translateX(4px) !important;
}

.dropdown-header {
    padding: 12px 20px 8px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #667eea !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 8px !important;
}

.dropdown-divider {
    margin: 8px 0 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Mobile Enhancements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        margin-top: 1rem;
        padding: 1.5rem;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    .navbar-nav {
        margin: 0 !important;
    }

    .nav-link {
        padding: 1rem 1.25rem !important;
        margin: 0.25rem 0 !important;
        border-radius: 12px !important;
        font-size: 1.2rem !important;
    }

    .dropdown-menu {
        background: rgba(20, 24, 59, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        margin-top: 0.5rem !important;
    }
}

/* Enhanced Action Buttons */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.action-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.action-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.action-btn:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

.action-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.1);
}

/* Notification Badge */
.nav-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse 2s ease-in-out infinite;
    border: 2px solid rgba(10, 14, 39, 0.9);
}

/* ===== ADMIN PROFILE SECTION STYLES ===== */
.navbar-profile-section {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.admin-profile-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.admin-profile-info:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.admin-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.admin-avatar i {
    font-size: 1.2rem;
    color: white;
}

.admin-profile-info:hover .admin-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.admin-user-details {
    display: flex;
    flex-direction: column;
    min-width: 120px;
    text-align: right;
}

.admin-username {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.admin-role {
    font-size: 0.8rem;
    color: var(--text-light-75);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #ef4444;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.admin-logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.admin-logout-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.admin-logout-btn:hover i {
    transform: translateX(2px);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    height: 272px;
    gap: 2rem;
}

.navbar-logo-section {
    flex: 0 0 auto;
    margin-right: auto;
}

.navbar-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.navbar-profile-section {
    position: relative;
}

/* Logo Section */
.navbar-logo-section {
    display: flex;
    align-items: center;
}

.navbar-logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
}

.navbar-logo-link:hover {
    transform: translateY(-1px);
}

.navbar-logo {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.navbar-logo-link:hover .navbar-logo {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.navbar-logo i {
    font-size: 3rem;
    color: white;
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-main {
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light-75);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation Links */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--text-light-75);
    min-width: 140px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-link-item:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.nav-link-item.active {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.nav-link-item.active .nav-link-indicator {
    opacity: 1;
    transform: scaleX(1);
}

.nav-link-icon {
    font-size: 2rem;
    transition: all 0.3s ease;
}

.nav-link-item:hover .nav-link-icon,
.nav-link-item.active .nav-link-icon {
    transform: scale(1.15);
}

.nav-link-text {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    transition: all 0.3s ease;
}

.nav-link-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Profile Section */
.navbar-profile-section {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.admin-profile-dropdown {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.admin-avatar {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 13.5px;
    overflow: hidden;
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.profile-trigger:hover .admin-avatar {
    border-color: rgba(102, 126, 234, 0.6);
    transform: scale(1.05);
}

.admin-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.profile-trigger:hover .admin-avatar-img {
    transform: scale(1.1);
}

.avatar-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(10, 14, 39, 0.9);
}

.avatar-status.online {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 120px;
    text-align: right;
}

.admin-name {
    font-size: 1.24rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.admin-role {
    font-size: 1.01rem;
    color: var(--text-light-75);
    text-transform: uppercase;
    letter-spacing: 0.75px;
    font-weight: 600;
}

.dropdown-arrow {
    color: var(--text-light-75);
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.profile-trigger:hover .dropdown-arrow {
    color: white;
    transform: rotate(180deg);
}

/* Profile Dropdown Menu */
.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 320px;
    background: rgba(20, 24, 59, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s ease;
    z-index: 1100;
    overflow: hidden;
    max-height: 400px;
}

.admin-profile-dropdown.active .profile-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.1),
        rgba(118, 75, 162, 0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-avatar {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-user-info {
    flex: 1;
}

.dropdown-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.dropdown-email {
    font-size: 0.8rem;
    color: var(--text-light-75);
    font-weight: 500;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-light-75);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding-left: 2rem;
}

.dropdown-item i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.dropdown-item span {
    font-weight: 500;
}

.notification-badge {
    margin-left: auto;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.logout-item {
    color: #ef4444 !important;
    border-top: 1px solid rgba(239, 68, 68, 0.2);
}

.logout-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444 !important;
}

/* Mobile Menu Toggle */
.navbar-mobile-toggle {
    display: none;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 272px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-user-info {
    flex: 1;
}

.mobile-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.mobile-role {
    font-size: 0.8rem;
    color: var(--text-light-75);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-menu-links {
    padding: 1rem 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-light-75);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: #667eea;
    padding-left: 2rem;
}

.mobile-nav-link i {
    font-size: 1.25rem;
    width: 20px;
    text-align: center;
}

.mobile-nav-link span {
    font-weight: 600;
}

.mobile-menu-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #ef4444;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

/* Navbar Scroll Effect */
.admin-navbar.scrolled {
    background: rgba(10, 14, 39, 0.98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ===== MOBILE RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 1200px) {
    .navbar-container {
        padding: 0 1.5rem;
    }

    .navbar-links {
        gap: 0.25rem;
    }

    .nav-link-item {
        padding: 0.5rem 0.75rem;
        min-width: 70px;
    }

    /* Admin profile responsive adjustments */
    .admin-profile-info {
        gap: 0.5rem;
        padding: 0.4rem 0.8rem;
    }

    .admin-user-details {
        min-width: 100px;
    }

    .admin-username {
        font-size: 0.9rem;
    }

    .admin-role {
        font-size: 0.75rem;
    }
}

@media (max-width: 992px) {
    .navbar-links {
        display: none;
    }

    .navbar-mobile-toggle {
        display: block;
    }

    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-logo-section {
        flex: 1;
    }

    .brand-main {
        font-size: 1.3rem;
    }

    .brand-sub {
        font-size: 0.7rem;
    }

    /* Admin profile on medium screens */
    .admin-profile-info {
        gap: 0.5rem;
        padding: 0.4rem 0.6rem;
    }

    .admin-avatar {
        width: 35px;
        height: 35px;
    }

    .admin-avatar i {
        font-size: 1rem;
    }

    .admin-user-details {
        min-width: 90px;
    }

    .admin-username {
        font-size: 0.85rem;
    }

    .admin-role {
        font-size: 0.7rem;
    }

    .admin-logout-btn {
        width: 32px;
        height: 32px;
    }

    .admin-logout-btn i {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        height: 192px;
        padding: 0 0.75rem;
    }

    .admin-navbar {
        position: relative;
    }

    .mobile-menu-overlay {
        top: 192px;
    }

    .mobile-menu-content {
        width: 280px;
    }

    .navbar-logo {
        width: 40px;
        height: 40px;
    }

    .navbar-logo i {
        font-size: 1.25rem;
    }

    .brand-main {
        font-size: 1.2rem;
    }

    .profile-info {
        display: none;
    }

    .profile-trigger {
        padding: 0.5rem;
    }

    .admin-avatar {
        width: 35px;
        height: 35px;
    }

    /* Admin profile mobile adjustments */
    .admin-profile-info {
        gap: 0.4rem;
        padding: 0.3rem 0.5rem;
    }

    .admin-avatar {
        width: 30px;
        height: 30px;
    }

    .admin-avatar i {
        font-size: 0.9rem;
    }

    .admin-user-details {
        display: none; /* Hide username/role on very small screens */
    }

    .admin-logout-btn {
        width: 30px;
        height: 30px;
    }

    .admin-logout-btn i {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .navbar-container {
        padding: 0 0.5rem;
    }

    .admin-profile-info {
        padding: 0.25rem 0.4rem;
    }

    .admin-logout-btn {
        width: 28px;
        height: 28px;
    }
}

/* ===== TICKET MANAGEMENT STYLES ===== */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ticket-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px var(--glass-shadow);
    transition: all var(--transition-normal);
    overflow: hidden;
    position: relative;
}

.ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px var(--glass-shadow);
}

.ticket-card.ticket-unread {
    border-left: 4px solid #fbbf24;
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.2);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--glass-border);
}

.ticket-id .ticket-code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ticket-status .status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-open {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-progress {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-closed {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.ticket-body {
    padding: 1.5rem;
}

.ticket-user {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.user-info .user-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.user-info .user-email {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ticket-content .ticket-subject {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.ticket-content .ticket-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.ticket-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--text-secondary);
}

.priority-urgent { color: #ef4444 !important; }
.priority-high { color: #fbbf24 !important; }
.priority-normal { color: #3b82f6 !important; }
.priority-low { color: #6b7280 !important; }

.ticket-actions {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border: 1px solid;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    background: transparent;
}

.action-btn.btn-primary {
    border-color: #667eea;
    color: #667eea;
}

.action-btn.btn-primary:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

.action-btn.btn-success {
    border-color: #22c55e;
    color: #22c55e;
}

.action-btn.btn-success:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.action-btn.btn-warning {
    border-color: #fbbf24;
    color: #fbbf24;
}

.action-btn.btn-warning:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: #fbbf24;
}

.action-btn.btn-danger {
    border-color: #ef4444;
    color: #ef4444;
}

.action-btn.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ===== COMPACT ADMIN DASHBOARD STYLES ===== */
/* Reduce padding and sizes for better data visibility */
.admin-compact .page-header-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-compact .header-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

.admin-compact .header-icon i {
    font-size: 1.5rem;
}

.admin-compact .header-title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.admin-compact .header-subtitle {
    font-size: 0.9rem;
}

/* Compact stat cards */
.admin-compact .stat-card-modern {
    min-height: 120px;
    padding: 1.25rem;
}

.admin-compact .stat-icon-modern {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.admin-compact .stat-value-modern {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.admin-compact .stat-label-modern {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.admin-compact .stat-description {
    font-size: 0.75rem;
}

/* Compact user cards */
.admin-compact .create-user-card,
.admin-compact .user-management-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-compact .create-user-icon,
.admin-compact .user-management-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.admin-compact .create-user-icon i,
.admin-compact .user-management-icon i {
    font-size: 1.1rem;
}

.admin-compact .create-user-title,
.admin-compact .user-management-title {
    font-size: 1.25rem;
}

/* Better data table display */
.data-table-compact {
    width: 100%;
    font-size: 0.875rem;
    line-height: 1.4;
}

.data-table-compact th {
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.data-table-compact td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.data-table-compact tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Compact badges and labels */
.badge-compact {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Better data formatting */
.data-value {
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.data-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-row:last-child {
    border-bottom: none;
}

/* Cleaner result display */
.result-text {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    max-height: 500px;
    overflow-y: auto;
}

.result-text::-webkit-scrollbar {
    width: 8px;
}

.result-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.result-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.result-text::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Syntax highlighting for results */
.result-text .data-field {
    color: #a5d6ff;
    font-weight: 600;
}

.result-text .data-separator {
    color: rgba(255, 255, 255, 0.5);
}

/* Remove laggy hover effects */
.no-hover-effect {
    transition: none !important;
    transform: none !important;
}

/* Disable heavy animations on admin cards */
.admin-compact .stat-card-modern:hover {
    transform: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.admin-compact .stat-card-modern::before {
    animation: none;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .btn,
    .admin-background::before,
    .main-background::before {
        display: none !important;
    }

    .glass-card {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}
