:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --sidebar-w: 250px;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }
body { background: var(--bg-main); color: var(--text-main); display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar { width: var(--sidebar-w); background: var(--bg-card); border-right: 1px solid var(--border); padding: 1.5rem 1rem; display: flex; flex-direction: column; }
.sidebar-brand { font-size: 1.25rem; font-weight: bold; color: var(--primary); margin-bottom: 2rem; display: flex; align-items: center; gap: 0.5rem; }
.sidebar-menu { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-menu a { display: block; padding: 0.75rem 1rem; color: var(--text-muted); text-decoration: none; border-radius: 0.375rem; font-weight: 500; transition: all 0.2s; }
.sidebar-menu a:hover, .sidebar-menu a.active { background: #eff6ff; color: var(--primary); }

/* Main Content */
.content { flex: 1; padding: 2rem; overflow-y: auto; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }

/* Components */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.card { background: var(--bg-card); border: 1px solid var(--border); padding: 1.5rem; border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.card-title { font-size: 0.875rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }
.card-value { font-size: 2rem; font-weight: bold; margin-top: 0.5rem; }

/* Tables */
.table-container { background: var(--bg-card); border: 1px solid var(--border); border-radius: 0.5rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 1rem; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
th { background: #f1f5f9; font-weight: 600; color: var(--text-muted); }

/* Badges */
.badge { padding: 0.25rem 0.5rem; border-radius: 0.25rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.badge-activa { background: #dcfce7; color: #15803d; }
.badge-vencida { background: #fee2e2; color: #b91c1c; }
.badge-suspendida { background: #fef3c7; color: #b45309; }
.badge-prueba { background: #e0e7ff; color: #4338ca; }

/* Forms & Buttons */
.btn { padding: 0.5rem 1rem; border-radius: 0.375rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; text-decoration: none; border: none; display: inline-flex; align-items: center; gap: 0.25rem; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: #e2e8f0; color: var(--text-main); }
.btn-danger { background: #ef4444; color: white; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.form-control { width: 100%; padding: 0.625rem; border: 1px solid var(--border); border-radius: 0.375rem; font-size: 0.875rem; }

/* Login Box */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #f1f5f9; }
.login-card { width: 100%; max-width: 400px; background: white; padding: 2.5rem; border-radius: 0.5rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }