/* ParkPro Theme - extending light theme */
[data-bs-theme="parkpro"] {
  /* Base theme colors */
  --bs-emphasis-color: var(--bs-dark);
  --bs-emphasis-color-rgb: var(--bs-dark-rgb);

  /* Theme colors with RGB values */
  --bs-primary: #2c5c99;
  --bs-primary-rgb: 44, 92, 153;
  --bs-primary-alt: #1f4170;
  
  --bs-secondary: #b31942;
  --bs-secondary-rgb: 179, 25, 66;
  --bs-secondary-alt: #8f142f;
  
  --bs-success: #4caf50;
  --bs-success-rgb: 76, 175, 80;
  
  --bs-info: #3a7ed6;
  --bs-info-rgb: 58, 126, 214;
  
  --bs-warning: #f57c00;
  --bs-warning-rgb: 245, 124, 0;
  
  --bs-danger: #b31942;
  --bs-danger-rgb: 179, 25, 66;
  
  --bs-light: #f8f9fa;
  --bs-light-rgb: 248, 249, 250;
  
  --bs-dark: #111828;
  --bs-dark-rgb: 17, 24, 40;

  /* Component variables */
  --bs-card-bg: var(--bs-white);
  --bs-card-border-color: rgba(var(--bs-primary-rgb), 0.175);
  --bs-card-cap-bg: var(--bs-primary);
  --bs-card-cap-color: var(--bs-light);
  --bs-card-color: var(--bs-dark);

  /* Alert variables */
  --bs-alert-bg: var(--bs-white);
  --bs-alert-border-color: var(--bs-primary);
  --bs-alert-color: var(--bs-primary);

  /* Badge variables */
  --bs-badge-color: var(--bs-light);
  --bs-badge-bg: var(--bs-primary);

  /* Breadcrumb variables */
  --bs-breadcrumb-item-active-color: var(--bs-primary);
  --bs-breadcrumb-divider-color: var(--bs-secondary);

  /* Dropdown variables */
  --bs-dropdown-bg: var(--bs-white);
  --bs-dropdown-border-color: var(--bs-primary);
  --bs-dropdown-link-hover-bg: var(--bs-primary);
  --bs-dropdown-link-hover-color: var(--bs-light);
  --bs-dropdown-link-active-bg: var(--bs-primary);
  --bs-dropdown-link-active-color: var(--bs-light);

  /* List group variables */
  --bs-list-group-active-bg: var(--bs-primary);
  --bs-list-group-active-border-color: var(--bs-primary);
  --bs-list-group-active-color: var(--bs-light);

  /* Nav variables */
  --bs-nav-link-color: var(--bs-primary);
  --bs-nav-link-hover-color: var(--bs-secondary);
  --bs-nav-pills-link-active-bg: var(--bs-primary);
  --bs-nav-pills-link-active-color: var(--bs-light);

  /* Pagination variables */
  --bs-pagination-active-bg: var(--bs-primary);
  --bs-pagination-active-border-color: var(--bs-primary);
  --bs-pagination-active-color: var(--bs-light);
  --bs-pagination-hover-color: var(--bs-primary);

  /* Progress variables */
  --bs-progress-bar-bg: var(--bs-primary);
  --bs-progress-bar-color: var(--bs-light);

  /* Form variables */
  --bs-input-bg: var(--bs-white);
  --bs-input-border-color: var(--bs-primary);
  --bs-input-color: var(--bs-dark);
  --bs-input-focus-border-color: var(--bs-primary);
  --bs-input-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
  --bs-form-check-input-checked-bg-color: var(--bs-primary);
  --bs-form-check-input-checked-border-color: var(--bs-primary);
  --bs-form-switch-bg: rgba(var(--bs-primary-rgb), 0.25);
  --bs-form-valid-border-color: var(--bs-success);
  --bs-form-invalid-border-color: var(--bs-danger);

  /* Modal variables */
  --bs-modal-bg: var(--bs-white);
  --bs-modal-border-color: var(--bs-primary);
  --bs-modal-header-border-color: rgba(var(--bs-primary-rgb), 0.175);
  --bs-modal-footer-border-color: rgba(var(--bs-primary-rgb), 0.175);

  /* Table variables */
  --bs-table-striped-bg: rgba(var(--bs-primary-rgb), 0.05);
  --bs-table-active-bg: rgba(var(--bs-primary-rgb), 0.1);
  --bs-table-hover-bg: rgba(var(--bs-primary-rgb), 0.075);

  /* Toast variables */
  --bs-toast-header-bg: rgba(var(--bs-primary-rgb), 0.1);
  --bs-toast-header-border-color: var(--bs-primary);

  /* Tooltip variables */
  --bs-tooltip-bg: var(--bs-primary);
  --bs-tooltip-color: var(--bs-light);
}

/* Custom component styles */
body {
  background-color: #0a3161;
  font-family: 'Oxanium', sans-serif;
  font-size: 1rem;
}



/* Responsive adjustments 
---------------------------------------- */

/* Custom container width at xxxl breakpoint (1800px) */
@media (min-width: 1800px) {
  .container-xxxl {
      max-width: 1760px;
  }
}
@media (max-width: 1199px) {  /* xl breakpoint - 1200px */
  .card-body.d-flex.flex-column {
      min-height: 500px;
  }
  #map_canvas {
      min-height: 500px;
  }
  #sidebar-section .card-body #stats-container {
    /* TODO: This is a temporary fix to get the stats container to display horizontally on xl breakpoint */
    display: flex; /* Ensure flexbox is applied */
    flex-direction: row; /* Switch to horizontal stacking */
    justify-content: space-around; /* Optional: space out the items */
  }
}
@media (max-width: 992px) { /* Adjust the breakpoint as needed */
}
@media (max-width: 767px) {  /* md breakpoint - 768px */
  .card-body.d-flex.flex-column {
      min-height: 400px;
  }
  #map_canvas {
      min-height: 400px;
  }
} 


/* Card styles */
.card {
  --bs-card-border-color: var(--bs-primary);
}

#sidebar-section .card-body {
  display: flex;
  flex-direction: column; /* Default to vertical stacking */
}

/* Type badge styles */
.badge.type-badge {
  padding: 5px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ParkPro P icon */
.parkpro-p {
  font-family: 'Oxanium', sans-serif;
  font-style: normal;
  font-size: 1rem;
  position: relative;
  margin-top: 3px;
}
.parkpro-p::before {
  content: 'P';
}

/* Button overrides - required for proper button styling */
.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-color: var(--bs-light);
  --bs-btn-hover-bg: var(--bs-primary-alt);
  --bs-btn-hover-border-color: var(--bs-primary-alt);
  --bs-btn-active-bg: var(--bs-primary-alt);
  --bs-btn-active-border-color: var(--bs-primary-alt);
}

.btn-secondary {
  --bs-btn-bg: var(--bs-secondary);
  --bs-btn-border-color: var(--bs-secondary);
  --bs-btn-color: var(--bs-light);
  --bs-btn-hover-bg: var(--bs-secondary-alt);
  --bs-btn-hover-border-color: var(--bs-secondary-alt);
  --bs-btn-active-bg: var(--bs-secondary-alt);
  --bs-btn-active-border-color: var(--bs-secondary-alt);
}

/* Table styles */
.table > :not(caption) > * > * {
  padding: 0.75rem 1rem;
}

/* Map styles */
#map {
  height: 600px;
  width: 100%;
  border-radius: 0.375rem;
}

/* DataTables styles */
.dataTables_wrapper {
  padding: 1rem 0;
}
.dt-container .row:first-child {
	padding-bottom: 0.25rem;
}