/* Component-specific styles */
.mix-card {
  background: rgba(26, 155, 142, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.mix-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 255, 255, 0.2);
}

.service-card {
  background: rgba(255, 140, 66, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid #374151;
  border-radius: 0.5rem;
  color: white;
  transition: border-color 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00ffff;
}

/* Style selects same as inputs */
.contact-form select {
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid #374151;
  border-radius: 0.5rem;
  color: white; /* Selected value text visible */
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease;
  width: 100%;
}
.contact-form select:focus {
  outline: none;
  border-color: #00ffff;
}
/* Dropdown list options */
.contact-form select option {
  color: #111;           /* Black text */
  background: #f3f4f6;   /* Light grey background */
}

/* Lighten the clock/time picker icon */
.contact-form input[type="time"]::-webkit-calendar-picker-indicator {
  filter: brightness(1.8) saturate(0.8) contrast(0.9);
  opacity: 0.9;
}

/* Improve placeholder legibility */
.contact-form ::placeholder {
  color: rgba(255,255,255,0.65);
}

.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
}

.glow-effect {
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.25), 0 0 40px rgba(0, 255, 255, 0.15);
}

.hero-bg {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(0, 255, 200, 0.15), transparent 60%),
              radial-gradient(900px 500px at 10% 0%, rgba(255, 150, 0, 0.12), transparent 50%),
              linear-gradient(180deg, rgba(4, 64, 68, 0.75), rgba(4, 64, 68, 0.4));
  border-radius: 24px;
}

/* Teal/Orange/Cyan helper colors (fallbacks for Tailwind-like classes) */
.bg-teal-custom\/20 { background: rgba(13, 148, 136, .2); }
.bg-teal-dark\/40   { background: rgba(4, 64, 68, .40); }
.bg-teal-dark\/50   { background: rgba(4, 64, 68, .50); }
.bg-orange-warm\/20 { background: rgba(255, 150, 0, .20); }
.bg-orange-warm\/30 { background: rgba(255, 150, 0, .30); }
.bg-orange-warm\/40 { background: rgba(255, 150, 0, .40); }
.bg-cyan-bright\/10 { background: rgba(0, 255, 255, .10); }
.bg-cyan-bright\/20 { background: rgba(0, 255, 255, .20); }
.bg-cyan-bright\/30 { background: rgba(0, 255, 255, .30); }
.bg-gray-850        { background: #0e2e30; }

.text-cyan-bright { color: #28f0f0; }

/* Basic utility replicas */
.text-white\/60 { color: rgba(255,255,255,.6); }
.text-white\/70 { color: rgba(255,255,255,.7); }
.text-white\/80 { color: rgba(255,255,255,.8); }
.rounded-2xl { border-radius: 1rem; }
.rounded-xl  { border-radius: .75rem; }

/* Updates: two-line card layout */
.update-item { 
  display: grid; 
  grid-template-rows: auto auto; 
  row-gap: 0.75rem;
}
.update-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.update-head h3 { margin: 0; }
.update-item p  { margin: 0; }

/* NEW: From/To labels next to time inputs */
.time-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin: 0 0.25rem;
}

.badge-unpaid-pod {
  background-color: #fef3c7; /* pale amber */
  color: #92400e;           /* dark amber text */
}

/* ============================
   Workshops / Stalls Cards
   (guideline-*)
   ============================ */

.guidelines-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.guideline-card {
  width: 100%;
  max-width: 360px;
  flex: 1 1 300px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.guideline-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.10);
}

.guideline-header {
  color: #fff;
  padding: 12px 16px;
}

.guideline-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.guideline-image {
  width: 100%;
  overflow: hidden;
  background: #f6f6f6;
}

.guideline-image img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.guideline-content {
  padding: 14px 16px 16px;
  color: var(--brown);
  font-size: 0.95rem;
}

.guideline-content p {
  margin: 0 0 8px;
  line-height: 1.5;
}

.guideline-content strong {
  font-weight: 700;
}

.book-a-class-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.book-a-class-btn {
  cursor: pointer;
}

/* ============================
   Book / Info Buttons (shared)
   ============================ */

.book-a-class-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.book-a-class-btn {
  flex: 1 1 auto;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  text-align: center;
}

.book-a-class-btn.primary {
  background-color: var(--teal);
  color: #fff;
}

.book-a-class-btn.primary:hover {
  background-color: #0f7c77;
}

.book-a-class-btn.secondary {
  background-color: var(--yellow);
  color: var(--brown);
}

.book-a-class-btn.secondary:hover {
  background-color: #e6b800;
}

/* ============================
   Camping booking: day boxes
   (expects markup:
    <form class="camping-booking-form">
      <label class="radio-box day-box">
        <input type="checkbox" name="selected_days[]" value="friday">
        <span class="day-content">
          <span class="day-name">Friday</span>
          <span class="day-date">26 Sep</span>
        </span>
      </label>
   )
   ============================ */

.camping-booking-form .radio-box.day-box {
  display: inline-block;
  margin: 0 10px 10px 0;
  cursor: pointer;
  /* keep the visual styling on .day-content so we can toggle via input:checked + .day-content */
}

.camping-booking-form .radio-box.day-box input[type="checkbox"] {
  /* Visually hide but preserve accessibility */
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  border: 0;
}

/* The visible “chip” */
.camping-booking-form .radio-box.day-box .day-content {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 130px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  background: rgba(0,0,0,0.15);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease;
  user-select: none;
}

.camping-booking-form .radio-box.day-box:hover .day-content {
  border-color: rgba(255,255,255,0.5);
}

/* Text bits inside */
.camping-booking-form .radio-box.day-box .day-name {
  font-weight: 600;
  line-height: 1.1;
}

.camping-booking-form .radio-box.day-box .day-date {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Focus ring for keyboard users */
.camping-booking-form .radio-box.day-box input[type="checkbox"]:focus-visible + .day-content {
  outline: 2px solid var(--teal, #1a9b8e);
  outline-offset: 2px;
}

/* Checked state (fallback that works everywhere) */
.camping-booking-form .radio-box.day-box input[type="checkbox"]:checked + .day-content {
  background: rgba(26, 155, 142, 0.15); /* var(--teal) tint */
  border-color: var(--teal, #1a9b8e);
  box-shadow: 0 0 0 3px rgba(26, 155, 142, 0.15);
}

/* Progressive enhancement: style the LABEL when selected (browsers that support :has) */
@supports(selector(:has(*))) {
  .camping-booking-form .radio-box.day-box:has(input[type="checkbox"]:checked) .day-content {
    background: rgba(26, 155, 142, 0.15);
    border-color: var(--teal, #1a9b8e);
    box-shadow: 0 0 0 3px rgba(26, 155, 142, 0.15);
    transform: translateY(-1px);
  }
}

/* Optional: inline “availability” note if you include it in markup */
.camping-booking-form .radio-box.day-box .availability-indicator {
  margin-top: 6px;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ===== Booking day box: SOLD OUT state ===== */
/* Show "Sold out" text INSIDE the box when sold out.
   Trigger either by adding .sold-out to the LABEL,
   or by disabling the INPUT. */

/* 1) The text itself, hidden by default */
.camping-booking-form .radio-box.day-box .sold-out-label {
  display: none;
  margin-top: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* 2) When sold out, reveal the text (two triggers) */
.camping-booking-form .radio-box.day-box.sold-out .sold-out-label,
.camping-booking-form .radio-box.day-box input[type="checkbox"][disabled] + .day-content .sold-out-label {
  display: block;
}

/* 3) Visual treatment for the sold-out state */
.camping-booking-form .radio-box.day-box.sold-out .day-content,
.camping-booking-form .radio-box.day-box input[type="checkbox"][disabled] + .day-content {
  opacity: 0.85;
  cursor: not-allowed;
  border-style: dashed;
  background: rgba(0,0,0,0.12);
  box-shadow: none;
}

/* Prevent hover/select highlight on sold-out */
.camping-booking-form .radio-box.day-box.sold-out:hover .day-content,
.camping-booking-form .radio-box.day-box input[type="checkbox"][disabled] + .day-content:hover {
  border-color: rgba(255,255,255,0.25);
}

.camping-booking-form .radio-box.day-box.sold-out input[type="checkbox"]:checked + .day-content,
.camping-booking-form .radio-box.day-box input[type="checkbox"][disabled]:checked + .day-content {
  background: rgba(0,0,0,0.12);
  border-color: rgba(255,255,255,0.25);
  box-shadow: none;
  transform: none;
}

/* Block clicks on the disabled/sold-out option */
.camping-booking-form .radio-box.day-box.sold-out input[type="checkbox"] {
  pointer-events: none;
}


/* ==============================
   ADMIN — Reusable Components
   (moved from admin.css)
   ============================== */

/* Buttons (admin variants) */
.admin-btn {
  display: inline-flex; align-items: center;
  padding: 12px 20px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  transition: all 0.3s ease;
}
.admin-btn i { margin-right: 8px; }
.admin-btn.primary { background-color: var(--orange); color: #fff; }
.admin-btn.secondary { background-color: var(--yellow); color: var(--brown); }
.admin-btn.danger { background-color: #dc3545; color: #fff; }
.admin-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.admin-btn.primary:hover { background-color: var(--brown); }
.admin-btn.secondary:hover { background-color: var(--teal); color: #fff; }
.admin-btn.danger:hover { background-color: #c82333; transform: translateY(-2px); }

/* Link wrappers */
.stat-card-link { text-decoration: none; color: inherit; display: block; }
.stat-card-link .stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Contact link micro-anim */
.contact-link { color: inherit; text-decoration: none; display: inline-block; position: relative; }
.contact-link:hover { color: var(--teal); }
.contact-link:after {
  content: ""; position: absolute; width: 100%; height: 1px; bottom: -2px; left: 0;
  background-color: var(--teal); transform: scaleX(0); transform-origin: bottom right; transition: transform 0.3s ease;
}
.contact-link:hover:after { transform: scaleX(1); transform-origin: bottom left; }

/* Tables */
.admin-table-container { overflow-x: auto; margin-bottom: 30px; }
.admin-table {
  width: 100%; border-collapse: collapse; background-color: #fff;
  border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.admin-table th {
  background-color: var(--teal); color: #fff; padding: 15px; text-align: left; font-weight: 600;
}
.admin-table td { padding: 15px; border-bottom: 1px solid #eee; color: #555; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background-color: #f8f9fa; }
.admin-table .action-cell { display: flex; gap: 10px; }

.table-action-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; color: #fff; text-decoration: none; transition: all 0.3s ease;
}
.table-action-btn.view { background-color: var(--teal); }
.table-action-btn.edit { background-color: var(--yellow); color: var(--brown); }
.table-action-btn.delete { background-color: #dc3545; }
.table-action-btn:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(0,0,0,0.2); }

/* Forms */
.admin-form-container {
  background-color: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}
.admin-form-title {
  color: var(--brown); margin-bottom: 25px; font-size: 1.4rem; display: flex; align-items: center;
}
.admin-form-title i { margin-right: 10px; color: var(--orange); }

.admin-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.admin-form-group { margin-bottom: 20px; }
.admin-form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--brown); }

.admin-form-input, .admin-form-select, .admin-form-textarea {
  width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; transition: border-color 0.3s ease;
}
.admin-form-textarea { min-height: 150px; resize: vertical; }
.admin-form-input:focus, .admin-form-select:focus, .admin-form-textarea:focus { border-color: var(--teal); outline: none; }

.admin-form-actions { grid-column: 1 / -1; display: flex; gap: 15px; margin-top: 20px; }
.admin-form-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 25px; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: all 0.3s ease; border: none;
}
.admin-form-btn.primary { background-color: var(--orange); color: #fff; }
.admin-form-btn.secondary { background-color: #f8f9fa; color: var(--brown); border: 1px solid #ddd; }
.admin-form-btn i { margin-right: 8px; }
.admin-form-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.admin-form-btn.primary:hover { background-color: var(--brown); }
.admin-form-btn.secondary:hover { background-color: #eee; }

/* Pagination */
.admin-pagination { display: flex; justify-content: center; margin-top: 30px; }
.admin-pagination-item {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 8px; margin: 0 5px; text-decoration: none; font-weight: 600;
  color: var(--brown); background-color: #fff; transition: all 0.3s ease;
}
.admin-pagination-item.active { background-color: var(--teal); color: #fff; }
.admin-pagination-item:hover:not(.active) { background-color: var(--yellow); color: var(--brown); }

/* Filters as pills */
.admin-filters { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-filter-btn {
  padding: 8px 16px; background-color: #f8f9fa; color: var(--brown);
  border: 1px solid #ddd; border-radius: 20px; text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: all 0.3s ease;
}
.admin-filter-btn.active, .admin-filter-btn:hover {
  background-color: var(--teal); color: #fff; border-color: var(--teal);
}

/* Alerts (re-usable) */
.admin-alert {
  padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; display: flex; align-items: center;
}
.admin-alert i { margin-right: 10px; font-size: 1.2rem; }
.admin-alert.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.admin-alert.error   { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.admin-alert.warning { background-color: #fff3cd; color: #856404; border: 1px solid #ffeaa7; }
.admin-alert.info    { background-color: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* Badges (global, can be used outside admin if you wish) */
.status-badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; line-height: 1;
}
.status-badge.pending     { background-color: #fff3cd; color: #856404; }
.status-badge.paid,
.status-badge.confirmed   { background-color: #d4edda; color: #155724; }
.status-badge.overdue,
.status-badge.rejected    { background-color: #f8d7da; color: #721c24; }
.status-badge.cancelled   { background-color: #e2e3e5; color: #6c757d; }
.status-badge.inactive    { background-color: #f8d7da; color: #721c24; }
.status-badge.active      { background-color: #d4edda; color: #155724; }
.status-badge.admin       { background-color: #e7f3ff; color: #0066cc; }
.status-badge.user        { background-color: #f0f0f0; color: #666; }
.status-badge.beginner    { background-color: #d4edda; color: #155724; }
.status-badge.intermediate{ background-color: #fff3cd; color: #856404; }
.status-badge.advanced    { background-color: #f8d7da; color: #721c24; }
.status-badge.electricity { background-color: #cce5ff; color: #004085; }
.status-badge.no-electricity { background-color: #f8f9fa; color: #6c757d; }

/* Payment badges */
.payment-badge {
  padding: 4px 8px; border-radius: 12px; font-size: 0.8rem; font-weight: 600;
}
.payment-badge.paid   { background-color: #d4edda; color: #155724; }
.payment-badge.unpaid { background-color: #f8d7da; color: #721c24; }

/* Priority badges */
.priority-badge {
  display: inline-block; padding: 2px 6px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
}
.priority-badge.urgent  { background-color: #dc3545; color: #fff; }
.priority-badge.high    { background-color: #fd7e14; color: #fff; }
.priority-badge.medium  { background-color: #ffc107; color: #212529; }
.priority-badge.low     { background-color: #28a745; color: #fff; }

/* NOTE: Modal styles are pending wrapper confirmation to avoid clashes. */


/* =========================================
   ADMIN — Modal (scoped to admin pages)
   (added without changing any existing rules)
   ========================================= */

.admin-section .modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.5);
  animation: fadeIn .3s ease;
}

.admin-section .modal-content {
  background-color: #fff;
  margin: 10% auto;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: slideIn .3s ease;
}

.admin-section .modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f9fa;
  border-radius: 12px 12px 0 0;
}

.admin-section .modal-header h3 {
  margin: 0;
  color: var(--brown);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.admin-section .modal-header h3 i {
  margin-right: 10px;
  color: #dc3545;
}

.admin-section .modal-close {
  color: #999;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}
.admin-section .modal-close:hover { color: #333; }

.admin-section .modal-body {
  padding: 25px;
}
.admin-section .modal-body p {
  margin: 0 0 15px 0;
  color: #555;
  line-height: 1.5;
}

.admin-section .warning-text {
  color: #dc3545;
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-section .modal-footer {
  padding: 20px 25px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  background-color: #f8f9fa;
  border-radius: 0 0 12px 12px;
}

/* Optional: button variant for modal danger actions (admin scope) */
.admin-section .admin-btn.danger {
  background-color: #dc3545;
  color: #fff;
}
.admin-section .admin-btn.danger:hover {
  background-color: #c82333;
  transform: translateY(-2px);
}

/* Keyframes (added here to ensure they exist) */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Responsive adjustments for admin modal */
@media (max-width: 768px) {
  .admin-section .modal-content {
    margin: 20% auto;
    width: 95%;
  }
  .admin-section .modal-footer {
    flex-direction: column;
  }
}
/* =========================================================
   ERROR / SUCCESS CONTAINERS (moved from style.css)
   ========================================================= */
.error-container {
  background-color: #fff5f5; border: 1px solid #fed7d7; border-radius: 8px;
  padding: 15px 20px; margin-bottom: 30px; color: #e53e3e;
}
.error-message h3 {
  display: flex; align-items: center; font-size: 1.1rem; margin-bottom: 10px; color: #e53e3e;
}
.error-message h3 i { margin-right: 10px; }
.error-message ul { margin-left: 30px; }
.error-message ul li { margin-bottom: 5px; }

.success-container {
  background-color: #f0fff4; border: 1px solid #9ae6b4; border-radius: 8px;
  padding: 15px 20px; margin-bottom: 30px; color: #22543d;
}
.success-message h3 {
  display: flex; align-items: center; font-size: 1.1rem; margin-bottom: 10px; color: #22543d;
}
.success-message h3 i { margin-right: 10px; color: #38a169; }
.success-message p { margin: 0; }
.success-message a { color: var(--teal); text-decoration: none; font-weight: 600; }
.success-message a:hover { text-decoration: underline; }
