/* ─────────────────────────────────────────
   SIGVP — Global CSS
   ───────────────────────────────────────── */
:root {
  --bg:      #0d1117;
  --sidebar: #161b22;
  --card:    #1c2230;
  --border:  #30363d;
  --accent:  #2ea8ff;
  --green:   #3dffa0;
  --yellow:  #f7b93e;
  --red:     #ff9d93;
  --purple:  #c792ea;
  --muted:   #8b949e;
  --text:    #e6edf3;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--text); font-family: 'Sora', sans-serif; font-size: 14px; }

/* ── LAYOUT ── */
.app-shell { display: flex; height: calc(100vh - 57px); overflow: hidden; }
.sidebar   { width: 220px; min-width: 220px; background: var(--sidebar); border-right: 1px solid var(--border); overflow-y: auto; padding: 16px 0; }
.main-area { flex: 1; overflow-y: auto; padding: 24px 28px; }

/* ── SIDEBAR LINKS ── */
.sidebar-label { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); padding: 14px 18px 6px; }
.sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; font-size: 13px; color: var(--muted);
  text-decoration: none; border-radius: 0; transition: background .15s, color .15s;
}
.sidebar a:hover  { background: rgba(255,255,255,.04); color: var(--text); }
.sidebar a.active { background: rgba(46,168,255,.1); color: var(--accent); border-right: 2px solid var(--accent); }
.sidebar a .icon  { width: 16px; text-align: center; }

/* ── STAT CARDS ── */
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 20px; display: flex; align-items: center; gap: 14px; transition: border-color .2s;
}
.stat-card:hover { border-color: var(--accent); }
.stat-card .stat-num  { font-size: 28px; font-weight: 700; line-height: 1; }
.stat-card .stat-label{ font-size: 12px; color: var(--muted); margin-top: 3px; }
.stat-card .stat-icon { font-size: 26px; opacity: .7; }

/* ── DATA TABLE ── */
.tbl-wrap { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.tbl-wrap table { margin: 0; color: var(--text); }
.tbl-wrap thead th { background: var(--sidebar); border-color: var(--border); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 14px; }
.tbl-wrap tbody td { border-color: var(--border); padding: 10px 14px; font-size: 13px; vertical-align: middle; }
.tbl-wrap tbody tr:hover td { background: rgba(255,255,255,.03); }

/* ── STATUS BADGES ── */
.badge-estado { font-size: 11px; padding: 3px 10px; border-radius: 20px; border: 1px solid; font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.st-borrador   { color: var(--muted);  border-color: #30363d;    background: #30363d44; }
.st-postulado  { color: var(--accent); border-color: #2ea8ff44;  background: #2ea8ff11; }
.st-aprobado   { color: var(--green);  border-color: #3dffa044;  background: #3dffa011; }
.st-en_progreso{ color: var(--yellow); border-color: #f7b93e44;  background: #f7b93e11; }
.st-calificado { color: var(--red);    border-color: #ff9d9344;  background: #ff9d9311; }
.st-completado { color: var(--green);  border-color: #3dffa055;  background: #3dffa022; font-weight:700; }

/* ── FORM CONTROLS (dark) ── */
.form-control, .form-select {
  background: #0d1117; border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; font-size: 14px;
}
.form-control:focus, .form-select:focus {
  background: #0d1117; color: var(--text);
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,168,255,.12);
}
.form-label { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }

/* ── BUTTONS ── */
.btn-primary   { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: #1a9af0; border-color: #1a9af0; }
.btn-success   { background: #1a7a4a; border-color: #1a7a4a; }
.btn-outline-secondary { border-color: var(--border); color: var(--muted); }
.btn-outline-secondary:hover { border-color: var(--text); color: var(--text); background: transparent; }

/* ── MODAL DARK ── */
.modal-content { background: var(--card); border: 1px solid var(--border); color: var(--text); }
.modal-header  { border-color: var(--border); }
.modal-footer  { border-color: var(--border); }
.btn-close     { filter: invert(1); }

/* ── ALERTS ── */
.alert-dark-info    { background: #2ea8ff15; border: 1px solid #2ea8ff33; color: var(--accent); border-radius: 8px; }
.alert-dark-success { background: #3dffa015; border: 1px solid #3dffa033; color: var(--green);  border-radius: 8px; }
.alert-dark-warn    { background: #f7b93e15; border: 1px solid #f7b93e33; color: var(--yellow); border-radius: 8px; }
.alert-dark-danger  { background: #ff9d9315; border: 1px solid #ff9d9333; color: var(--red);    border-radius: 8px; }

/* ── PAGE TITLE ── */
.page-header { margin-bottom: 22px; }
.page-header h4 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.page-header p  { font-size: 13px; color: var(--muted); margin: 0; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── DROPDOWN DARK ── */
.dropdown-menu { background: var(--sidebar); border-color: var(--border); }
.dropdown-item { color: var(--text); font-size: 13px; }
.dropdown-item:hover { background: rgba(255,255,255,.06); color: var(--text); }
