* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f0f2f5; color: #333; line-height: 1.6; }

.navbar { background: #1a237e; color: #fff; padding: 0 1.5rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; height: 60px; gap: 2rem; }
.nav-brand { font-size: 1.3rem; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: 1px; }
.nav-menu { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav-link { color: rgba(255,255,255,0.85); text-decoration: none; padding: 0.5rem 0.75rem; border-radius: 6px; font-size: 0.9rem; transition: all 0.2s; }
.nav-link:hover { background: rgba(255,255,255,0.15); color: #fff; }
.nav-link.logout { color: #ffab91; }
.nav-user { color: rgba(255,255,255,0.7); font-size: 0.85rem; padding: 0 0.5rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
.dashboard-header { margin-bottom: 1.5rem; }
.dashboard-header h1 { font-size: 1.6rem; color: #1a237e; margin-bottom: 0.25rem; }
.dashboard-header p { color: #666; font-size: 0.95rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: #fff; border-radius: 12px; padding: 1.25rem; display: flex; align-items: center; gap: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: transform 0.2s; }
.stat-card:hover { transform: translateY(-2px); }
.stat-icon { font-size: 2rem; }
.stat-number { display: block; font-size: 1.8rem; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 0.85rem; color: #666; }
.stat-total .stat-number { color: #1a237e; }
.stat-pending .stat-number { color: #f57c00; }
.stat-notif .stat-number { color: #1565c0; }
.stat-users .stat-number { color: #2e7d32; }

.card { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); overflow: hidden; }
.card-header { padding: 1rem 1.5rem; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.card-header h2 { font-size: 1.1rem; color: #333; }
.card-body { padding: 1.25rem 1.5rem; }

.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; padding: 0.75rem 0.5rem; border-bottom: 2px solid #e0e0e0; color: #666; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.table td { padding: 0.75rem 0.5rem; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.table tr:hover td { background: #f8f9ff; }
.actions { display: flex; gap: 0.5rem; align-items: center; }
.actions form { display: inline; }

.badge { display: inline-block; padding: 0.25rem 0.6rem; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }
.badge-pendiente { background: #fff3e0; color: #e65100; }
.badge-aprobado { background: #e8f5e9; color: #2e7d32; }
.badge-rechazado { background: #ffebee; color: #c62828; }

.form-group { margin-bottom: 0.75rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #444; margin-bottom: 0.3rem; }
.form-group input, .form-group select { width: 100%; padding: 0.55rem 0.75rem; border: 1.5px solid #ddd; border-radius: 8px; font-size: 0.9rem; transition: border-color 0.2s; background: #fff; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: #1a237e; box-shadow: 0 0 0 3px rgba(26,35,126,0.1); }
.form-inline { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.form-inline .form-group { flex: 1; min-width: 180px; margin-bottom: 0; }
.form-control-sm { padding: 0.35rem 0.5rem; border: 1.5px solid #ddd; border-radius: 6px; font-size: 0.8rem; }

.btn { display: inline-block; padding: 0.55rem 1.2rem; border: none; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.btn-primary { background: #1a237e; color: #fff; }
.btn-primary:hover { background: #283593; }
.btn-secondary { background: #e0e0e0; color: #333; }
.btn-secondary:hover { background: #bdbdbd; }
.btn-danger { background: #e53935; color: #fff; }
.btn-danger:hover { background: #c62828; }
.btn-warning { background: #f57c00; color: #fff; }
.btn-warning:hover { background: #e65100; }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; }
.btn-full { width: 100%; }

.alert { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.alert-warning { background: #fff8e1; color: #e65100; border: 1px solid #ffe082; }
.alert-warning ul { margin: 8px 0 0 20px; }
.alert-warning li { margin: 2px 0; font-size: 0.9rem; }
.alert-warning a { margin-top: 8px; }

.mt-2 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1.5rem; }
.text-muted { color: #888; font-size: 0.9rem; }

.notif-list { display: flex; flex-direction: column; gap: 0.5rem; }
.notif-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; border-radius: 10px; border: 1px solid #eee; }
.notif-unread { background: #e8eaf6; border-color: #c5cae9; }
.notif-read { background: #fff; }
.notif-icon { font-size: 1.5rem; }
.notif-content { flex: 1; }
.notif-content p { font-size: 0.9rem; margin-bottom: 0.25rem; }
.notif-content small { color: #888; font-size: 0.8rem; }
.notif-action { flex-shrink: 0; }

.login-body { background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-container { width: 100%; max-width: 420px; padding: 1rem; }
.login-card { background: #fff; border-radius: 16px; padding: 2.5rem; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-header { text-align: center; margin-bottom: 2rem; }
.login-logo { width: 70px; height: 70px; background: #1a237e; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; margin: 0 auto 1rem; }
.login-header h1 { font-size: 1.4rem; color: #333; margin-bottom: 0.3rem; }
.login-header p { color: #888; font-size: 0.85rem; }
.login-footer { text-align: center; margin-top: 1.5rem; color: #888; font-size: 0.8rem; }
.login-form .btn { margin-top: 0.5rem; }

.footer { text-align: center; padding: 1.5rem; color: #888; font-size: 0.8rem; border-top: 1px solid #e0e0e0; margin-top: 2rem; }

@media (max-width: 768px) {
  .nav-container { gap: 0.5rem; }
  .nav-menu { gap: 0; }
  .nav-link { font-size: 0.78rem; padding: 0.4rem 0.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-inline .form-group { min-width: 100%; }
  .table { font-size: 0.8rem; }
  .actions { flex-direction: column; align-items: stretch; }
}

.powered-by {
  position: fixed;
  bottom: 8px;
  right: 12px;
  font-size: 11px;
  color: #999;
  background: rgba(255,255,255,0.85);
  padding: 3px 10px;
  border-radius: 10px;
  z-index: 999;
  letter-spacing: 0.5px;
}
