/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Unique Modern Color Palette - Teal & Coral Theme */
    --primary-color: #14b8a6;
    --primary-dark: #0f766e;
    --primary-light: #5eead4;
    --secondary-color: #f97316;
    --secondary-dark: #ea580c;
    --accent-color: #8b5cf6;
    --accent-dark: #7c3aed;
    --danger-color: #f43f5e;
    --danger-dark: #e11d48;
    --warning-color: #fbbf24;
    --warning-dark: #f59e0b;
    --info-color: #06b6d4;
    --info-dark: #0891b2;
    --success-color: #22c55e;
    --success-dark: #16a34a;
    
    /* Dark Theme Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Unique Background Gradients */
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
    --secondary-gradient: linear-gradient(135deg, var(--secondary-color) 0%, #fb923c 100%);
    --success-gradient: linear-gradient(135deg, var(--success-color) 0%, #4ade80 100%);
    --danger-gradient: linear-gradient(135deg, var(--danger-color) 0%, #fb7185 100%);
    --warning-gradient: linear-gradient(135deg, var(--warning-color) 0%, #fcd34d 100%);
    --accent-gradient: linear-gradient(135deg, var(--accent-color) 0%, #a78bfa 100%);
    
    /* Modern Shadows with Color Tints */
    --shadow-sm: 0 1px 2px 0 rgba(20, 184, 166, 0.05);
    --shadow: 0 1px 3px 0 rgba(20, 184, 166, 0.1), 0 1px 2px 0 rgba(20, 184, 166, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(20, 184, 166, 0.1), 0 2px 4px -1px rgba(20, 184, 166, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(20, 184, 166, 0.1), 0 4px 6px -2px rgba(20, 184, 166, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(20, 184, 166, 0.1), 0 10px 10px -5px rgba(20, 184, 166, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
    --radius-xl: 2rem;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-100);
    background: var(--bg-gradient);
    min-height: 100vh;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.main-header {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 50%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(20, 184, 166, 0.1) 0%, transparent 50%, rgba(249, 115, 22, 0.1) 100%);
    pointer-events: none;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.main-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-header h1 a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-header h1 a:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Navigation styles */
.navbar {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

.nav-container {
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand a {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-brand a:hover {
    transform: scale(1.05);
    color: var(--primary-light);
}

.nav-brand .logo {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(20, 184, 166, 0.3));
}

.nav-brand a:hover .logo {
    filter: drop-shadow(0 4px 8px rgba(20, 184, 166, 0.5));
    transform: scale(1.05);
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    color: var(--gray-300);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.nav-link.admin-link {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
}

.nav-link.admin-link:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.nav-link:hover::before {
    left: 0;
}

.nav-divider {
    width: 1px;
    height: 35px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
    margin: 0 15px;
}

.nav-admin-label {
    color: var(--danger-color);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(244, 63, 94, 0.05));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(244, 63, 94, 0.3);
    backdrop-filter: blur(10px);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-welcome {
    color: var(--gray-300);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-welcome strong {
    color: white;
    font-weight: 600;
}

.super-admin-badge {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.user-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--gray-300);
    padding: 6px 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.dropdown-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 8px;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--gray-300);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin: 2px 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-item:hover {
    color: white;
    background: var(--primary-color);
    transform: translateX(4px);
}

.dropdown-item.logout {
    color: var(--danger-color);
}

.dropdown-item.logout:hover {
    background: var(--danger-color);
    color: white;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
    border-radius: 1px;
}

/* Main content */
.main-content {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--gray-400);
    text-align: center;
    padding: 2.5rem 0;
    margin-top: auto;
    border-top: 1px solid rgba(20, 184, 166, 0.2);
}

.main-footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Flash messages */
.flash-message {
    padding: 18px 24px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid;
    backdrop-filter: blur(10px);
}

.flash-message.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    color: #4ade80;
    border-left-color: var(--success-color);
}

.flash-message.error {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(244, 63, 94, 0.05));
    color: #fb7185;
    border-left-color: var(--danger-color);
}

.flash-message.warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
    color: #fcd34d;
    border-left-color: var(--warning-color);
}

.flash-message.info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05));
    color: #67e8f9;
    border-left-color: var(--info-color);
}

/* Form styles */
.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--gray-200);
    font-size: 0.95rem;
    letter-spacing: 0.025em;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-600);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(30, 41, 59, 0.8);
    color: var(--gray-100);
    backdrop-filter: blur(10px);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.95);
}

.form-control:hover {
    border-color: var(--gray-500);
}

.form-control::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2314b8a6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 45px;
}

select.form-control:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%235eead4' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

input[type="date"].form-control {
    position: relative;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

input[type="email"].form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2314b8a6'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M16 12a4 4 0 10-8 0 4 4 0 008 0zm0 0v1.5a2.5 2.5 0 005 0V12a9 9 0 10-9 9m4.5-1.206a8.959 8.959 0 01-4.5 1.207'/%3e%3c/svg%3e");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 22px;
    padding-right: 50px;
}

.form-text {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-top: 8px;
    line-height: 1.4;
}

.form-control.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.2);
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* Unique Modern Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.025em;
    box-shadow: var(--shadow-md);
    min-height: 48px;
    border: 1px solid transparent;
}

.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 ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: rgba(20, 184, 166, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    border-color: rgba(20, 184, 166, 0.5);
}

.btn-success {
    background: var(--success-color);
    color: white;
    border-color: rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
    background: var(--success-dark);
    color: white;
    border-color: rgba(34, 197, 94, 0.5);
}

.btn-warning {
    background: var(--warning-color);
    color: var(--gray-900);
    border-color: rgba(251, 191, 36, 0.3);
}

.btn-warning:hover {
    background: var(--warning-dark);
    color: var(--gray-900);
    border-color: rgba(251, 191, 36, 0.5);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    border-color: rgba(244, 63, 94, 0.3);
}

.btn-danger:hover {
    background: var(--danger-dark);
    color: white;
    border-color: rgba(244, 63, 94, 0.5);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    border-color: rgba(249, 115, 22, 0.3);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    color: white;
    border-color: rgba(249, 115, 22, 0.5);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline-secondary {
    background: transparent;
    color: var(--gray-300);
    border: 2px solid var(--gray-500);
    backdrop-filter: blur(10px);
}

.btn-outline-secondary:hover {
    background: var(--gray-600);
    color: white;
    border-color: var(--gray-600);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
    min-height: 40px;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
    min-height: 56px;
}

.btn i {
    font-size: 1.1em;
}

.btn-small i {
    font-size: 1em;
}

/* Table styles */
.table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(30, 41, 59, 0.8);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.table th,
.table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}

.table th {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-700) 100%);
    font-weight: 600;
    color: var(--primary-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.table tr:hover {
    background: rgba(20, 184, 166, 0.05);
}

.table tr:last-child td {
    border-bottom: none;
}

.actions {
    display: flex;
    gap: 10px;
}

.actions .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    min-height: 36px;
}

/* Status indicators */
.status-good {
    color: var(--success-color);
    font-weight: 600;
}

.status-warning {
    color: var(--warning-color);
    font-weight: 600;
}

.status-danger {
    color: var(--danger-color);
    font-weight: 600;
}

/* Card styles */
.card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(20, 184, 166, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(20, 184, 166, 0.4);
}

.card h2, .card h3 {
    color: var(--gray-100);
    margin-bottom: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.card h2 {
    font-size: 1.6rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card h3 {
    font-size: 1.3rem;
    color: var(--primary-light);
}

.card p {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Auth container */
.auth-container {
    max-width: 480px;
    margin: 3rem auto;
    background: rgba(30, 41, 59, 0.9);
    padding: 3.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(20, 184, 166, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-gradient);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    color: var(--gray-100);
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-links {
    text-align: center;
    margin-top: 2.5rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-links a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.demo-info {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.demo-info h3 {
    color: var(--primary-light);
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.demo-info p {
    color: var(--gray-300);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.demo-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Enhanced User Analytics Styling */
.enhanced-table {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.1);
}

.enhanced-table .card-header {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: -2rem -2rem 2rem -2rem;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.enhanced-table .card-header h3 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.enhanced-table .card-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.table.enhanced {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.table.enhanced thead {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.table.enhanced thead th {
    background: transparent;
    color: #475569;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1.2rem 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.table.enhanced tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.table.enhanced tbody tr:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.08));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.table.enhanced tbody tr:hover .user-details strong {
    color: #000000;
}

.table.enhanced tbody tr:hover .user-details small {
    color: #1a1a1a;
}

.table.enhanced tbody td {
    padding: 1.2rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

/* User Info Styling */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
    border: 3px solid white;
}

.user-details strong {
    color: #000000;
    font-weight: 700;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.2rem;
    text-shadow: none;
}

.user-details small {
    color: #1a1a1a;
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: none;
}

/* Role Badge Styling */
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.role-badge.role-user {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.role-badge.role-admin {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.role-badge.role-super_admin {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3); }
    50% { box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5); }
}

/* Count Badge Styling */
.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.count-badge.neutral {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #475569;
}

.count-badge.danger {
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    color: #dc2626;
    animation: danger-pulse 2s infinite;
}

.count-badge.warning {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    color: #ea580c;
}

@keyframes danger-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.count-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Enhanced Button for User Analytics */
.table.enhanced .btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.table.enhanced .btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.4);
}

/* Table Responsive Enhancement */
.table-responsive {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Enhanced Table Styling */
.type-badge {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.type-badge.type-domain {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
}

.type-badge.type-hosting {
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
}

.type-badge.type-general {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
}

.status-badge {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-badge.status-good {
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
}

.status-badge.status-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.status-badge.status-critical,
.status-badge.status-expired {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    animation: pulse-glow 2s infinite;
}

.status-good {
    color: #10b981;
    font-weight: 600;
}

.status-warning {
    color: #f59e0b;
    font-weight: 600;
}

.status-critical,
.status-expired {
    color: #ef4444;
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }

    .nav-center {
        order: 3;
        flex: 1 1 100%;
        justify-content: center;
    }

    .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        padding: 6px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .nav-user {
        gap: 8px;
    }

    .user-welcome {
        font-size: 0.8rem;
        display: none;
    }

    .dropdown-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .container {
        padding: 0 15px;
    }

    .card {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }

    .table {
        font-size: 0.9rem;
    }

    .table th,
    .table td {
        padding: 14px 10px;
    }

    .actions {
        flex-direction: column;
    }

    .actions .btn {
        width: 100%;
        justify-content: center;
    }

    .auth-container {
        margin: 2rem auto;
        padding: 2.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* User Analytics Mobile Responsive */
    .enhanced-table .card-header {
        padding: 1rem 1.5rem;
        margin: -2rem -2rem 1.5rem -2rem;
    }

    .enhanced-table .card-header h3 {
        font-size: 1.2rem;
    }

    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .user-details strong {
        font-size: 0.9rem;
    }

    .user-details small {
        font-size: 0.8rem;
    }

    .role-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }

    .count-badge {
        min-width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .table.enhanced .btn-primary {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Enhanced Table Mobile Responsive */
    .type-badge,
    .status-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .nav-brand a {
        font-size: 1.3em;
    }

    .nav-brand .logo {
        height: 35px;
    }

    .nav-link {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .table {
        font-size: 0.85rem;
    }

    .table th,
    .table td {
        padding: 10px 8px;
    }

    .card h2, .card h3 {
        font-size: 1.3rem;
    }

    .form-control {
        padding: 12px 16px;
    }
} 