:root {
    --primary-blue: #1565C0;
    --primary-dark: #0D47A1;
    --accent-gold: #FFD700;
    --text-main: #1E293B;
    --text-secondary: #64748B;
    --bg-gradient-start: #F0F7FF;
    --bg-gradient-end: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* =====================
   GLASSMORPHISM & CARDS
   ===================== */

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Card Hierarchy */
.card-primary {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(21, 101, 192, 0.1);
    box-shadow: 0 4px 16px 0 rgba(21, 101, 192, 0.08);
}

.card-secondary {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(100, 116, 139, 0.1);
    box-shadow: 0 2px 8px 0 rgba(100, 116, 139, 0.05);
}

.card-tertiary {
    background: rgba(249, 250, 251, 0.8);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

/* =====================
   FORM ELEMENTS
   ===================== */

.input-premium {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.input-premium:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
    background: white;
}

.btn-premium {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(21, 101, 192, 0.5);
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-premium:hover::after {
    left: 100%;
}

/* =====================
   ANIMATIONS
   ===================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

@keyframes blob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(20px, -20px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    75% {
        transform: translate(10px, 10px) scale(1.05);
    }
}

.animate-blob {
    animation: blob 20s ease-in-out infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* =====================
   DASHBOARD SPECIFIC
   ===================== */

/* Section Spacing */
.dashboard-section {
    margin-bottom: 2rem;
    /* 32px */
}

.dashboard-card {
    margin-bottom: 1.5rem;
    /* 24px */
}

/* Role Banners */
.role-banner {
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.role-banner.admin {
    background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
    border: 1px solid #86efac;
}

.role-banner.assistant {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9e6 100%);
    border: 1px solid #fbbf24;
}

/* Stats Cards */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(21, 101, 192, 0.15);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Network Visualization */
.network-container {
    min-height: 400px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.network-node {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.network-node:hover {
    transform: scale(1.1);
    z-index: 20;
}

.network-line {
    position: absolute;
    height: 2px;
    background: #cbd5e1;
    transform-origin: 0 50%;
    z-index: 1;
}

.network-legend {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 30;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* =====================
   BADGES & STATUS
   ===================== */

.payment-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.payment-status-badge.paid {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.payment-status-badge.unpaid {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

/* =====================
   TABLES
   ===================== */

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid #e2e8f0;
    background: #f9fafb;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
}

.data-table tbody tr:hover {
    background: rgba(21, 101, 192, 0.02);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* =====================
   MODALS
   ===================== */

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 100;
    max-width: 90%;
    width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 90;
}

.modal-overlay.hidden {
    display: none;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-main);
}

/* =====================
   PAGINATION
   ===================== */

.pagination-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(21, 101, 192, 0.05);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-number {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.page-number:hover {
    background: rgba(21, 101, 192, 0.1);
    color: var(--primary-blue);
}

.page-number.active {
    background: var(--primary-blue);
    color: white;
}

/* =====================
   MOBILE RESPONSIVE
   ===================== */

@media (max-width: 640px) {
    .glass-panel {
        backdrop-filter: blur(8px);
    }

    .dashboard-section {
        margin-bottom: 1.5rem;
    }

    .stat-card:hover {
        transform: none;
    }
}