/* PVE Court Reservations - Custom Styles */

:root {
  /* Color scheme - using ParaVolley blue tones */
  --primary-color: #0056b3;
  --primary-dark: #004494;
  --primary-light: #3a7abd;
  --secondary-color: #e63946;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --gray-color: #6c757d;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
}

body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  background-color: #f5f8fa;
  color: #333;
  line-height: 1.6;
}

/* Container styling */
.container {
  padding: 20px;
  background-color: white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Header styling */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

/* Button styling */
.btn {
  border-radius: 4px;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-danger {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

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

/* For backward compatibility with any remaining btn-block classes */
.btn-block {
  width: 100%;
}

/* Bootstrap 5 uses w-100 instead of btn-block */
.btn.w-100 {
  width: 100%;
}

/* Table styling */
.table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  text-align: center;
}

.table td, .table th {
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 86, 179, 0.05);
}

/* Card styling */
.card {
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  border: none;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Alert styling */
.alert {
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: none;
}

.alert-info {
  background-color: rgba(23, 162, 184, 0.1);
  color: var(--info-color);
  border-left: 4px solid var(--info-color);
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--danger-color);
  border-left: 4px solid var(--danger-color);
}

/* Form styling */
.form-control {
  border-radius: 4px;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

/* Login form styling */
.login-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Footer styling */
.footer {
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
  background-color: white;
  border-top: 1px solid #e0e0e0;
}

.footer img {
  max-width: 200px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer img:hover {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .btn {
    padding: 0.4rem 1rem;
  }

  .table td, .table th {
    padding: 8px 10px;
  }

  /* Mobile tooltip adjustments */
  .tooltip {
    position: fixed !important;
    margin-top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
  }

  .tooltip-inner {
    max-width: 180px;
    font-size: 0.85rem;
    white-space: normal;
    word-wrap: break-word;
  }

  .tooltip.bs-tooltip-bottom .tooltip-arrow {
    left: 50% !important;
    margin-left: -5px;
  }
}


/* Day buttons styling */
.btn-secondary, .btn-danger {
  margin: 5px;
  font-weight: 500;
}

/* Collapsible content styling */
.collapse {
  margin-top: 1rem;
}

.btn-link {
  color: var(--primary-color);
  font-weight: 500;
}

.btn-link:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Logo styling */
.logo-img {
  max-width: 350px;
  margin: 1.5rem auto;
  display: block;
  filter: invert(1);
}

/* Regulations container */
.regulations-container {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* Section heading styling */
.section-heading {
  margin: 2rem 0 1rem;
  position: relative;
  text-align: center;
}

.section-heading h3 {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  margin: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Day buttons container */
.day-buttons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 2rem;
}

/* Ensure day buttons take up 1/3 of the container */
.day-buttons-container .btn {
  flex: 0 0 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
}

/* Court card styling */
.courts-container {
  margin-top: 20px;
}

.court-card {
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  height: 760px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: center;
}

.court-header {
  border-bottom: 2px solid rgba(255,255,255,0.3);
  margin-bottom: 15px;
  padding: 15px 10px;
}

.court-header h4 {
  font-weight: 600;
  color: #333;
  text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
  margin: 0;
}

.court-schedule {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px;
  flex-grow: 1;
}

/* Responsive adjustments for courts */
@media (max-width: 768px) {
  .court-card {
    margin-bottom: 15px;
  }

  .court-header {
    padding: 10px;
    margin-bottom: 10px;
  }

  .court-header h4 {
    font-size: 1.2rem;
  }

  .court-schedule {
    padding: 8px;
  }
}

/* Tooltip styling */
.tooltip {
  z-index: 1070;
  pointer-events: none;
  display: block;
}

.tooltip-inner {
  max-width: 200px;
  padding: 0.25rem 0.5rem;
  text-align: center;
  border-radius: 0.25rem;
  background-color: #000;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
