:root {
  --ink: #002949;
  --paper: white;
  --sky: #7abee6;
  --morning: #f5b027;
  --honey: #005d92;
  --night: #002949;
  --white: #ffffff;
}

/* ---------- Bootstrap overrides ---------- */

body {
  background-color: #f4f8fb;
  color: var(--ink);
}

.navbar {
  background-color: var(--ink) !important;
}

.navbar-brand,
.navbar-nav .nav-link {
  color: var(--white) !important;
}

.navbar-nav .nav-link:hover {
  color: var(--sky) !important;
}

.navbar-text {
  color: var(--sky) !important;
}

.btn-primary,
.btn-brand {
  background-color: var(--honey) !important;
  border-color: var(--honey) !important;
  color: var(--white) !important;
}

.btn-primary:hover,
.btn-brand:hover {
  background-color: var(--ink) !important;
  border-color: var(--ink) !important;
}

.btn-outline-primary {
  color: var(--honey) !important;
  border-color: var(--honey) !important;
}

.btn-outline-primary:hover {
  background-color: var(--honey) !important;
  color: var(--white) !important;
}

.btn-outline-secondary {
  color: var(--ink);
  border-color: #cbd5e1;
}

.btn-outline-secondary:hover {
  background-color: #e2e8f0;
  border-color: #cbd5e1;
  color: var(--ink);
}

.card {
  border-color: #e2e8f0;
}

.card-header {
  background-color: var(--ink);
  color: var(--white);
  border-bottom: none;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 0.2rem rgba(122, 190, 230, 0.35);
}

.page-item.active .page-link {
  background-color: var(--honey);
  border-color: var(--honey);
}

.page-link {
  color: var(--honey);
}

.page-link:hover {
  color: var(--ink);
}

.text-primary {
  color: var(--honey) !important;
}

.bg-primary {
  background-color: var(--honey) !important;
}

.text-secondary {
  color: #64748b !important;
}

.badge.bg-success {
  background-color: #0f766e !important;
}

.badge.bg-warning {
  background-color: var(--morning) !important;
  color: var(--ink) !important;
}

.badge.bg-secondary {
  background-color: #94a3b8 !important;
}

.alert-danger {
  background-color: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

footer {
  background-color: var(--sky) !important;
  color: var(--white) !important;
}

/* ---------- Utilidades del proyecto ---------- */

.form-header {
  background: linear-gradient(135deg, var(--honey) 0%, var(--ink) 100%);
  color: var(--white);
}

.required-mark {
  color: #dc2626;
}

.content-card {
  background-color: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.stat-card .number {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.stat-card .label {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
}

/* ---------- Sidebar ---------- */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background-color: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  z-index: 1030;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15);
}

.sidebar-brand {
  padding: 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-brand i {
  color: var(--sky);
}

.brand-icon {
  width: 1.4rem;
  height: 1.4rem;
  object-fit: contain;
}

.form-header-icon {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  vertical-align: middle;
  margin-bottom: 0.15rem;
}

.submit-icon {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
  vertical-align: middle;
}

.inscripcion-row {
  cursor: pointer;
}

.inscripcion-row:hover {
  background-color: rgba(0, 93, 146, 0.04);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
}

.sidebar-link:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.sidebar-link.active {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
  border-left-color: var(--sky);
}

.sidebar-link i {
  width: 22px;
  text-align: center;
  color: var(--sky);
}

.sidebar-link.active i,
.sidebar-link:hover i {
  color: var(--white);
}

.sidebar-footer {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--sky);
  font-size: 0.95rem;
}

.sidebar-user i {
  font-size: 1.1rem;
}

.sidebar-link.logout {
  color: rgba(255, 255, 255, 0.8);
}

.sidebar-link.logout:hover {
  color: #fca5a5;
  background-color: rgba(255, 255, 255, 0.06);
}

.main-with-sidebar {
  margin-left: 260px;
  max-width: calc(100% - 260px);
}

.footer-with-sidebar {
  margin-left: 260px;
}

@media (max-width: 991px) {
  .sidebar {
    width: 220px;
  }

  .main-with-sidebar,
  .footer-with-sidebar {
    margin-left: 220px;
    max-width: calc(100% - 220px);
  }
}
