@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --bg-primary: #080B12;
    --bg-secondary: #0D121F;
    --bg-card: rgba(13, 18, 31, 0.85);
    --border-color: #1A243D;
    
    --neon-cyan: #00F0FF;
    --neon-purple: #8B5CF6;
    --neon-green: #10B981;
    --neon-amber: #F59E0B;
    --neon-red: #EF4444;

    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar { width: 270px;
    background: #090D17;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    gap: 20px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
}

.sidebar-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00F0FF 0%, #8B5CF6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.nav-item {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.25s ease;
    position: relative;
}

.nav-item:hover {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.08);
}

.nav-item.active {
    color: #000;
    background: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.sidebar-spacer {
    flex: 1;
}

/* Main Content Area */
.main-content { margin-left: 270px;
    flex: 1;
    padding: 24px 36px 60px 36px;
    max-width: calc(100vw - 80px);
}

/* Top Bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.app-selector-box {
    background: rgba(13, 18, 31, 0.9);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.app-selector-box .badge {
    background: #00F0FF;
    color: #000;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.active-users-pill {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--neon-green);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #A7F3D0;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.admin-profile-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(13, 18, 31, 0.9);
    border: 1px solid var(--border-color);
    padding: 6px 14px 6px 8px;
    border-radius: 28px;
}

.admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #FFF;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.admin-info {
    font-size: 13.5px;
    font-weight: 600;
    color: #E2E8F0;
}

/* Page Header */
.page-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #FFFFFF;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 13.5px;
    margin-top: 4px;
    margin-bottom: 26px;
}

/* Metric Cards Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.metric-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-purple {
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(13, 18, 31, 0.95) 100%);
}

.card-green {
    border: 1px solid var(--neon-green);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(13, 18, 31, 0.95) 100%);
}

.card-cyan {
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.12) 0%, rgba(13, 18, 31, 0.95) 100%);
}

.card-amber {
    border: 1px solid var(--neon-amber);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.2);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(13, 18, 31, 0.95) 100%);
}

.card-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.card-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.card-subtext {
    font-size: 12px;
    color: var(--text-muted);
}

.card-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Glass Section Container */
.cyber-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
    backdrop-filter: blur(12px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-badge {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* Cyber Table */
.cyber-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.cyber-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.cyber-table th {
    background: #0B0F1C;
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.cyber-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(26, 36, 61, 0.5);
    color: var(--text-primary);
}

.cyber-table tr:hover td {
    background: rgba(0, 240, 255, 0.03);
}

/* Badges */
.badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
    border: 1px solid #F59E0B;
}

.badge-approved {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid #10B981;
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid #EF4444;
}

/* Action Buttons */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-approve {
    background: var(--neon-green);
    color: #000;
}

.btn-approve:hover {
    box-shadow: 0 0 12px var(--neon-green);
}

.btn-reject {
    background: var(--neon-red);
    color: #FFF;
}

.btn-reject:hover {
    box-shadow: 0 0 12px var(--neon-red);
}

.btn-primary {
    background: var(--neon-cyan);
    color: #000;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
}

.btn-primary:hover {
    box-shadow: 0 0 16px var(--neon-cyan);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: #090D17;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Alert Notification */
.alert {
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13.5px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--neon-green);
    color: #34D399;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--neon-red);
    color: #F87171;
}
