:root {
  --primary-color: #0d2d5e;
  --secondary-color: #1a4d8c;
  --accent-color: #4facfe;
  --bg-color: #f4f6f9;
  --text-color: #333;
}

body {
  background-color: var(--bg-color);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-color);
  /* Use padding instead of margin to create scrollable space inside the body */
  padding-bottom: 150px;
  margin-bottom: 0;
  /* Ensure space for footer if it was fixed, just in case */
}


.footer {
  background-color: var(--bg-color);
  position: static !important;
  /* Force it to flow normally */
  margin-top: 50px;
  width: 100%;
  z-index: 1;
  /* Low z-index just in case */
}

.navbar {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand,
.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
}

.nav-link:hover {
  color: #fff !important;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: #fff;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--primary-color);
  font-weight: 700;
}

/* List group customization */
.list-group-item {
  border: none;
  border-bottom: 1px solid #eee;
  padding: 1rem;
}

.list-group-item:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.list-group-item:last-child {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  border-bottom: none;
}

/* Asistencia UI */
.as-row {
  padding: 8px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  background: #fff;
}

.as-row:hover {
  background: #f9fbff;
}

.as-photo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.as-photo-empty {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ddd;
}

.as-head {
  display: flex;
  font-weight: bold;
  background: #eef2f7;
  padding: 10px;
  border-radius: 8px 8px 0 0;
}

.as-head>div,
.as-row>div {
  padding: 0 5px;
}

/* Columnas Grid Asistencia */
.as-photo {
  width: 50px;
}

.as-name {
  flex: 1;
  font-weight: 600;
}

.as-chk {
  width: 40px;
  text-align: center;
}

.as-mot {
  width: 140px;
}

.estado {
  transform: scale(1.3);
  cursor: pointer;
}

.pagado {
  transform: scale(1.3);
  cursor: pointer;
  accent-color: #198754;
}

@media (max-width: 576px) {
  .as-mot {
    display: none;
  }

  /* Ocultar motivo en movil si no entra */
}

/* Vibrant Tabs */
/* Vibrant Tabs High Contrast */
.nav-tabs .nav-link {
  color: #555;
  /* Darker gray for inactive */
  font-weight: 700;
  border: 1px solid transparent;
  background: #0d4f91;
  /* Light gray background for inactive */
  margin-right: 2px;
}

.nav-tabs .nav-link:hover {
  color: #000;
  background: #dce1e6;
  border-bottom: 3px solid #ccc;
}

.nav-tabs .nav-link.active {
  color: #fff !important;
  /* White text */
  background: var(--primary-color) !important;
  /* Dark Blue bg */
  border-color: var(--primary-color);
  border-bottom: none;
}

.nav-pills .nav-link {
  color: #0d6efd;
  font-weight: 600;
}

.nav-pills .nav-link.active {
  background-color: #0d6efd;
  color: white;
}

/* Vertical Headers for Dashboard */
.th-vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  height: 140px;
  padding: 5px;
  vertical-align: bottom;
}