.reservation-container {
    background-color: white;
    max-width: 720px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    flex: 1
}

.reservation-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.reservation-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.reservation-input {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #fff;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reservation-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    outline: none;
}

.court-list {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    list-style: none;
    padding: 0;
}

.court-toggle {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #f9c73866;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}
.court-toggle:hover {
  background-color: #e5b926;
  transform: translateY(-1px);
}

.court-toggle.selected {
    background-color: #f9c738;
    color: #000; /* Optional: ensures text remains readable */
    font-weight: bold;
}

.date-filter-container {
  margin-top: 1rem;
  margin-bottom: 1rem;
    
}

.hidden {
    display: none;
}

.slot-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.slot-button {
    background-color: #e5e7eb;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.875rem;
    display: block;
    width: 125px;
}
.slot-wrap {
  display: flex;
  gap: 2rem;
}

.slot-column {
  flex: 1;
}

.day-column h4 {
  /* custom style for day */
  text-align: center;
}

.night-column h4 {
  /* custom style for night */
  text-align: center;
}
/* .slot-button:hover {
    background-color: #d1d5db;
}

.slot-button.selected {
    background-color: #5a7462;
    color: white;
    font-weight: 600;
} */

.slot-summary {
    background-color: #eff6ff;
    color: #1d4ed8;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.price-display {
    font-size: 1.125rem;
    font-weight: 600;
    color: #047857;
    text-align: right;
    margin-top: 1rem;
}

.reserve-button {
    width: 100%;
    background-color: #16a34a;
    color: white;
    padding: 0.75rem;
    font-size: 1.125rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
}

.reserve-button:hover {
    background-color: #15803d;
}


.login-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  background: white;
  padding: 2em;
  border-radius: 12px;
  z-index: 10000;
  width: 90%;
  max-width: 400px;
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.login-form label {
  display: block;
  margin-top: 1em;
  font-weight: bold;
}

.login-form input {
  width: 100%;
  padding: 0.7em;
  margin-top: 0.3em;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.login-btn {
  margin-top: 1.2em;
  width: 100%;
  padding: 0.75em;
  background-color: var(--accent-yellow);
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
}

.login-footer {
  margin-top: 1em;
  text-align: center;
  font-size: 0.9em;
}
.slot-button {
    margin: 4px;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.available-slot {
    background-color: #19782f;
    color: #fff;
}

.reserved-slot {
    background-color: #2c65e7;
    color: #fff;
    cursor: not-allowed;
}

.pending-slot {
    background-color: orange;
    color: #fff;
    cursor: not-allowed;
}

.disabled-slot {
    background-color: #e2e3e5;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.slot-button.selected {
    border: 2px solid #5a7462;
    background-color: #09e13b !important;
}

.invalid-slot-modal {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  inset: 0;
  z-index: 1000;
}
.invalid-slot-modal .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.invalid-slot-modal .modal-content {
  position: relative;
  background: #fff;
  padding: 20px;
  z-index: 1001;
  max-width: 400px;
  border-radius: 8px;
  text-align: center;
}
.invalid-slot-modal .close-button {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  cursor: pointer;
}
.reservation-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px; 
  margin: 2rem auto;  
  padding: 0 1rem;   
}

.reservation-sidebar {
  flex: 0 0 280px;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
  max-height: 600px;
  overflow-y: scroll;
}

.reservation-sidebar h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #111827;
  border-bottom: 2px solid #f9c738;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.reservation-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reservation-list li {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s ease;
}

.reservation-list li:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.reservation-list li strong {
  display: block;
  font-weight: 600;
  color: #111827;
}

.reservation-list li span {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
}

.reservation-list li .status {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

.status.confirmed {
  background: #16a34a;
  color: #fff;
}

.status.pending {
  background: #facc15;
  color: #000;
}

.status.cancelled {
  background: #ef4444;
  color: #fff;
}

.slot-summarynote{
    background-color: #eff6ff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 1rem;
    text-align: center;
    font-size: 15px;
    color: #ff0000;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .court-list {
        display: flex;
        flex-wrap: wrap;
    }
    .court-list li {
        flex: 1 0 22%; /* around 4 items per row */
        min-width: 90px;
    }
    /* .reservation-container{
        padding: 8px;
    } */

      .reservation-layout {
    flex-direction: column;
  }

  .reservation-sidebar {
    flex: none;
    width: 100%;
    margin-bottom: 1rem;
  }

  .reservation-list li {
    font-size: 1rem;
    padding: 1rem;
  }
}