html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-family: 'Outfit', sans-serif;
}

/* --- custom theme overrides matching mockup screenshot --- */
/* dark header for tables and nav */
.table thead,
.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-brand {
  background: linear-gradient(#1e1674,#283ebd),#291e65 !important;
  color: #ffffff !important;
}

.navbar-dark {
  background: linear-gradient(#1e1674,#283ebd),#291e65 !important;
}

/* tab headers and inactive tabs */
.card-header.bg-dark,
.nav-tabs .nav-link:not(.active) {
  background: linear-gradient(#1e1674,#283ebd),#291e65 !important;
  color: #ffffff !important;
  border-color: transparent;
}

.table thead th {
  color: #ffffff;
}

/* striped rows with subtle grey */
.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f5f5f5;
}

/* action buttons colors similar to screenshot */
.btn-primary {
  background-color: #258cfb;
  border-color: #258cfb;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #1d75d1;
  border-color: #1d75d1;
}

.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
}

.btn-danger:hover,
.btn-danger:focus {
  background-color: #c82333;
  border-color: #c82333;
}

/* badge styles used in schedule view */
.badge-oficial {
  background-color: #28a745;
  color: #fff;
}
.badge-reclamacion {
  background-color: #dc3545;
  color: #fff;
}

/* list view tables: match competition-compact font (Outfit 14px) */
.table {
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
}

/* utility tweaks for better spacing on schedules */
.table-responsive {
  margin-top: 1rem;
}

/* ensure links in table cells stand out */
.table td a.btn {
  margin-right: 0.25rem;
}

/* override bootstrap focus outlines to match primary color */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* custom utilities for layout and sizing */
.min-vh-80 {
  min-height: 80vh;
}

.card-fixed-width {
  max-width: 24rem;
}

.max-h-500 {
  max-height: 500px;
}

/* custom login page overrides, moved from inline <style> */
.login-background {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.login-card {
  border: none;
  background: white;
}

.form-control-lg.custom {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-control-lg.custom:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  outline: none;
}

.btn-lg.custom {
  border-radius: 8px;
  font-weight: 600;
  padding: 12px 24px;
  transition: all 0.3s;
}

/* card hover effect for dashboards (optional, still small custom) */
.card-hover {
  transition: all 0.3s ease;
  border-radius: 10px;
}

/* home page hero gradient */
.hero-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 10px;
}

/* utility classes migrated from views */
.cursor-pointer {
  cursor: pointer;
}

.btn-block {
  width: 100%;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* badge adjustments */
.badge-success.custom {
  background-color: #28a745 !important;
  padding: 5px 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* dashboard interactive elements */
.btn-sm.custom {
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-success.custom:hover {
  background-color: #218838;
  transform: scale(1.05);
}

.btn-outline-danger.custom:hover {
  background-color: #dc3545;
  color: white;
}

/* icon spacing */
i {
  margin-right: 5px;
}

/* border-success utility if needed */
.border-success {
  border-color: #28a745 !important;
}

/* keep text color for headings */
.text-primary-custom {
  color: #667eea;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}