* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #f1f5f9; color: #1e293b; min-height: 100vh; }

.login-body { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%); }
.login-box { background: white; border-radius: 16px; padding: 40px; width: 400px; max-width: 90vw; box-shadow: 0 25px 50px rgba(0,0,0,0.2); }
.login-header { text-align: center; margin-bottom: 30px; }
.login-header h2 { color: #1e3a8a; margin-bottom: 5px; }
.login-header p { color: #64748b; font-size: 0.9rem; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; color: #334155; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #86efac; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 8px; font-weight: 500; font-size: 0.9rem; cursor: pointer; text-decoration: none; border: none; transition: all 0.2s; }
.btn-primary { background: #1e3a8a; color: white; }
.btn-primary:hover { background: #1e40af; transform: translateY(-1px); }
.btn-secondary { background: #e2e8f0; color: #334155; }
.btn-secondary:hover { background: #cbd5e1; }
.btn-danger { background: #dc2626; color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: #16a34a; color: white; }
.btn-success:hover { background: #15803d; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

.admin-header { background: #1e3a8a; color: white; padding: 15px 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.admin-header-inner { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.admin-header h1 { font-size: 1.2rem; font-weight: 600; }
.admin-user { display: flex; align-items: center; gap: 15px; font-size: 0.9rem; }

.admin-container { max-width: 1400px; margin: 30px auto; display: grid; grid-template-columns: 240px 1fr; gap: 30px; padding: 0 30px; }

.admin-nav { background: white; border-radius: 12px; padding: 15px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); height: fit-content; }
.nav-item { display: block; padding: 12px 16px; border-radius: 8px; color: #475569; text-decoration: none; font-weight: 500; font-size: 0.9rem; transition: all 0.2s; margin-bottom: 4px; }
.nav-item:hover { background: #f1f5f9; color: #1e3a8a; }
.nav-item.active { background: #eff6ff; color: #1e3a8a; font-weight: 600; }

.admin-content { background: white; border-radius: 12px; padding: 30px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.admin-content h2 { font-size: 1.5rem; color: #1e293b; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #e2e8f0; }

.dashboard-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.dash-card { background: linear-gradient(135deg, #f8fafc, #f1f5f9); border: 1px solid #e2e8f0; border-radius: 12px; padding: 25px; display: flex; flex-direction: column; gap: 10px; transition: all 0.2s; }
.dash-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.dash-card-icon { font-size: 2rem; }
.dash-card-info { display: flex; flex-direction: column; }
.dash-card-number { font-size: 2rem; font-weight: 700; color: #1e3a8a; }
.dash-card-label { font-size: 0.9rem; color: #64748b; }
.dash-card-link { margin-top: 10px; color: #3b82f6; text-decoration: none; font-weight: 500; font-size: 0.85rem; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 15px; border-bottom: 1px solid #e2e8f0; font-size: 0.9rem; }
.table th { background: #f8fafc; font-weight: 600; color: #475569; }
.table tr:hover td { background: #f8fafc; }
.table-actions { display: flex; gap: 8px; }
.table-empty td { text-align: center; padding: 40px; color: #94a3b8; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-active { background: #dcfce7; color: #16a34a; }
.badge-inactive { background: #fef2f2; color: #dc2626; }

@media (max-width: 768px) {
    .admin-container { grid-template-columns: 1fr; }
    .admin-header h1 { font-size: 1rem; }
    .form-row { grid-template-columns: 1fr; }
}
