:root {
    --primary: #FFCC00;
    --primary-dark: #E6B800;
    --dark: #0F1117;
    --dark-secondary: #1A1F2E;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --gray: #64748B;
    --border: #E2E8F0;
    --success: #10B981;
    --danger: #EF4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: var(--light); color: var(--dark); }

.screen { display: none; }
.screen.active { display: flex; min-height: 100vh; }

/* Login Screen */
#login-screen { justify-content: center; align-items: center; background: var(--dark); }
.login-card { background: var(--white); padding: 40px; border-radius: 16px; width: 100%; max-width: 400px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.login-logo { height: 50px; margin-bottom: 20px; display: block; margin-left: auto; margin-right: auto; }
.login-card h2 { text-align: center; margin-bottom: 30px; font-family: 'Outfit', sans-serif; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.form-group input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; }
.btn { padding: 12px 24px; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: var(--primary); color: var(--dark); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: white; }
.btn-outline { background: transparent; border: 1px solid var(--border); }
.w-100 { width: 100%; }
.error-text { color: var(--danger); font-size: 0.85rem; margin-bottom: 15px; display: none; }

/* Dashboard */
.sidebar { width: 280px; background: var(--dark); color: var(--white); display: flex; flex-direction: column; }
.sidebar-header { padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-header img { height: 40px; }
.sidebar-nav { flex: 1; padding: 24px 0; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 16px 24px; color: rgba(255,255,255,0.7); text-decoration: none; transition: 0.2s; }
.nav-item:hover, .nav-item.active { background: rgba(255,204,0,0.1); color: var(--primary); border-right: 4px solid var(--primary); }
.sidebar-footer { padding: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-footer .btn { color: white; border-color: rgba(255,255,255,0.2); }

.main-content { flex: 1; overflow-y: auto; background: var(--light); }
.view-section { display: none; padding: 40px; }
.view-section.active { display: block; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.topbar h1 { font-family: 'Outfit', sans-serif; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.stat-card { background: var(--white); padding: 24px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.stat-card i { font-size: 2rem; margin-bottom: 16px; }
.stat-card h3 { font-size: 2rem; margin-bottom: 4px; }
.text-primary { color: var(--primary-dark); }
.text-success { color: var(--success); }

.card { background: var(--white); padding: 24px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); margin-bottom: 24px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { font-weight: 600; color: var(--gray); background: #f8fafc; }

/* Tabs */
.tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab-btn { padding: 12px 24px; background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; font-family: inherit; font-weight: 500; color: var(--gray); transition: 0.2s; }
.tab-btn:hover { color: var(--dark); }
.tab-btn.active { color: var(--primary-dark); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Modals */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; justify-content: center; align-items: center; z-index: 1000; }
.modal-overlay.active { display: flex; }
.modal { background: var(--white); width: 100%; max-width: 600px; border-radius: 12px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.modal-header { padding: 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { font-family: 'Outfit', sans-serif; font-size: 1.5rem; }
.close-modal { background: none; border: none; font-size: 1.5rem; color: var(--gray); cursor: pointer; }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; }

/* Specific components */
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.actions-cell { display: flex; gap: 8px; }
