/**
 * @file
 * Public styles for NSIA Space Booking module.
 */

/* Page Header */
.space-booking-public .page-header,
.my-bookings-page .page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.space-booking-public .page-header h1,
.my-bookings-page .page-header h1 {
  margin-bottom: 0.5rem;
  color: #1a5f2a;
}

.space-booking-public .lead {
  font-size: 1.125rem;
  color: #666;
}

/* Spaces Grid */
.spaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.space-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.space-card .space-image {
  height: 200px;
  overflow: hidden;
}

.space-card .space-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.space-card .space-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a5f2a, #2d8f3c);
  color: #fff;
}

.space-card .space-image.placeholder .icon {
  font-size: 4rem;
}

.space-card .space-content {
  padding: 1.5rem;
}

.space-card .space-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  color: #333;
}

.space-card .space-type {
  color: #1a5f2a;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.space-card .space-details {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.space-card .space-details .detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #666;
}

.space-card .space-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.space-card .amenity-tag {
  background: #f0f7f1;
  color: #1a5f2a;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
}

.space-card .amenity-tag.more {
  background: #e9ecef;
  color: #666;
}

.space-card .space-description {
  color: #666;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.space-card .space-actions {
  text-align: center;
}

.space-card .space-auth-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 14px;
}

.space-card .space-auth-prompt .auth-label {
  color: #666;
}

.space-card .space-auth-prompt .auth-link {
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.space-card .space-auth-prompt .auth-link--login {
  color: #1a5f2a;
}

.space-card .space-auth-prompt .auth-link--login:hover {
  color: #0d3d18;
  text-decoration: underline;
}

.space-card .space-auth-prompt .auth-link--register {
  color: #e94560;
}

.space-card .space-auth-prompt .auth-link--register:hover {
  color: #d63851;
  text-decoration: underline;
}

.space-card .space-auth-prompt .auth-separator {
  color: #999;
}

/* Auth Required Card (Space View) */
.auth-required-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-top: 16px;
}

.auth-required-card .auth-message {
  color: #495057;
  font-size: 15px;
  margin: 0 0 16px 0;
  font-weight: 500;
}

.auth-required-card .auth-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.auth-required-card .auth-buttons .button {
  flex: 1;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.auth-required-card .auth-buttons .button--primary {
  background: #1a5f2a;
  color: #fff;
  border: none;
}

.auth-required-card .auth-buttons .button--primary:hover {
  background: #0d3d18;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 95, 42, 0.3);
}

.auth-required-card .auth-buttons .button--secondary {
  background: #fff;
  color: #1a5f2a;
  border: 2px solid #1a5f2a;
}

.auth-required-card .auth-buttons .button--secondary:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
}

/* Space View (Public) */
.space-view-public .back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: #1a5f2a;
  text-decoration: none;
}

.space-view-public .back-link:hover {
  text-decoration: underline;
}

.space-view-public h1 {
  margin-bottom: 2rem;
  color: #1a5f2a;
}

.space-view-public .space-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

@media (max-width: 768px) {
  .space-view-public .space-content-wrapper {
    grid-template-columns: 1fr;
  }
}

.space-view-public .space-gallery {
  margin-bottom: 2rem;
}

.space-view-public .gallery-main img {
  width: 100%;
  border-radius: 12px;
  max-height: 400px;
  object-fit: cover;
}

.space-view-public .gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.space-view-public .gallery-thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.space-view-public .gallery-thumbs img:hover {
  opacity: 1;
}

.space-view-public .space-description,
.space-view-public .space-amenities-section,
.space-view-public .space-rules {
  margin-bottom: 2rem;
}

.space-view-public h2 {
  color: #333;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1a5f2a;
}

.space-view-public .amenities-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.space-view-public .amenities-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.space-view-public .amenities-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1a5f2a;
  font-weight: bold;
}

/* Pricing Card */
.pricing-card,
.availability-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.pricing-card h3,
.availability-card h3 {
  margin: 0 0 1rem 0;
  color: #333;
}

.pricing-card .price-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.pricing-card .price-item:last-of-type {
  border-bottom: none;
}

.pricing-card .price-label {
  color: #666;
}

.pricing-card .price-value {
  font-weight: 700;
  color: #1a5f2a;
  font-size: 1.25rem;
}

.pricing-card .price-item.deposit .price-value {
  color: #666;
  font-size: 1rem;
}

.pricing-card .capacity-info {
  margin: 1rem 0;
  padding: 0.75rem;
  background: #f0f7f1;
  border-radius: 8px;
  text-align: center;
  color: #666;
}

.pricing-card .unavailable-notice {
  padding: 1rem;
  background: #fff3cd;
  border-radius: 8px;
  color: #856404;
  text-align: center;
}

.availability-card .note {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.availability-card .bookings-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.availability-card .bookings-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.875rem;
}

.availability-card .bookings-list li:last-child {
  border-bottom: none;
}

.availability-card .date {
  font-weight: 600;
}

/* My Bookings */
.my-bookings-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.booking-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 1fr 200px auto;
  gap: 1.5rem;
  align-items: start;
  border-left: 4px solid #ccc;
}

.booking-card.status-pending { border-left-color: #f0ad4e; }
.booking-card.status-approved { border-left-color: #5cb85c; }
.booking-card.status-rejected { border-left-color: #d9534f; }
.booking-card.status-paid { border-left-color: #0275d8; }
.booking-card.status-completed { border-left-color: #5bc0de; }

.booking-card .booking-status {
  grid-column: 1 / -1;
}

.booking-card .booking-title {
  margin: 0 0 0.25rem 0;
  color: #333;
}

.booking-card .booking-space {
  color: #1a5f2a;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.booking-card .booking-datetime {
  margin-bottom: 0.5rem;
}

.booking-card .booking-datetime .date {
  font-weight: 600;
  display: block;
}

.booking-card .booking-datetime .time {
  color: #666;
  font-size: 0.875rem;
}

.booking-card .booking-type .label {
  color: #666;
  font-size: 0.875rem;
}

.booking-card .booking-pricing {
  text-align: right;
}

.booking-card .total-price {
  margin-bottom: 0.75rem;
}

.booking-card .total-price .label {
  display: block;
  font-size: 0.75rem;
  color: #666;
}

.booking-card .total-price .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a5f2a;
}

.booking-card .payment-status,
.booking-card .deposit-status {
  font-size: 0.875rem;
  color: #666;
}

.booking-card .booking-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  justify-content: center;
}

.booking-card .pending-notice,
.booking-card .rejected-notice {
  font-size: 0.875rem;
  color: #666;
  font-style: italic;
}

/* Empty State */
.no-bookings .empty-state,
.no-spaces {
  text-align: center;
  padding: 4rem 2rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.empty-state .icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.empty-state h3 {
  margin: 0 0 0.5rem 0;
  color: #333;
}

.empty-state p {
  color: #666;
  margin-bottom: 1.5rem;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
}

.button--primary {
  background: #1a5f2a;
  color: #fff;
}

.button--primary:hover {
  background: #145021;
  transform: translateY(-2px);
}

.button--full {
  display: block;
  width: 100%;
  text-align: center;
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.status-pending { background: #fff3cd; color: #856404; }
.status-badge.status-approved { background: #d4edda; color: #155724; }
.status-badge.status-rejected { background: #f8d7da; color: #721c24; }
.status-badge.status-cancelled { background: #e2e3e5; color: #383d41; }
.status-badge.status-completed { background: #cce5ff; color: #004085; }
.status-badge.status-paid { background: #d1e7dd; color: #0f5132; }

@media (max-width: 768px) {
  .booking-card {
    grid-template-columns: 1fr;
  }

  .booking-card .booking-pricing {
    text-align: left;
  }

  .booking-card .booking-actions {
    align-items: flex-start;
  }
}

/* ================================
   Booking Details Page
   ================================ */
.booking-details-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.booking-details-page .page-header {
  margin-bottom: 2rem;
}

.booking-details-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #1B9C85;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.booking-details-page .back-link:hover {
  color: #158a73;
  text-decoration: underline;
}

.booking-details-page .page-header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1E293B;
}

/* Booking Detail Card */
.booking-detail-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.booking-detail-card .booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #1B9C85 0%, #158a73 100%);
  color: #ffffff;
}

.booking-detail-card .booking-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.booking-detail-card .booking-header .status-badge {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.booking-detail-card .booking-header .status-badge.status-paid {
  background: rgba(255, 255, 255, 0.95);
  color: #0f5132;
}

.booking-detail-card .booking-header .status-badge.status-pending {
  background: #FEF3C7;
  color: #92400E;
}

.booking-detail-card .booking-header .status-badge.status-approved {
  background: #D1FAE5;
  color: #065F46;
}

.booking-detail-card .booking-header .status-badge.status-rejected {
  background: #FEE2E2;
  color: #991B1B;
}

/* Booking Sections */
.booking-detail-card .booking-sections {
  padding: 0;
}

.booking-detail-card .section {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #E2E8F0;
}

.booking-detail-card .section:last-child {
  border-bottom: none;
}

.booking-detail-card .section h3 {
  margin: 0 0 1.25rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.booking-detail-card .section h3::before {
  content: '';
  width: 4px;
  height: 20px;
  background: #1B9C85;
  border-radius: 2px;
}

/* Info List */
.booking-detail-card .info-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  margin: 0;
}

.booking-detail-card .info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.booking-detail-card .info-item.full-width {
  grid-column: 1 / -1;
}

.booking-detail-card .info-item dt {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.booking-detail-card .info-item dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #1E293B;
}

/* Pricing Section */
.booking-detail-card .pricing-section {
  background: #F8FAFC;
}

.booking-detail-card .price-breakdown {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 0;
  border: 1px solid #E2E8F0;
}

.booking-detail-card .price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #F1F5F9;
}

.booking-detail-card .price-item:last-child {
  border-bottom: none;
}

.booking-detail-card .price-item dt {
  color: #64748B;
  font-size: 0.9375rem;
  font-weight: 500;
}

.booking-detail-card .price-item dd {
  margin: 0;
  color: #1E293B;
  font-size: 1rem;
  font-weight: 600;
}

.booking-detail-card .price-item.subtotal {
  border-top: 1px dashed #CBD5E1;
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.booking-detail-card .price-item.deposit dt {
  color: #1B9C85;
}

.booking-detail-card .price-item.deposit dd {
  color: #1B9C85;
}

.booking-detail-card .price-item.total {
  border-top: 2px solid #1B9C85;
  margin-top: 0.75rem;
  padding-top: 1rem;
  background: linear-gradient(135deg, rgba(27, 156, 133, 0.05) 0%, rgba(27, 156, 133, 0.1) 100%);
  margin: 0.75rem -1.25rem 0;
  padding: 1rem 1.25rem;
  border-radius: 0 0 12px 12px;
}

.booking-detail-card .price-item.total dt {
  font-size: 1rem;
  font-weight: 700;
  color: #1E293B;
}

.booking-detail-card .price-item.total dd {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1B9C85;
}

/* Payment Status Display */
.booking-detail-card .payment-status-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}

.booking-detail-card .payment-status-display .label {
  font-size: 0.9375rem;
  color: #64748B;
  font-weight: 500;
}

.booking-detail-card .payment-status-display .value {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.booking-detail-card .payment-status-display .value.status-paid {
  background: #D1FAE5;
  color: #065F46;
}

.booking-detail-card .payment-status-display .value.status-pending {
  background: #FEF3C7;
  color: #92400E;
}

/* Fee Waived Notice */
.booking-detail-card .fee-waived-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
  border-radius: 12px;
  color: #065F46;
  font-weight: 600;
  font-size: 1rem;
}

.booking-detail-card .fee-waived-notice .icon {
  font-size: 1.5rem;
}

/* Payment Required Section */
.booking-detail-card .payment-required-section {
  margin-top: 1.5rem;
  text-align: center;
}

.booking-detail-card .payment-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #FEF3C7;
  border-radius: 12px;
  border: 1px solid #FCD34D;
  margin-bottom: 1.25rem;
  text-align: left;
}

.booking-detail-card .payment-notice .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.booking-detail-card .payment-notice p {
  margin: 0;
  color: #92400E;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.booking-detail-card .pay-now-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1B9C85 0%, #158a73 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(27, 156, 133, 0.4);
}

.booking-detail-card .pay-now-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 156, 133, 0.5);
  background: linear-gradient(135deg, #158a73 0%, #127a65 100%);
}

.booking-detail-card .payment-secure-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: #64748B;
}

.booking-detail-card .payment-secure-notice .lock-icon {
  font-size: 1rem;
}

/* Booking Confirmed Notice */
.booking-detail-card .booking-confirmed-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
  border-radius: 12px;
  margin-top: 1.25rem;
}

.booking-detail-card .booking-confirmed-notice .icon {
  font-size: 2rem;
  color: #065F46;
}

.booking-detail-card .booking-confirmed-notice p {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #065F46;
}

/* Status Section (Pending/Rejected) */
.booking-detail-card .status-section {
  padding: 0;
}

.booking-detail-card .pending-notice,
.booking-detail-card .rejected-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  gap: 0.75rem;
}

.booking-detail-card .pending-notice {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

.booking-detail-card .rejected-notice {
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
}

.booking-detail-card .pending-notice .icon,
.booking-detail-card .rejected-notice .icon {
  font-size: 2.5rem;
}

.booking-detail-card .pending-notice h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #92400E;
}

.booking-detail-card .rejected-notice h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #991B1B;
}

.booking-detail-card .pending-notice p {
  margin: 0;
  color: #92400E;
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 500px;
}

.booking-detail-card .rejected-notice p {
  margin: 0;
  color: #991B1B;
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 500px;
}

/* Booking Meta */
.booking-detail-card .booking-meta {
  padding: 1rem 2rem;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
}

.booking-detail-card .booking-meta p {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748B;
}

/* Responsive */
@media (max-width: 640px) {
  .booking-details-page {
    padding: 1rem;
  }

  .booking-detail-card .booking-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }

  .booking-detail-card .booking-title {
    font-size: 1.25rem;
  }

  .booking-detail-card .section {
    padding: 1.25rem 1.5rem;
  }

  .booking-detail-card .info-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .booking-detail-card .price-item.total {
    margin: 0.75rem -1rem 0;
    padding: 1rem;
  }

  .booking-detail-card .pay-now-button {
    width: 100%;
    padding: 1rem 1.5rem;
  }

  .booking-detail-card .booking-meta {
    padding: 1rem 1.5rem;
  }
}

/* ================================
   Availability Checker
   ================================ */
.availability-checker {
  background: linear-gradient(135deg, #f0f7f1 0%, #e8f5e9 100%);
  border: 2px solid #1a5f2a;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.availability-checker legend {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a5f2a;
  padding: 0 0.5rem;
}

.availability-checker .form-item {
  margin-bottom: 1rem;
}

.availability-checker .availability-date-input {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  max-width: 300px;
}

.availability-checker #check-availability-btn {
  background: #1a5f2a;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-left: 0.5rem;
}

.availability-checker #check-availability-btn:hover {
  background: #145021;
  transform: translateY(-2px);
}

/* Availability Result Container */
.availability-result {
  margin-top: 1.5rem;
  min-height: 100px;
}

.availability-placeholder {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}

.availability-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 1rem;
}

.availability-loading .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top-color: #1a5f2a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.availability-error {
  color: #dc3545;
  padding: 1rem;
  background: #f8d7da;
  border-radius: 8px;
  text-align: center;
}

/* Availability Results */
.availability-results {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.availability-date-header {
  margin: 0 0 1.25rem 0;
  font-size: 1.125rem;
  color: #333;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #1a5f2a;
}

.booked-slots,
.available-slots {
  margin-bottom: 1.5rem;
}

.booked-slots:last-child,
.available-slots:last-child {
  margin-bottom: 0;
}

.booked-slots h5,
.available-slots h5 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem 0;
  font-size: 0.9375rem;
  color: #333;
}

.status-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.status-icon.booked {
  background: #dc3545;
}

.status-icon.available {
  background: #28a745;
}

.slot-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.slot-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: background 0.2s;
}

.slot-item:last-child {
  margin-bottom: 0;
}

/* Booked slot styles */
.booked-list .slot-item {
  background: #fff5f5;
  border: 1px solid #fed7d7;
}

.booked-list .slot-item.status-pending {
  background: #fffbeb;
  border-color: #fcd34d;
}

.booked-list .slot-item.status-confirmed {
  background: #fff5f5;
  border-color: #fecaca;
}

.slot-time {
  font-weight: 600;
  color: #333;
  min-width: 150px;
}

.slot-type {
  color: #666;
  font-size: 0.875rem;
}

.slot-status {
  font-size: 0.75rem;
  color: #f59e0b;
  font-style: italic;
}

/* Available slot styles */
.available-list .slot-item {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.available-list .slot-item:hover {
  background: #dcfce7;
}

.available-list .slot-item.selected {
  background: #bbf7d0;
  border-color: #22c55e;
}

.slot-duration {
  color: #666;
  font-size: 0.875rem;
}

.btn-select-slot {
  margin-left: auto;
  background: #1a5f2a;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-select-slot:hover {
  background: #145021;
}

.btn-select-slot.btn-selected {
  background: #22c55e;
}

/* Fully Available / Fully Booked States */
.fully-available,
.fully-booked {
  text-align: center;
  padding: 2rem;
}

.fully-available {
  background: #f0fdf4;
  border-radius: 8px;
}

.fully-available .status-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.fully-available p {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #166534;
}

.fully-booked {
  background: #fef2f2;
  border-radius: 8px;
}

.fully-booked .status-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.fully-booked p {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #991b1b;
}

.availability-note {
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  color: #666 !important;
}

/* Responsive */
@media (max-width: 640px) {
  .availability-checker {
    padding: 1rem;
  }

  .availability-checker .availability-date-input {
    max-width: 100%;
  }

  .availability-checker #check-availability-btn {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
  }

  .slot-item {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .slot-time {
    min-width: 100%;
  }

  .btn-select-slot {
    margin-left: 0;
    width: 100%;
    margin-top: 0.5rem;
  }
}
