/* ============ VG KIRCHEN (SIEG) - BÜRGERPORTAL STYLES ============ */

:root {
  --primary-green: #7AB51D;
  --primary-green-dark: #5a8f15;
  --primary-green-light: #9ed444;
  --accent-yellow: #F5C400;
  --accent-blue: #0072BC;
  --accent-blue-light: #e6f3fb;
  --text-dark: #1a1a1a;
  --text-medium: #4a4a4a;
  --text-light: #6a6a6a;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  min-height: 100vh;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============ HEADER ============ */
.header {
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-green) 70%, var(--accent-yellow) 100%);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--text-dark);
}

.header-nav {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}

.header-nav a {
  color: var(--text-medium);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
}

.header-nav a:hover {
  color: var(--primary-green);
  background: var(--bg-light);
}

.admin-link {
  margin-left: auto;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.admin-link:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

/* ============ LOGO ============ */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-small {
  transform: scale(0.85);
  transform-origin: left center;
}

.logo-icon {
  width: 50px;
  height: 40px;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.logo-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.logo-sieg {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-yellow);
  align-self: flex-end;
  margin-top: -0.25rem;
}

/* ============ MOBILE NAV ============ */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
}

.mobile-nav.open {
  visibility: visible;
  opacity: 1;
}

.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background: var(--bg-white);
  padding: 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav.open .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.mobile-nav-close svg {
  width: 24px;
  height: 24px;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: var(--transition);
}

.mobile-nav nav a:hover {
  background: var(--bg-light);
  color: var(--primary-green);
}

.mobile-nav nav a svg {
  width: 20px;
  height: 20px;
}

/* ============ HERO SECTION ============ */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 50%, #3d6b0d 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'%3E%3Cpath d='M0,400 Q200,350 400,400 T800,380 T1200,420 L1200,600 L0,600 Z' fill='%23ffffff' opacity='0.1'/%3E%3Cpath d='M0,450 Q300,400 600,450 T1200,430 L1200,600 L0,600 Z' fill='%23ffffff' opacity='0.15'/%3E%3C/svg%3E") bottom/cover no-repeat;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 3rem 1.5rem;
  color: white;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  opacity: 0.95;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn svg {
  width: 20px;
  height: 20px;
}

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

.btn-primary:hover {
  background: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--accent-yellow);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: #e6b800;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
}

.btn-outline:hover {
  background: var(--primary-green);
  color: white;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-icon {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--text-medium);
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--bg-light);
  color: var(--primary-green);
}

.btn-icon.danger:hover {
  background: #fee;
  color: #d32f2f;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

/* ============ FEATURES SECTION ============ */
.features {
  padding: 4rem 0;
  background: var(--bg-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

/* ============ PAGE HEADER ============ */
.page-header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: white;
  padding: 3rem 0;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.9;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  transition: var(--transition);
}

.back-link:hover {
  color: white;
}

.back-link svg {
  width: 18px;
  height: 18px;
}

/* ============ FACILITIES GRID ============ */
.facilities-page .container,
.courses-page .container {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.facility-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.facility-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.facility-image {
  height: 200px;
  background: var(--bg-light);
  overflow: hidden;
}

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

.facility-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-light) 0%, #e0e0e0 100%);
}

.facility-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--text-light);
}

.facility-placeholder.large {
  height: 300px;
}

.facility-placeholder.large svg {
  width: 64px;
  height: 64px;
}

.facility-content {
  padding: 1.5rem;
}

.facility-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.facility-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-bottom: 0.75rem;
}

.facility-location svg {
  width: 16px;
  height: 16px;
  color: var(--accent-blue);
}

.facility-desc {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.facility-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.facility-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.facility-meta svg {
  width: 16px;
  height: 16px;
}

/* ============ FACILITY DETAIL PAGE ============ */
.facility-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  padding: 2rem 0;
}

.facility-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.facility-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.facility-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.facility-info-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.facility-info-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-green);
}

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.amenity-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-light);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-medium);
}

.amenity-tag svg {
  width: 16px;
  height: 16px;
  color: var(--primary-green);
}

.documents-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.document-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

.document-link:hover {
  background: var(--accent-blue-light);
}

.document-link svg:first-child {
  width: 20px;
  height: 20px;
  color: var(--accent-blue);
}

.document-link svg:last-child {
  margin-left: auto;
  width: 18px;
  height: 18px;
  color: var(--text-light);
}

/* ============ BOOKING CARD SIDEBAR ============ */
.facility-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.booking-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.booking-card h3 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.booking-card h3:first-child {
  margin-top: 0;
}

.price-info {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.price-info > div {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.price-info > div:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.price-info strong {
  color: var(--primary-green);
  font-size: 1.1rem;
}

.booking-card p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.booking-card p svg {
  width: 18px;
  height: 18px;
  color: var(--text-light);
}

.selected-dates {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.selected-dates p {
  text-align: center;
  margin-bottom: 1rem;
}

/* ============ CALENDAR ============ */
.calendar {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-weight: 600;
}

.calendar-header button {
  background: none;
  border: none;
  padding: 0.35rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.calendar-header button:hover {
  background: var(--bg-white);
}

.calendar-header button svg {
  width: 20px;
  height: 20px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 0.5rem;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 0.35rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  border: none;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.calendar-day:hover:not(:disabled) {
  background: var(--primary-green-light);
  color: white;
}

.calendar-day.empty {
  background: transparent;
  cursor: default;
}

.calendar-day.booked {
  background: #ffebee;
  color: #d32f2f;
  cursor: not-allowed;
}

.calendar-day.selected {
  background: var(--primary-green);
  color: white;
}

.calendar-day.past {
  color: var(--text-light);
  opacity: 0.5;
  cursor: not-allowed;
}

.calendar-legend {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-medium);
}

.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-dot.available {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
}

.legend-dot.booked {
  background: #ffebee;
}

.legend-dot.selected {
  background: var(--primary-green);
}

/* ============ COURSES ============ */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border-color);
  background: var(--bg-white);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-medium);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.filter-btn.active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.course-category {
  display: inline-block;
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.course-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.course-image {
  height: 160px;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

.course-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.course-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.course-desc {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex: 1;
}

.course-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-medium);
}

.course-meta svg {
  width: 16px;
  height: 16px;
  color: var(--text-light);
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.course-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-green);
}

.course-spots {
  font-size: 0.875rem;
  color: var(--text-medium);
}

/* ============ COURSE DETAIL ============ */
.course-category-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.course-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  padding: 2rem 0;
}

.course-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.course-info-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.course-info-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-green);
}

.course-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.course-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.course-details-list > div {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.course-details-list svg {
  width: 20px;
  height: 20px;
  color: var(--primary-green);
  flex-shrink: 0;
  margin-top: 2px;
}

.course-details-list span {
  color: var(--text-medium);
  font-size: 0.875rem;
}

.course-details-list strong {
  display: block;
  color: var(--text-dark);
}

.availability-badge {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
}

.availability-badge .available {
  background: #e8f5e9;
  color: #2e7d32;
  display: block;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}

.availability-badge .full {
  background: #ffebee;
  color: #c62828;
  display: block;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 1rem;
}

.modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-large {
  max-width: 800px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: var(--bg-white);
  z-index: 1;
}

.modal-header h2 {
  font-size: 1.25rem;
}

.modal-header button {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-header button:hover {
  background: var(--bg-light);
}

.modal-header button svg {
  width: 24px;
  height: 24px;
}

/* ============ FORMS ============ */
.booking-form,
.admin-form {
  padding: 1.5rem;
}

.form-section {
  margin-bottom: 2rem;
}

.form-section h3 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group.flex-2 {
  grid-column: span 2;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-medium);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-green);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.tags-input {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--primary-green);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.tag button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: white;
  opacity: 0.8;
}

.tag button:hover {
  opacity: 1;
}

.tag button svg {
  width: 14px;
  height: 14px;
}

.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-light);
  color: var(--text-medium);
  cursor: pointer;
  transition: var(--transition);
}

.file-upload-btn:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.file-upload-btn input {
  display: none;
}

.file-upload-btn svg {
  width: 20px;
  height: 20px;
}

.file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.file-preview-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.file-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-preview-item button {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
}

.file-preview-item button svg {
  width: 14px;
  height: 14px;
}

.documents-preview {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.document-preview-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}

.document-preview-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent-blue);
}

.document-preview-item span {
  flex: 1;
  font-size: 0.875rem;
}

.document-preview-item button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
}

.document-preview-item button:hover {
  color: #d32f2f;
}

.uploading-indicator {
  text-align: center;
  padding: 1rem;
  color: var(--primary-green);
  font-weight: 500;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-green);
  cursor: pointer;
}

.checkbox-wrapper span {
  font-size: 0.9rem;
  color: var(--text-medium);
}

.input-readonly {
  background: var(--bg-light) !important;
  color: var(--text-medium) !important;
  cursor: not-allowed;
}

.booking-info-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-blue-light);
  padding: 1rem;
  border-radius: var(--radius-md);
  color: var(--accent-blue);
  font-size: 0.9rem;
}

.booking-info-box svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.error-message {
  background: #ffebee;
  color: #c62828;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 400;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast svg {
  width: 20px;
  height: 20px;
}

.toast button {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  opacity: 0.7;
}

.toast button:hover {
  opacity: 1;
}

.toast-success {
  background: #e8f5e9;
  color: #2e7d32;
}

.toast-error {
  background: #ffebee;
  color: #c62828;
}

/* ============ ADMIN PAGES ============ */
.admin-layout {
  background: var(--bg-light);
}

.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  padding: 1rem;
}

.login-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.login-card .logo {
  justify-content: center;
  margin-bottom: 2rem;
}

.login-card h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.login-hint {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

.admin-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.admin-page h1 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.admin-header h1 {
  margin-bottom: 0;
}

/* ============ STATS GRID ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.stat-card.highlight {
  background: linear-gradient(135deg, var(--accent-yellow) 0%, #e6b800 100%);
}

.stat-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card.highlight .stat-icon {
  background: rgba(255,255,255,0.3);
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary-green);
}

.stat-card.highlight .stat-icon svg {
  color: var(--text-dark);
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-medium);
}

.stat-card.highlight .stat-label {
  color: var(--text-dark);
  opacity: 0.8;
}

/* ============ DASHBOARD GRID ============ */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.dashboard-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.dashboard-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-green);
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}

.recent-item strong {
  display: block;
  font-size: 0.9rem;
}

.recent-item span {
  font-size: 0.75rem;
  color: var(--text-medium);
}

.empty-message {
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
}

/* ============ ADMIN TABLES ============ */
.admin-table-wrapper {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 1rem;
  background: var(--bg-light);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover {
  background: var(--bg-light);
}

.action-buttons {
  display: flex;
  gap: 0.25rem;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pending, .status-waitlist {
  background: #fff3e0;
  color: #e65100;
}

.status-confirmed, .status-active {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-cancelled, .status-completed {
  background: #fafafa;
  color: #757575;
}

.status-select {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
}

/* ============ TABS ============ */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.tab svg {
  width: 18px;
  height: 18px;
}

.tab:hover {
  color: var(--primary-green);
}

.tab.active {
  color: var(--primary-green);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-green);
}

/* ============ ADMIN LOGOUT ============ */
.admin-logout {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-medium);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.admin-logout:hover {
  border-color: #d32f2f;
  color: #d32f2f;
}

.admin-logout svg {
  width: 18px;
  height: 18px;
}

/* ============ FOOTER ============ */
.footer {
  margin-top: auto;
  background: #1a1a1a;
  color: white;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3rem 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-info .logo {
  margin-bottom: 1rem;
}

.footer-info .logo-main,
.footer-info .logo-sub {
  color: white;
}

.footer-info p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

.footer-contact h4,
.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--primary-green-light);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}

.footer-contact p svg {
  width: 16px;
  height: 16px;
  color: var(--primary-green-light);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-green-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

/* ============ LOADING ============ */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .facility-detail-grid,
  .course-detail-grid {
    grid-template-columns: 1fr;
  }

  .facility-sidebar,
  .course-sidebar {
    position: static;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .admin-link {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 50vh;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .facilities-grid,
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-group.flex-2 {
    grid-column: span 1;
  }

  .admin-table-wrapper {
    overflow-x: auto;
  }

  .admin-table {
    min-width: 700px;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .modal {
    margin: 0.5rem;
    max-height: 95vh;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .admin-logout {
    bottom: 1rem;
    left: 1rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-info .logo {
    justify-content: center;
  }

  .footer-contact p {
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .logo-small {
    transform: scale(0.75);
  }

  .booking-card {
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }

  .stat-value {
    font-size: 1.5rem;
  }
}

/* ============ ADDITIONAL STYLES V4 ============ */

/* Export Buttons */
.export-buttons {
  display: flex;
  gap: 0.25rem;
}

.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  color: var(--text-medium);
  cursor: pointer;
  transition: var(--transition);
}

.btn-export:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
}

.btn-export svg {
  width: 12px;
  height: 12px;
}

/* Permissions Checkboxes */
.permissions-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-green);
  cursor: pointer;
}

.checkbox-label span {
  font-size: 0.9rem;
  color: var(--text-medium);
}

.permissions-label {
  font-size: 0.8rem;
  color: var(--text-medium);
  background: var(--bg-light);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* Formatted Text Links */
.facility-info-card a,
.course-info-card a {
  color: var(--accent-blue);
  text-decoration: underline;
}

.facility-info-card a:hover,
.course-info-card a:hover {
  color: var(--primary-green);
}

/* Course Gallery */
.course-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.course-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Course Image in Cards */
.course-image {
  height: 160px;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

/* Formatted Text Links */
.formatted-text {
  line-height: 1.7;
}

.formatted-text a,
.desc-link {
  color: var(--accent-blue) !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  display: inline !important;
}

.formatted-text a:hover,
.desc-link:hover {
  color: var(--primary-green) !important;
  text-decoration: underline !important;
}

.facility-info-card .formatted-text,
.course-info-card .formatted-text {
  color: var(--text-medium);
}
