:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f0f2f7;
  --border: #e2e6ef;
  --text: #1f2937;
  --text-muted: #6b7280;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --info: #3b82f6;
  --info-light: #dbeafe;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --sidebar-w: 260px;
}

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

html, body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 40;
  transition: transform 0.25s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
}

.brand-text h1 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

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

.nav {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}

.nav-item:hover { background: var(--surface-2); }

.nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.nav-icon { font-size: 18px; width: 24px; text-align: center; }

.sidebar-footer {
  padding: 12px 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Main */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.menu-btn:hover { background: var(--surface-2); }

.topbar-title {
  font-size: 18px;
  font-weight: 700;
  flex: 1;
}

.date-chip {
  background: var(--surface-2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.content {
  padding: 24px;
  flex: 1;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card + .card { margin-top: 16px; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon.primary { background: var(--primary-light); }
.stat-icon.success { background: var(--success-light); }
.stat-icon.danger { background: var(--danger-light); }
.stat-icon.warning { background: var(--warning-light); }
.stat-icon.info { background: var(--info-light); }

.stat-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover:not(:disabled) { background: #059669; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #dc2626; }

.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--border); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }

.btn-sm { padding: 6px 10px; font-size: 13px; }
.btn-lg { padding: 12px 20px; font-size: 15px; }

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  border-radius: var(--radius-sm);
}

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

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

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

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

.form-textarea { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead th {
  background: var(--surface-2);
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success { background: var(--success-light); color: #065f46; }
.badge-danger { background: var(--danger-light); color: #991b1b; }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-info { background: var(--info-light); color: #1e40af; }
.badge-neutral { background: var(--surface-2); color: var(--text-muted); }

/* Toggle switches for attendance */
.attendance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}

.attendance-row.presente { border-color: var(--success); background: var(--success-light); }
.attendance-row.ausente { border-color: var(--danger); background: var(--danger-light); }
.attendance-row.justificado { border-color: var(--warning); background: var(--warning-light); }

.attendance-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.attendance-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.attendance-name { font-weight: 500; }
.attendance-meta { font-size: 12px; color: var(--text-muted); }

.attendance-actions {
  display: flex;
  gap: 6px;
}

.att-btn {
  padding: 7px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.15s;
  color: var(--text-muted);
}

.att-btn:hover { background: var(--surface-2); }

.att-btn.active-presente { background: var(--success); color: #fff; border-color: var(--success); }
.att-btn.active-ausente { background: var(--danger); color: #fff; border-color: var(--danger); }
.att-btn.active-justificado { background: var(--warning); color: #fff; border-color: var(--warning); }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}

.modal-backdrop[hidden] { display: none; }

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

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s ease;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 { font-size: 17px; font-weight: 600; }

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.modal-close:hover { background: var(--surface-2); color: var(--text); }

.modal-body { padding: 20px; }
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--text);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.2s ease;
  max-width: 320px;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }

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

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 14px; margin-bottom: 16px; }

/* Filters bar */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.filters .form-input, .filters .form-select {
  width: auto;
  min-width: 160px;
}

/* Progress bar */
.progress-bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Chart simple (bar) */
.chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;
  padding-top: 10px;
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: var(--primary);
  min-height: 4px;
  transition: height 0.3s ease;
}

.chart-label {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.chart-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

/* Responsive */
/* Login overlay */
.login-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

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

.login-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 36px 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.login-brand {
  text-align: center;
  margin-bottom: 24px;
}

.login-brand .brand-icon {
  margin: 0 auto 12px;
}

.login-brand h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.login-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.login-error {
  background: var(--danger-light);
  color: #991b1b;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 12px;
}

.login-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

.sb-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 0;
  font-size: 12px;
  color: var(--text-muted);
  gap: 8px;
}

.sb-user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-chip {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.role-chip.professor { background: var(--info-light); color: #1e40af; }
.role-chip.admin { background: var(--primary-light); color: var(--primary); }

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .form-row { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .topbar { padding: 12px 16px; }
  .toast-container { left: 16px; right: 16px; }
  .toast { max-width: 100%; }
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 35;
}

@media (max-width: 768px) {
  .sidebar-overlay.show { display: block; }
}

/* Utility */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.w-full { width: 100%; }
.hidden { display: none !important; }


/* ========== Polish (refino visual, mantendo identidade azul) ========== */
.card { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.card:hover { box-shadow: 0 8px 22px rgba(16,24,40,0.08); }
.table-wrap { border-radius: 12px; overflow: hidden; }
thead th { letter-spacing: 0.06em; }
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: #f6f8fd; }
.form-input, .form-select, .form-textarea { transition: border-color 0.18s, box-shadow 0.18s, background 0.18s; }
.form-input:hover, .form-select:hover, .form-textarea:hover { border-color: #b9c1d6; background: #fcfdff; }
.btn { transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.stat-card { transition: transform 0.2s, box-shadow 0.2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16,24,40,0.08); }
.login-overlay { backdrop-filter: blur(6px); }
.login-card { box-shadow: 0 24px 60px rgba(0,0,0,0.18); }
.topbar { box-shadow: 0 2px 8px rgba(16,24,40,0.04); }
.sidebar { box-shadow: 2px 0 12px rgba(16,24,40,0.03); }
.empty-state .empty-icon { filter: drop-shadow(0 4px 8px rgba(16,24,40,0.08)); }
.modal { box-shadow: 0 24px 60px rgba(16,24,40,0.18); border-radius: 16px; }
.attendance-row { transition: all 0.18s ease; }
.att-btn { transition: transform 0.12s, box-shadow 0.12s, background 0.12s; }
.att-btn:hover { transform: translateY(-1px); }
@media (max-width: 768px) { .content { padding: 14px 12px; } }


/* ========== UI polish (layout, transições, espaçamento) ========== */
.content { padding: 26px 28px; }
.content > * { animation: ui-rise .32s ease-out both; }
@keyframes ui-rise { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.card { padding: 24px; margin-bottom: 18px; }
.card-header { margin-bottom: 18px; gap: 14px; }
.card-title { font-size: 17px; font-weight: 700; letter-spacing:-0.01em; }
.stat-card { padding: 20px; border-radius: 14px; gap: 16px; }
.stat-value { font-size: 26px; font-weight: 800; }
.stat-label { font-size: 12.5px; margin-top: 3px; }
.form-group { margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.form-input, .form-select, .form-textarea { padding: 11px 14px; font-size: 14.5px; border-radius: 10px; }
.btn { padding: 10px 18px; border-radius: 10px; font-size: 14px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.table-wrap { border-radius: 12px; }
thead th { padding: 12px 14px; font-size: 11.5px; font-weight: 700; letter-spacing:0.06em; }
tbody td { padding: 12px 14px; font-size: 14px; }
.attendance-row { padding: 12px 14px; border-radius: 12px; margin-bottom: 10px; }
.attendance-avatar { width: 40px; height: 40px; border-radius: 11px; font-size: 14px; font-weight: 700; }
.att-btn { padding: 8px 13px; font-size: 12.5px; border-radius: 9px; }
.modal { border-radius: 16px; }
.modal-header { padding: 18px 22px; }
.modal-body { padding: 22px; }
.modal-footer { padding: 16px 22px; }
.empty-state { padding: 56px 24px; }
.empty-state h3 { font-size: 17px; margin-bottom: 6px; }
.empty-state p { font-size: 14px; margin-bottom: 14px; }
.topbar { padding: 16px 26px; }
.sidebar { width: 264px; }
.brand { padding: 20px 20px; }
.nav-item { padding: 12px 14px; border-radius: 10px; gap: 12px; }
.filters { gap: 12px; margin-bottom: 18px; }
.badge { padding: 4px 10px; font-size: 11.5px; border-radius: 999px; }
.progress-bar { height: 8px; border-radius: 999px; }
.toast { border-radius: 12px; padding: 13px 17px; }
@media (max-width: 768px) {
  .content { padding: 14px 14px; }
  .card { padding: 18px 16px; }
  .stat-value { font-size: 22px; }
  .topbar { padding: 12px 16px; }
}
/* suavizar gradientes: usar tons mais leves */
.gradient-soft { background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%); }


/* ========== Animações (mais vivo, mantendo identidade azul) ========== */
@keyframes pageIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.content { animation: pageIn .35s ease-out; }
.content > * { animation: pageIn .45s ease-out both; }
@keyframes cardHover { 0%{transform:translateY(0)} 100%{transform:translateY(-3px)} }
.card:hover, .stat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(79,70,229,0.12); }
.btn-primary:active, .btn-success:active, .btn-danger:active { transform: translateY(0) scale(0.98); }
.modal { animation: modalIn .28s cubic-bezier(.2,.8,.2,1); }
@keyframes modalIn { from { opacity:0; transform: scale(0.96) translateY(12px); } to { opacity:1; transform: scale(1) translateY(0); } }
.login-overlay { background: radial-gradient(circle at 20% 20%, rgba(79,70,229,0.35), transparent 45%),
                  radial-gradient(circle at 80% 30%, rgba(124,58,237,0.3), transparent 50%),
                  linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); }
.login-card { animation: modalIn .4s cubic-bezier(.2,.8,.2,1); }
.brand-icon { animation: pulseIcon 3s ease-in-out infinite; }
@keyframes pulseIcon { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.nav-item { transition: all .18s ease; }
.nav-item.active { position: relative; }
.nav-item.active::before { content:""; position:absolute; left:-10px; top:50%; transform:translateY(-50%); width:4px;height:22px; border-radius:4px; background: var(--primary); animation: barIn .25s ease; }
@keyframes barIn { from { height:0; opacity:0; } to { height:22px; opacity:1; } }
.att-btn { transition: transform .12s, box-shadow .12s, background .15s; }
.att-btn:hover { transform: translateY(-1px); }
.att-btn:active { transform: scale(0.96); }
.table-wrap tbody tr { transition: background .15s, transform .15s; }
.toast { animation: toastIn .3s cubic-bezier(.2,.8,.2,1); }
@keyframes toastIn { from { opacity:0; transform: translateX(30px); } to { opacity:1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* ========== Visual mais colorido (app) ========== */
body { background: linear-gradient(135deg, #eef2ff 0%, #f1ecff 45%, #e0f7fa 100%) fixed; }
.sidebar { background: linear-gradient(180deg, #ffffff 0%, #f4f6ff 100%); }
.topbar { background: linear-gradient(90deg, #ffffff 0%, #f0f4ff 100%); border-bottom: 1px solid rgba(79,70,229,0.12); }
.card { background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%); border: 1px solid rgba(79,70,229,0.08); }
.stat-card { background: linear-gradient(135deg, #ffffff, #f3f5ff); border: 1px solid rgba(79,70,229,0.1); }
.stat-icon.primary { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.stat-icon.success { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.stat-icon.danger { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.stat-icon.warning { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.stat-icon.info { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.card-header { background: transparent; }
.table-wrap { border: 1px solid rgba(79,70,229,0.08); box-shadow: 0 2px 10px rgba(79,70,229,0.05); }
thead th { background: linear-gradient(180deg, #f3f5ff, #eef2ff); }
.attendance-row.presente { background: linear-gradient(90deg, #ecfdf5, #f7fffb); }
.attendance-row.ausente { background: linear-gradient(90deg, #fef2f2, #fff7f7); }
.attendance-row.justificado { background: linear-gradient(90deg, #fffbeb, #fffdf5); }
.empty-state { background: linear-gradient(180deg, #ffffff, #f7f9ff); border-radius: 14px; }
.login-overlay { background: radial-gradient(circle at 20% 20%, rgba(79,70,229,0.35), transparent 45%), radial-gradient(circle at 80% 30%, rgba(124,58,237,0.3), transparent 50%), linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); }
.progress-fill { background: linear-gradient(90deg, var(--primary), #8b5cf6, #06b6d4); }
.chart-bar { background: linear-gradient(180deg, var(--primary), #8b5cf6); }
.btn-primary { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.sidebar-footer { background: linear-gradient(180deg, #ffffff, #f7f9ff); }
