/* ================================================================
   Variables y reset — paleta Crowe Horwath
   ================================================================ */
:root {
  --sidebar-w: 220px;
  --navbar-h: 54px;
  --color-primary: #1a3a5c;
  --color-primary-dark: #122843;
  --color-primary-light: #5a7fa8;
  --color-accent: #f5a800;
  --color-bg: #f4f4f4;
  --color-surface: #ffffff;
  --color-border: #e0e0e0;
  --color-border-light: #e8e8e8;
  --color-text: #333333;
  --color-muted: #888888;
  --color-muted-light: #aaaaaa;
  --color-active-bg: #eef2f7;
  --color-active-border: #d0dce8;
  --color-success: #2d8a2d;
  --color-success-text: #2d6a2d;
  --color-success-bg: #e8f5e8;
  --color-warning-text: #9a6e0a;
  --color-warning-bg: #fef3e2;
  --color-danger: #c0392b;
  --color-danger-text: #922b21;
  --color-danger-bg: #fdecea;
  --radius: 7px;
  --radius-sm: 5px;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 13px;
  margin: 0;
  padding-top: var(--navbar-h);
}

/* ================================================================
   Navbar (topbar Crowe)
   ================================================================ */
.app-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 100;
  gap: 12px;
}

.app-navbar-left  { display:flex; align-items:center; min-width: var(--sidebar-w); }
.app-navbar-center{ flex:1; display:flex; align-items:center; gap:3px; }
.app-navbar-right { display:flex; align-items:center; gap:8px; margin-left:auto; }

.app-brand {
  display:flex; align-items:center; gap:8px;
  color: var(--color-primary); text-decoration:none; font-weight:700; font-size:15px;
}
.app-brand:hover { color: var(--color-primary); }
.app-brand-logo {
  width:26px; height:26px; border-radius:4px;
  background: var(--color-accent);
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:13px; color:#fff;
  flex-shrink:0;
}
.app-brand-name { color: var(--color-muted); font-size:13px; font-weight:400; }

.btn-nav {
  background: none;
  border: none;
  color: var(--color-muted); border-radius: var(--radius-sm);
  padding:6px 13px; font-size:13px; cursor:pointer;
  text-decoration:none; display:inline-block;
  transition: background .15s, color .15s;
}
.btn-nav:hover { background: #f5f5f5; color: var(--color-muted); }
.btn-nav.active { background: var(--color-active-bg); color: var(--color-primary); font-weight:500; }
.btn-nav-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-nav-primary:hover { background: var(--color-primary-dark); color:#fff; }

.user-avatar {
  width:30px; height:30px; border-radius:50%;
  background: var(--color-active-bg);
  color: var(--color-primary); font-weight:600; font-size:11px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.user-info { display:flex; flex-direction:column; line-height:1.2; }
.user-name { color: var(--color-text); font-size:13px; font-weight:400; }
.user-role {
  color: var(--color-primary);
  font-size:11px;
  background: var(--color-active-bg);
  border-radius:20px;
  padding:1px 8px;
  display:inline-block;
  width:fit-content;
}

/* ================================================================
   Layout principal (sidebar + main)
   ================================================================ */
.app-layout {
  display: flex;
  min-height: calc(100vh - var(--navbar-h));
}

/* ================================================================
   Sidebar
   ================================================================ */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--color-surface);
  border-right: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--navbar-h);
  height: calc(100vh - var(--navbar-h));
  overflow: hidden;
  padding: 14px 10px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .07em;
  color: var(--color-muted-light);
  text-transform: uppercase;
  flex-shrink: 0;
}
.sidebar-total {
  font-size: 10px;
  background: #f0f0f0;
  color: var(--color-muted);
  border-radius: 20px;
  padding: 1px 7px;
}

.sidebar-search { padding: 0 0 8px; flex-shrink:0; }
.sidebar-search-input {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.sidebar-search-input:focus {
  border-color: var(--color-primary);
}

.sidebar-list {
  list-style: none;
  margin: 0; padding: 0;
  overflow-y: auto;
  flex: 1;
}
.sidebar-list::-webkit-scrollbar { width:4px; }
.sidebar-list::-webkit-scrollbar-thumb { background:#ddd; border-radius:4px; }

.sidebar-item { border-radius: var(--radius-sm); margin: 0 0 3px; }
.sidebar-link {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 8px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--color-text);
  transition: background .15s;
}
.sidebar-link:hover { background: #f5f5f5; color: var(--color-text); }

.sidebar-item--active .sidebar-link {
  background: var(--color-active-bg);
  border-color: var(--color-active-border);
  color: var(--color-text);
}
.sidebar-item--active .sidebar-project-name { color: var(--color-primary); font-weight:500; }
.sidebar-item--active .sidebar-client { color: var(--color-primary-light); }

.sidebar-dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0; margin-top: 4px;
}
.sidebar-link-content { display:flex; flex-direction:column; min-width:0; gap:2px; }
.sidebar-project-name {
  font-size: 12px; font-weight: 400; color: var(--color-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.35;
}
.sidebar-client {
  font-size: 10px; color: var(--color-muted-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sidebar-search-note {
  font-size: 10px; color: var(--color-muted-light);
  padding: 6px 8px 2px; line-height: 1.4;
}

.sidebar-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 0 0;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}
.sidebar-page-btn {
  font-size:11px; padding:3px 9px; border-radius: var(--radius-sm);
  background: none; border:1px solid var(--color-border);
  color: var(--color-primary); text-decoration:none;
}
.sidebar-page-btn:hover { background: var(--color-active-bg); }
.sidebar-page-info { font-size:11px; color:var(--color-muted-light); }

/* ================================================================
   Área principal
   ================================================================ */
.app-main {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  min-width: 0;
}

/* ================================================================
   Cabecera de proyecto
   ================================================================ */
.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 12px;
}
.project-header-left { display:flex; flex-direction:column; gap:4px; }
.project-title { font-size:17px; font-weight:600; color: var(--color-primary); margin:0; }
.project-tag {
  display:inline-flex; align-items:center; width:fit-content;
  background: var(--color-active-bg); color: var(--color-primary);
  border-radius:20px; padding:2px 10px; font-size:11px; font-weight:500;
}
.project-tag--info { background: var(--color-warning-bg); color: var(--color-warning-text); }

.back-link {
  font-size:12px; color: var(--color-muted);
  text-decoration:none;
}
.back-link:hover { color: var(--color-primary); }

/* ================================================================
   Búsqueda de tareas
   ================================================================ */
.task-search-bar {
  display:flex; align-items:center; gap:10px;
  margin-bottom: 15px;
}
.task-search-bar .form-control {
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  padding: 7px 14px;
  font-size: 12px;
  max-width: 500px;
}
.task-search-bar .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: none;
}
.task-search-count { font-size:11px; color:var(--color-muted-light); }

/* ================================================================
   Tabla de tareas
   ================================================================ */
.task-table {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  margin-bottom: 8px;
}
.task-table thead th {
  background: #f9f9f9;
  font-size: 10px;
  font-weight: 500;
  letter-spacing:.06em;
  text-transform: uppercase;
  color: var(--color-muted-light);
  border-bottom: 1px solid #eee;
  padding: 10px 12px;
}
.task-table tbody td { padding: 9px 12px; vertical-align:middle; font-size:12px; }
.task-table tbody tr:hover { background: #fafafa; }
.task-table tbody tr:not(:last-child) td { border-bottom: 1px solid #f0f0f0; }

.emp-cell { display:flex; align-items:center; gap:8px; }
.emp-avatar {
  width:26px; height:26px; border-radius:50%;
  background: var(--color-active-bg); color: var(--color-primary);
  font-size:10px; font-weight:600;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}

.badge-hours {
  background: var(--color-active-bg);
  color: var(--color-primary);
  font-weight: 600; font-size:12px;
  padding:2px 9px; border-radius:20px;
}

.task-desc {
  max-width: 280px;
  white-space: nowrap; overflow:hidden; text-overflow:ellipsis;
}

.text-nowrap { white-space:nowrap; }

/* ================================================================
   Resumen semanal (dashboard de horas)
   ================================================================ */
.week-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.week-summary--dashboard {
  max-width: 640px;
  margin: 0 auto 22px;
}

/* ================================================================
   Calendario mensual (dashboard)
   ================================================================ */
.dash-calendar {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
  max-width: 640px;
  margin: 0 auto 22px;
}
.dash-calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}
.cal-month-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  min-width: 140px;
  text-align: center;
}
.cal-nav-btn {
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.cal-nav-btn:hover { background: var(--color-active-bg); color: var(--color-primary); }

.dash-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}
.dash-calendar-weekdays {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-muted-light);
  text-align: center;
  margin-bottom: 6px;
}

.cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--color-text);
  text-decoration: none;
}
.cal-day--muted { color: var(--color-muted-light); }
.cal-day--today { border: 1px solid var(--color-primary); font-weight: 600; }
.cal-day--has-entries {
  background: var(--color-active-bg);
  color: var(--color-primary);
  font-weight: 500;
  cursor: pointer;
}
.cal-day--has-entries:hover { background: var(--color-active-border); }
.cal-day-dot {
  position: absolute;
  bottom: 4px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ================================================================
   Selector de vista (Mensual / Semanal / Diario)
   ================================================================ */
.cal-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
}
.cal-tab {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  padding: 5px 14px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid transparent;
}
.cal-tab:hover { background: #f5f5f5; color: var(--color-text); }
.cal-tab--active {
  background: var(--color-active-bg);
  color: var(--color-primary);
  border-color: var(--color-active-border);
  font-weight: 600;
}

.dash-calendar--wide { max-width: 100%; }

/* ================================================================
   Grilla horaria (vistas Semanal / Diaria)
   ================================================================ */
.cal-timegrid-row {
  display: grid;
  grid-template-columns: 52px repeat(var(--cal-cols), 1fr);
}
.cal-timegrid-gutter {
  font-size: 10px;
  color: var(--color-muted-light);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-right: 6px;
}
.cal-timegrid-gutter--label {
  align-items: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cal-timegrid-headerrow { margin-bottom: 6px; }
.cal-timegrid-daylabel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border-light);
}
.cal-dow {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--color-muted-light);
  letter-spacing: .04em;
}
.cal-daynum {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}
.cal-daynum--today {
  background: var(--color-danger);
  color: #fff;
  border-radius: 50%;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}

.cal-timegrid-alldayrow {
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 6px;
  margin-bottom: 4px;
}
.cal-timegrid-alldaycol {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 3px;
}
.cal-chip {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-chip--aprobado { background: var(--color-success-bg); color: var(--color-success-text); }
.cal-chip--pendiente { background: var(--color-active-bg); color: var(--color-primary); }
.cal-chip--rechazado { background: var(--color-danger-bg); color: var(--color-danger-text); }

.cal-timegrid-scroll {
  max-height: 420px;
  overflow-y: auto;
}
.cal-timegrid-hours {
  display: flex;
  flex-direction: column;
}
.cal-hour-label {
  width: 100%;
  transform: translateY(-6px);
}
.cal-timegrid-col {
  position: relative;
  border-left: 1px solid var(--color-border-light);
}
.cal-hour-line {
  border-bottom: 1px solid #f0f0f0;
}
.cal-event {
  position: absolute;
  left: 2px; right: 2px;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 10px;
  line-height: 1.3;
  overflow: hidden;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.cal-event-title {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-event-time { display: block; opacity: .85; }
.cal-event--aprobado {
  background: var(--color-success-bg); color: var(--color-success-text);
  border-left-color: var(--color-success);
}
.cal-event--pendiente {
  background: var(--color-active-bg); color: var(--color-primary);
  border-left-color: var(--color-primary);
}
.cal-event--rechazado {
  background: var(--color-danger-bg); color: var(--color-danger-text);
  border-left-color: var(--color-danger);
}
.cal-now-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--color-danger);
  z-index: 2;
}
.cal-now-line::before {
  content: "";
  position: absolute;
  left: -4px; top: -3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-danger);
}

.wsummary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.wsummary-card:hover {
  border-color: var(--color-active-border);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.wsummary-card--active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary) inset;
}
.wsummary-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-muted-light);
}
.wsummary-value {
  font-size: 19px;
  font-weight: 600;
  color: var(--color-primary);
}
.wsummary-card--success .wsummary-value { color: var(--color-success-text); }
.wsummary-card--warning .wsummary-value { color: var(--color-warning-text); }
.wsummary-card--danger  .wsummary-value { color: var(--color-danger-text); }

/* ================================================================
   Badge de filtro activo (drill-down del resumen semanal)
   ================================================================ */
.filter-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-muted);
  background: var(--color-active-bg);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  margin-bottom: 14px;
  width: fit-content;
}
.filter-badge strong { color: var(--color-primary); }
.filter-badge-clear {
  color: var(--color-muted);
  text-decoration: none;
  margin-left: 6px;
  border-left: 1px solid var(--color-border);
  padding-left: 8px;
}
.filter-badge-clear:hover { color: var(--color-danger-text); }

/* ================================================================
   Estado de aprobación (grid y formulario)
   ================================================================ */
.status-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
}
.status-text--success { color: var(--color-success-text); }
.status-text--warning { color: var(--color-warning-text); }
.status-text--danger  { color: var(--color-danger-text); }

/* ================================================================
   Dashboard — pantalla de bienvenida
   ================================================================ */
.welcome-area {
  display: flex; flex-direction:column; align-items:center;
  justify-content:center; text-align:center;
  padding: 60px 20px;
}
.welcome-icon { font-size:48px; margin-bottom:14px; }
.welcome-title { font-size:19px; font-weight:600; color: var(--color-primary); margin-bottom:6px; }
.welcome-sub { color:var(--color-muted); max-width:360px; margin-bottom:22px; font-size:13px; }
.welcome-stats { display:flex; gap:32px; }
.wstat { text-align:center; }
.wstat-num { font-size:22px; font-weight:600; color:var(--color-primary); }
.wstat-label { font-size:11px; color:var(--color-muted-light); margin-top:2px; }

/* ================================================================
   Estado vacío
   ================================================================ */
.empty-state {
  text-align:center; padding:50px 20px;
  color:var(--color-muted-light);
}
.empty-icon { font-size:40px; margin-bottom:10px; }

/* ================================================================
   Formulario de tarea
   ================================================================ */
.form-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border-light);
  padding: 18px;
  max-width: 860px;
}
.form-card .form-label {
  font-size: 12px; color: var(--color-text); font-weight:500;
}
.form-card .form-control,
.form-card .form-select {
  font-size: 13px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
}
.form-card .form-control:focus,
.form-card .form-select:focus {
  border-color: var(--color-primary); box-shadow: none;
}
.attachment-list {
  list-style:none; margin:0; padding:0;
  font-size:11px; color:var(--color-muted);
}
.attachment-list li { padding:2px 0; }
.review-actions {
  display: flex; gap: 8px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--color-border-light);
}

/* ================================================================
   Cronómetro Iniciar / Detener (form de tarea)
   ================================================================ */
.timer-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-timer-start {
  background: var(--color-success-bg);
  border: 1px solid #c8e6c8;
  color: var(--color-success-text);
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
}
.btn-timer-start:hover { background: #ddf0dd; color: var(--color-success-text); }
.btn-timer-stop {
  background: var(--color-danger-bg);
  border: 1px solid #f5c0bc;
  color: var(--color-danger-text);
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
}
.btn-timer-stop:hover { background: #fbdad6; color: var(--color-danger-text); }

.chrono-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-active-bg);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  letter-spacing: .03em;
}

.timer-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 7px;
}

/* Botones de timer */
.btn-timer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: none;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.btn-timer i { font-size: 15px; }

.btn-timer-start {
  background: #1a3a5c;
  color: #fff;
}
.btn-timer-start:hover { background: #122843; }

.btn-timer-stop {
  background: #c0392b;
  color: #fff;
}
.btn-timer-stop:hover { background: #992d22; }

/* Cronómetro */
.cronometro {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: #eef7ee;
  border: 1px solid #b5ddb5;
  border-radius: 5px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  font-weight: 700;
  color: #2d6a2d;
  letter-spacing: 1px;
}
.chrono-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-danger);
  animation: chrono-blink 1s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes chrono-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .15; }
}

/* ================================================================
   Login
   ================================================================ */
.login-wrapper {
  min-height: 100vh;
  display: flex; flex-direction:column;
  align-items:center; justify-content:center;
  background: var(--color-bg);
  padding: 20px;
}
.login-card {
  background:#fff; border-radius:10px;
  border: 1px solid var(--color-border);
  padding:36px; width:100%; max-width:400px;
  box-shadow: var(--shadow);
  position: relative;
}
.login-logo {
  width:34px; height:34px; border-radius:8px;
  background:var(--color-accent); color:#fff;
  font-weight:800; font-size:17px;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 14px;
}
.login-title { text-align:center; font-weight:600; font-size:17px; color: var(--color-primary); margin-bottom:5px; }
.login-sub { text-align:center; color:var(--color-muted-light); font-size:13px; margin-bottom:24px; }
.login-card .form-label { font-size:12px; color:#555; font-weight:500; }
.login-card .form-control {
  font-size:13px; border:1px solid var(--color-border); border-radius: var(--radius-sm);
  padding:10px 12px;
}
.login-card .form-control:focus { border-color: var(--color-primary); box-shadow:none; }
.login-card .btn-primary { padding:11px; font-weight:500; }

.flash-stack { margin-bottom:12px; }

/* ================================================================
   Botones y badges globales
   ================================================================ */
.btn-primary {
  background: var(--color-primary); border-color: var(--color-primary);
  border-radius: var(--radius-sm); font-size:13px; font-weight:500;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary-dark); border-color: var(--color-primary-dark);
}
.btn-outline-secondary {
  border-color: var(--color-border); color: var(--color-muted);
  border-radius: var(--radius-sm); font-size:12px;
}
.btn-outline-secondary:hover {
  background: #f5f5f5; border-color: var(--color-border); color: var(--color-muted);
}

.alert-success { background: var(--color-success-bg); border-color:#c8e6c8; color: var(--color-success-text); }
.alert-danger  { background: var(--color-danger-bg);  border-color:#f5c0bc; color: var(--color-danger-text); }
.alert-warning { background: var(--color-warning-bg); border-color:#f5dfa8; color: var(--color-warning-text); }
.alert { border-radius: var(--radius-sm); font-size:13px; }

/* ================================================================
   Scrollbar global
   ================================================================ */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:#f1f1f1; }
::-webkit-scrollbar-thumb { background:#ccc; border-radius:6px; }
::-webkit-scrollbar-thumb:hover { background:#aaa; }
