/* Smart Attendance System - Modern Design System */
/* Using Indigo & Slate color palette */

:root {
    /* Primary Colors */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;
    
    /* Slate Colors */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    /* Semantic Colors */
    --success-50: #f0fdf4;
    --success-100: #dcfce7;
    --success-500: #22c55e;
    --success-600: #16a34a;
    
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    
    --error-50: #fef2f2;
    --error-100: #fee2e2;
    --error-500: #ef4444;
    --error-600: #dc2626;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Inter', ui-monospace, monospace;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.625rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: var(--slate-900);
        --bg-secondary: var(--slate-800);
        --bg-tertiary: var(--slate-700);
        --text-primary: var(--slate-50);
        --text-secondary: var(--slate-300);
        --text-tertiary: var(--slate-400);
        --border-color: var(--slate-700);
    }
}

/* Light Mode (default) */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: var(--slate-50);
    --bg-tertiary: var(--slate-100);
    --text-primary: var(--slate-900);
    --text-secondary: var(--slate-600);
    --text-tertiary: var(--slate-500);
    --border-color: var(--slate-200);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: flex;
}

/* Auth Screen */
#auth-screen {
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    padding: var(--space-6);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.5s ease;
}

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

.auth-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-header .logo {
    margin-bottom: var(--space-4);
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    background: var(--bg-secondary);
    padding: var(--space-1);
    border-radius: var(--radius-lg);
}

.auth-tab {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.auth-tab:hover {
    color: var(--text-primary);
}

.auth-tab.active {
    background: var(--bg-primary);
    color: var(--primary-600);
    box-shadow: var(--shadow-sm);
}

/* Auth Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.form-group {
    margin-bottom: var(--space-5);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.form-group input::placeholder {
    color: var(--text-tertiary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-600);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--slate-200);
}

.btn-danger {
    background: var(--error-500);
    color: white;
}

.btn-danger:hover {
    background: var(--error-600);
}

.btn-full {
    width: 100%;
    padding: var(--space-4);
}

.btn-icon {
    padding: var(--space-2);
    background: transparent;
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Auth Link */
.auth-link {
    text-align: center;
    margin-top: var(--space-5);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-link a {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Role Fields */
.role-fields.hidden {
    display: none;
}

/* Main App Layout */
#main-screen {
    display: none;
}

#main-screen.active {
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border-bottom: 1px solid var(--border-color);
}

.brand {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.nav-user {
    padding: var(--space-5) var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--primary-500);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9375rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    text-transform: capitalize;
}

.nav-menu {
    flex: 1;
    padding: var(--space-4);
    list-style: none;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-1);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    font-size: 0.9375rem;
}

.nav-item:hover,
.nav-item.active {
    background: var(--primary-50);
    color: var(--primary-600);
}

.nav-item svg {
    flex-shrink: 0;
}

.nav-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--border-color);
}

/* Content Area */
.content {
    flex: 1;
    margin-left: 280px;
    padding: var(--space-8);
    min-height: 100vh;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-8);
}

.page-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    gap: var(--space-3);
}

/* Views */
.view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view:not(.hidden) {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    transition: all var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.present {
    background: var(--success-50);
    color: var(--success-600);
}

.stat-icon.late {
    background: var(--warning-50);
    color: var(--warning-600);
}

.stat-icon.absent {
    background: var(--error-50);
    color: var(--error-600);
}

.stat-icon.primary {
    background: var(--primary-50);
    color: var(--primary-600);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-6);
}

/* Cards */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.card-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-header .link {
    font-size: 0.875rem;
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 600;
}

.card-header .link:hover {
    text-decoration: underline;
}

/* Lists */
.attendance-list,
.class-list,
.session-list {
    padding: var(--space-2);
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    transition: background var(--transition);
}

.list-item:hover {
    background: var(--bg-secondary);
}

.list-item-main {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.list-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
}

.list-item-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.list-item-info p {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.status-badge {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-badge.present {
    background: var(--success-100);
    color: var(--success-600);
}

.status-badge.late {
    background: var(--warning-100);
    color: var(--warning-600);
}

.status-badge.absent {
    background: var(--error-100);
    color: var(--error-600);
}

.status-badge.partial {
    background: var(--slate-100);
    color: var(--slate-600);
}

/* QR Scanner */
.scanner-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 1;
    background: var(--slate-900);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.scanner-frame {
    position: absolute;
    inset: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    z-index: 10;
}

.corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--primary-500);
    border-style: solid;
    border-width: 0;
}

.corner-tl {
    top: -2px;
    left: -2px;
    border-top-width: 4px;
    border-left-width: 4px;
    border-top-left-radius: var(--radius-lg);
}

.corner-tr {
    top: -2px;
    right: -2px;
    border-top-width: 4px;
    border-right-width: 4px;
    border-top-right-radius: var(--radius-lg);
}

.corner-bl {
    bottom: -2px;
    left: -2px;
    border-bottom-width: 4px;
    border-left-width: 4px;
    border-bottom-left-radius: var(--radius-lg);
}

.corner-br {
    bottom: -2px;
    right: -2px;
    border-bottom-width: 4px;
    border-right-width: 4px;
    border-bottom-right-radius: var(--radius-lg);
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-500), transparent);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

#scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-hint {
    position: absolute;
    bottom: var(--space-6);
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    z-index: 10;
}

/* QR Display */
.qr-display-container {
    max-width: 600px;
    margin: 0 auto;
}

.session-info {
    text-align: center;
    margin-bottom: var(--space-6);
}

.session-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.session-info p {
    color: var(--text-secondary);
}

.qr-code-container {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
    margin-bottom: var(--space-6);
}

#generated-qr {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: var(--space-6);
}

.qr-timer {
    margin-top: var(--space-4);
}

#qr-timer-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.timer-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    margin-top: var(--space-3);
    overflow: hidden;
}

.timer-progress {
    height: 100%;
    background: var(--primary-500);
    border-radius: var(--radius-full);
    transition: width 1s linear;
}

.session-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    margin-bottom: var(--space-8);
}

.live-attendance {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
}

.live-attendance h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.attendance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: var(--space-3);
}

.attendee-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--success-500);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: var(--space-4) var(--space-5);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background: var(--bg-secondary);
}

.data-table td {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.data-table tr:hover td {
    background: var(--bg-secondary);
}

/* Filters */
.filters-bar {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.filters-bar select,
.filters-bar input {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Admin Panel */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-6);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    padding: var(--space-4);
}

.admin-stat {
    text-align: center;
    padding: var(--space-4);
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-600);
    display: block;
}

.admin-stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: var(--space-1);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    padding: var(--space-4);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: var(--bg-primary);
    cursor: pointer;
    transition: all var(--transition);
}

.action-btn:hover {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.action-btn svg {
    color: var(--primary-600);
}

.action-btn span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.toast {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

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

.toast.success {
    border-left: 4px solid var(--success-500);
}

.toast.error {
    border-left: 4px solid var(--error-500);
}

.toast.warning {
    border-left: 4px solid var(--warning-500);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;\n    justify-content: center;\n    z-index: 1000;\n    backdrop-filter: blur(4px);\n}

.modal-overlay.hidden {
    display: none;
}

.modal {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);\n    width: 90%;\n    max-width: 500px;\n    max-height: 90vh;\n    overflow: hidden;\n    animation: scaleIn 0.2s ease;\n}

@keyframes scaleIn {
n    from {\n        transform: scale(0.95);\n        opacity: 0;\n    }\n    to {\n        transform: scale(1);\n        opacity: 1;\n    }\n}

.modal-header {\n    padding: var(--space-5) var(--space-6);\n    border-bottom: 1px solid var(--border-color);\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n}

.modal-header h3 {\n    font-size: 1.125rem;\n    font-weight: 600;\n}

.modal-close {\n    background: none;\n    border: none;\n    font-size: 1.5rem;\n    color: var(--text-tertiary);\n    cursor: pointer;\n    line-height: 1;\n}

.modal-close:hover {\n    color: var(--text-primary);\n}

.modal-body {\n    padding: var(--space-6);\n    overflow-y: auto;\n    max-height: 60vh;\n}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {\n        transform: translateX(-100%);\n        transition: transform var(--transition);\n    }\n    \n    .sidebar.open {\n        transform: translateX(0);\n    }\n    \n    .content {\n        margin-left: 0;\n    }\n    \n    .dashboard-grid {\n        grid-template-columns: 1fr;\n    }\n}

@media (max-width: 640px) {
n    .stats-grid {\n        grid-template-columns: 1fr;\n    }\n    \n    .form-row {\n        grid-template-columns: 1fr;\n    }\n    \n    .auth-container {\n        padding: var(--space-6);\n    }\n    \n    .page-header {\n        flex-direction: column;\n        gap: var(--space-4);\n        align-items: flex-start;\n    }\n}

/* Utility Classes */\n.hidden {\n    display: none !important;\n}

.text-success { color: var(--success-600); }\n.text-warning { color: var(--warning-600); }\n.text-error { color: var(--error-600); }\n.text-primary { color: var(--primary-600); }

.bg-success { background: var(--success-50); }\n.bg-warning { background: var(--warning-50); }\n.bg-error { background: var(--error-50); }\n.bg-primary { background: var(--primary-50); }

/* Loading Spinner */\n.spinner {\n    width: 24px;\n    height: 24px;\n    border: 2px solid var(--border-color);\n    border-top-color: var(--primary-500);\n    border-radius: 50%;\n    animation: spin 0.8s linear infinite;\n}

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

/* Empty State */\n.empty-state {\n    text-align: center;\n    padding: var(--space-12) var(--space-6);\n    color: var(--text-tertiary);\n}

.empty-state svg {\n    width: 64px;\n    height: 64px;\n    margin-bottom: var(--space-4);\n    opacity: 0.5;\n}

.empty-state h4 {\n    font-size: 1.125rem;\n    font-weight: 600;\n    color: var(--text-secondary);\n    margin-bottom: var(--space-2);\n}

.empty-state p {\n    font-size: 0.9375rem;\n}