:root {
  --primary-color: #2F855A;      /* Verde oscuro y elegante */
  --primary-hover: #276749;
  --secondary-color: #F6E05E;    /* Toque de pelota de tenis */
  --bg-color: #F7FAFC;
  --text-main: #2D3748;
  --card-bg: #FFFFFF;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Typography and Contrast for seniors */
h1, h2, h3, h4 {
  font-weight: 700;
  color: #1A202C;
}

/* Modern minimalist cards */
.auth-card {
  max-width: 450px;
  margin: 50px auto;
  padding: 40px;
  border-radius: 16px;
  background-color: var(--card-bg);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.dashboard-card {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}
@media (max-width: 767.98px) {
  .dashboard-actions .action-card {
    padding: 16px 12px !important;
    min-height: 185px;
  }
  .dashboard-actions .action-icon {
    font-size: 2.1rem;
    margin-bottom: 8px !important;
  }
  .dashboard-actions h3 {
    font-size: 1.05rem;
    line-height: 1.15;
    margin-bottom: 12px !important;
  }
  .dashboard-actions .action-description {
    display: none;
  }
  .dashboard-actions .btn {
    font-size: 0.95rem !important;
    padding: 10px 8px !important;
    line-height: 1.15;
  }
}

/* Big accessible inputs and buttons */
.form-control, .form-select {
  padding: 12px 16px;
  font-size: 1.1rem;
  border-radius: 8px;
  border: 1px solid #CBD5E0;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(47, 133, 90, 0.25);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-size: 1.2rem;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* Navigation */
.navbar-custom {
  background-color: var(--card-bg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.navbar-custom .btn {
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  line-height: 1.4;
}
.navbar-brand {
  font-weight: 800;
  color: var(--primary-color) !important;
  font-size: 1.5rem;
}

/* Timetable / Schedule View */
.schedule-container {
  overflow-x: auto;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.schedule-day-title {
  color: #FFFFFF;
}

.court-col {
  min-width: 200px;
}
.booking-slot {
  background-color: #E2E8F0;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  border-left: 5px solid #A0AEC0;
}
.booking-slot.booked {
  background-color: #C6F6D5;
  border-left-color: var(--primary-color);
  color: #22543D;
}
.booking-slot.blocked {
  background-color: #FED7D7;
  border-left-color: #C53030;
  color: #742A2A;
}
.booking-cancel-card {
  border-bottom: 1px solid #E2E8F0;
  padding: 14px 0;
}
.booking-cancel-card:first-child {
  padding-top: 0;
}
.booking-cancel-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.slot-btn-unavailable,
.slot-btn-unavailable:disabled {
  color: #718096;
  background-color: #EDF2F7;
  border: 1px solid #CBD5E0;
  box-shadow: inset 0 0 0 999px rgba(160, 174, 192, 0.12);
  cursor: not-allowed;
  opacity: 1;
  text-decoration: line-through;
}

.alert-custom {
  border-radius: 10px;
  font-size: 1.1rem;
}
.modal-action-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.modal-action-footer::before,
.modal-action-footer::after {
  display: none;
}
.modal-action-footer .btn {
  flex: 0 0 210px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 12px;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}
.modal-action-footer .btn:first-child {
  margin-right: auto;
}
.modal-action-footer .btn:last-child {
  margin-left: auto;
}
@media (max-width: 420px) {
  .modal-action-footer .btn {
    flex-basis: calc(50% - 6px);
    font-size: 0.95rem;
    padding-left: 10px;
    padding-right: 10px;
  }
}

.notification-actions .btn {
  min-height: 56px;
  padding: 12px 20px;
  font-size: 1.1rem;
  font-weight: 600;
}
.notification-ranges .form-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-left: 0;
}
.notification-ranges .form-check-input {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
}

/* Efecto de fondo de pantalla para inicio de sesión */
.login-body {
  position: relative;
  min-height: 100vh;
}

.login-body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/capicua.jpg') center/cover no-repeat;
  opacity: 0.15; /* Marca de agua difuminada y brillante */
  z-index: -1;
  pointer-events: none;
}
