/* ── CSS Variables ────────────────────────────────────────────────────────── */
:root {
  --primary: #1e5631;
  --primary-dark: #163f24;
  --primary-light: #2a7342;
  --accent: #c9a227;
  --accent-dark: #a8841e;
  --secondary: #f0f7ee;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-muted: #6c757d;
  --border: #dee2e6;
  --shadow: rgba(0,0,0,0.1);
  --shadow-md: rgba(0,0,0,0.15);
  --shadow-lg: rgba(0,0,0,0.25);
  --transition: all 0.3s ease;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: #f8f9fa;
  margin: 0;
  padding: 0;
}

a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--accent); }

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
  background: var(--primary) !important;
  box-shadow: 0 2px 10px var(--shadow-md);
  padding: 0.6rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  color: var(--white) !important;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.navbar-brand .logo-emoji { font-size: 1.5rem; }

.navbar-brand:hover { color: var(--accent) !important; }

.navbar-toggler {
  border-color: rgba(255,255,255,0.4) !important;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  padding: 0.5rem 0.8rem !important;
  border-radius: 4px;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent) !important;
  background: rgba(255,255,255,0.08);
}

.navbar-nav .dropdown-menu {
  background: var(--primary-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px var(--shadow-lg);
  padding: 0.4rem;
  min-width: 200px;
}

.navbar-nav .dropdown-item {
  color: rgba(255,255,255,0.85) !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition);
}

.navbar-nav .dropdown-item:hover {
  background: rgba(201,162,39,0.2);
  color: var(--accent) !important;
}

.navbar-nav .dropdown-toggle::after {
  border-top-color: rgba(255,255,255,0.7);
}

/* ── Hero Section ────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #0d2818 100%);
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light), var(--accent));
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 4rem 2rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-accent-line {
  display: inline-block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,162,39,0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(4px);
}

/* ── Page Banner ─────────────────────────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent, var(--accent));
}

.page-banner h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0;
}

.page-banner .breadcrumb {
  background: none;
  padding: 0;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
.page-banner .breadcrumb-item.active { color: var(--accent); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow-md);
}

.card-header {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  border: none;
  padding: 1rem 1.5rem;
}

.card-header.accent { background: var(--accent); color: var(--primary-dark); }

/* ── Announcement Banner ─────────────────────────────────────────────────── */
.announcement-banner {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--primary-dark);
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(201,162,39,0.3);
}

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table-container {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--shadow);
  overflow: hidden;
}

.table-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  background: var(--white);
  border-bottom: 2px solid var(--secondary);
  gap: 1rem;
  flex-wrap: wrap;
}

.table-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.search-box {
  position: relative;
  min-width: 240px;
}

.search-box input {
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  transition: var(--transition);
  width: 100%;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,86,49,0.1);
}

.search-box::before {
  content: '🔍';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  pointer-events: none;
}

.table-responsive { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table thead tr {
  background: var(--primary);
  color: var(--white);
}

.data-table thead th {
  padding: 0.9rem 1rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  border: none;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--secondary);
  transition: background 0.15s;
}

.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:nth-child(even) { background: var(--secondary); }
.data-table tbody tr:hover { background: rgba(30,86,49,0.08) !important; }

.data-table tbody td {
  padding: 0.8rem 1rem;
  vertical-align: middle;
}

.table-section-header td {
  background: var(--accent) !important;
  color: #1a1a1a !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.6rem 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: 2px solid var(--primary);
}

.last-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.no-data-message {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}

.no-data-message .icon { font-size: 3rem; margin-bottom: 1rem; }

/* ── Section Headings ────────────────────────────────────────────────────── */
.section-heading {
  position: relative;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-heading.center { text-align: center; }
.section-heading.center::after { left: 50%; transform: translateX(-50%); }

/* ── Gallery ─────────────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 2px 8px var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

/* ── Testimonials ────────────────────────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px var(--shadow);
  transition: var(--transition);
  height: 100%;
  border-left: 4px solid var(--accent);
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-md);
}

.testimonial-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 0.75rem; letter-spacing: 2px; }
.testimonial-text { color: var(--text-dark); line-height: 1.7; margin-bottom: 1rem; font-style: italic; }
.testimonial-author { font-weight: 700; color: var(--primary); }
.testimonial-date { font-size: 0.8rem; color: var(--text-muted); }

/* ── Star Rating Widget ──────────────────────────────────────────────────── */
.star-rating {
  display: flex;
  gap: 0.25rem;
  flex-direction: row-reverse;
  justify-content: flex-end;
  margin: 0.5rem 0;
}

.star-rating input { display: none; }

.star-rating label {
  cursor: pointer;
  font-size: 2rem;
  color: #d0d0d0;
  transition: color 0.15s;
  line-height: 1;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: var(--accent);
}

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-label { font-weight: 600; color: var(--primary); margin-bottom: 0.4rem; }

.form-control, .form-select {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  transition: var(--transition);
  font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,86,49,0.1);
  outline: none;
}

.btn-primary-tennis {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary-tennis:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30,86,49,0.3);
}

.btn-accent {
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,162,39,0.4);
}

/* ── Document Display ────────────────────────────────────────────────────── */
.document-container {
  max-height: 70vh;
  overflow-y: auto;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  background: var(--white);
  box-shadow: inset 0 2px 8px var(--shadow);
  line-height: 1.8;
}

.document-container::-webkit-scrollbar { width: 8px; }
.document-container::-webkit-scrollbar-track { background: var(--secondary); border-radius: 4px; }
.document-container::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

.document-iframe {
  width: 100%;
  height: 600px;
  border: 2px solid var(--border);
  border-radius: 10px;
}

/* ── Playoff Schedule ────────────────────────────────────────────────────── */
.playoff-image-wrapper {
  text-align: center;
  padding: 2rem 0;
}

.playoff-image-wrapper img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 32px var(--shadow-md);
}

/* ── Contact Form ────────────────────────────────────────────────────────── */
.contact-section {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 2px 12px var(--shadow);
}

.contact-info-card {
  background: var(--secondary);
  border-radius: 12px;
  padding: 2rem;
  border-left: 4px solid var(--primary);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  background: #111;
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

footer h5 { color: var(--accent); font-weight: 700; margin-bottom: 1rem; }

footer a { color: rgba(255,255,255,0.7); transition: var(--transition); }
footer a:hover { color: var(--accent); }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white) !important;
  margin-bottom: 0.75rem;
}

.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 2rem 0 1rem;
}

.footer-bottom {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.text-primary-tennis { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary-tennis { background: var(--primary) !important; }
.bg-accent { background: var(--accent) !important; }
.bg-secondary-tennis { background: var(--secondary) !important; }

.section-padding { padding: 4rem 0; }

.badge-tennis {
  background: var(--primary);
  color: var(--white);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-accent {
  background: var(--accent);
  color: var(--primary-dark);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ── Alert / Toast ───────────────────────────────────────────────────────── */
.alert-tennis {
  border-radius: 10px;
  border: none;
  font-weight: 500;
  padding: 1rem 1.5rem;
}

.alert-success-tennis {
  background: rgba(30,86,49,0.1);
  color: var(--primary);
  border-left: 4px solid var(--primary);
}

.alert-error-tennis {
  background: rgba(220,53,69,0.1);
  color: #dc3545;
  border-left: 4px solid #dc3545;
}

/* ── Loading Spinner ─────────────────────────────────────────────────────── */
.spinner-border-tennis {
  color: var(--accent);
  width: 3rem;
  height: 3rem;
}

/* ── Download Button ─────────────────────────────────────────────── */
.btn-download {
  background: var(--accent);
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-download:hover { opacity: 0.85; }

/* ── Inline Table Editor ─────────────────────────────────────────────────── */
.edit-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.edit-table thead th { background: var(--primary); color: #fff; padding: 0; }
.edit-table thead th .edit-header { padding: 0.5rem 0.7rem; min-width: 60px; outline: none; }
.edit-table thead th .edit-header:focus { background: rgba(255,255,255,0.15); }
.edit-cell {
  min-width: 50px; min-height: 24px;
  padding: 0.35rem 0.5rem;
  outline: none;
  border-radius: 3px;
  transition: background 0.15s;
  white-space: pre-wrap; word-break: break-word;
}
.edit-cell:focus { background: #fff9e6; box-shadow: 0 0 0 2px var(--accent); }
.edit-table tbody tr { border-bottom: 1px solid #e0ede4; }
.edit-table tbody tr:nth-child(even) { background: #f8fdf9; }
.edit-table tbody tr:hover { background: #eef7f1; }
.edit-section-row td { background: var(--accent) !important; padding: 0; }
.edit-section-row .edit-section { color: #1a1a1a; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; }
.edit-del-btn { background: none; border: none; cursor: pointer; font-size: 1rem; opacity: 0.55; transition: opacity 0.15s; padding: 2px 6px; border-radius: 4px; }
.edit-del-btn:hover { opacity: 1; background: #fee2e2; }
.edit-toolbar { display: flex; gap: 0.75rem; padding: 0.9rem 1rem; border-top: 1px solid #e0ede4; flex-wrap: wrap; }
.edit-add-btn { background: #e8f4ec; color: var(--primary); border: 1.5px solid #c0ddc8; border-radius: 8px; padding: 0.4rem 0.9rem; font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: background 0.15s; }
.edit-add-btn:hover { background: #c8e6d0; }
.edit-save-btn { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 0.4rem 1.2rem; font-weight: 700; font-size: 0.88rem; cursor: pointer; margin-left: auto; transition: opacity 0.2s; }
.edit-save-btn:hover { opacity: 0.85; }
.edit-save-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Admin Styles ────────────────────────────────────────────────────────── */
.admin-header {
  background: var(--primary-dark);
  color: var(--white);
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header h1 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-header .site-name {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-nav a, .admin-nav button {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  transition: var(--transition);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  cursor: pointer;
}

.admin-nav a:hover, .admin-nav button:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.admin-content { padding: 2rem; max-width: 1200px; margin: 0 auto; }

.admin-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.admin-card-header {
  background: var(--secondary);
  border-bottom: 2px solid var(--border);
  padding: 1rem 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-card-body { padding: 1.5rem; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.dashboard-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-md);
  border-top-color: var(--accent);
  color: inherit;
}

.dashboard-card .card-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.dashboard-card .card-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.3rem; }
.dashboard-card .card-desc { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 1rem; }
.dashboard-card .card-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  transition: var(--transition);
}
.dashboard-card:hover .card-btn { background: var(--accent); color: var(--primary-dark); }

/* File upload area */
.upload-area {
  border: 2px dashed var(--primary);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--secondary);
}

.upload-area:hover, .upload-area.dragover {
  border-color: var(--accent);
  background: rgba(201,162,39,0.05);
}

.upload-area .upload-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.upload-area p { color: var(--text-muted); margin: 0.25rem 0; }
.upload-area .upload-hint { font-size: 0.83rem; }

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}
.admin-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 0.9rem; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--secondary); }

/* Status badges */
.badge-pending { background: #ffc107; color: #212529; }
.badge-approved { background: #198754; color: white; }
.badge-rejected { background: #dc3545; color: white; }
.status-badge { padding: 0.3rem 0.7rem; border-radius: 50px; font-size: 0.78rem; font-weight: 700; }

/* Admin login */
.login-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-logo { text-align: center; margin-bottom: 1.5rem; }
.login-logo .logo-emoji { font-size: 3.5rem; display: block; margin-bottom: 0.5rem; }
.login-logo h2 { color: var(--primary); font-weight: 800; font-size: 1.5rem; margin: 0; }
.login-logo p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* Tab navigation */
.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  gap: 0;
}

.tab-btn {
  padding: 0.7rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  font-size: 0.95rem;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

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

.tab-content-panel { display: none; }
.tab-content-panel.active { display: block; }

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast-msg {
  background: var(--white);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 20px var(--shadow-md);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease;
  min-width: 280px;
  max-width: 400px;
}

.toast-msg.success { border-left: 4px solid #198754; }
.toast-msg.error { border-left: 4px solid #dc3545; }
.toast-msg.info { border-left: 4px solid var(--primary); }

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

/* Preview image */
.image-preview {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 12px var(--shadow);
  margin-top: 1rem;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-content { padding: 2.5rem 1.5rem; }
  .section-padding { padding: 2.5rem 0; }
  .admin-content { padding: 1rem; }
  .admin-card-body { padding: 1rem; }
  .contact-section { padding: 1.5rem; }
  .table-header-row { flex-direction: column; align-items: flex-start; }
  .search-box { min-width: 100%; width: 100%; }
}

@media (max-width: 480px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive Fixes ─────────────────────────────────────────────── */

/* Navbar mobile */
@media (max-width: 991px) {
  .navbar-nav { padding: 1rem 0; }
  .navbar-nav .nav-link { padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .navbar-nav .nav-item:last-child .nav-link { border-bottom: none; }
  .dropdown-menu { background: rgba(255,255,255,0.05); border: none; padding-left: 1rem; }
  .dropdown-item { color: rgba(255,255,255,0.85) !important; }
  .dropdown-item:hover { background: rgba(255,255,255,0.1) !important; }
}

/* Hero section */
@media (max-width: 768px) {
  .hero-section { padding: 3rem 1rem; min-height: 250px; }
  .hero-section h1 { font-size: 1.8rem; }
  .hero-section p { font-size: 1rem; }
  .page-banner h1 { font-size: 1.5rem; }
  .section-padding { padding: 2rem 0; }
}

/* Tables */
@media (max-width: 768px) {
  .table-container { border-radius: 8px; padding: 0; }
  .table-header-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1rem; }
  .search-box input { width: 100%; }
  .data-table thead th, .data-table tbody td { padding: 0.5rem 0.6rem; font-size: 0.82rem; }
  .schedule-filters { flex-direction: column; align-items: stretch; }
  .schedule-filters select, .schedule-filters input { width: 100%; }
}

/* Cards */
@media (max-width: 576px) {
  .card { margin-bottom: 1rem; }
  .footer .row > div { text-align: center; }
  .footer-brand { justify-content: center; }
}

/* Admin pages */
@media (max-width: 768px) {
  .admin-header { flex-direction: column; gap: 0.75rem; text-align: center; }
  .admin-sidebar { width: 100%; }
  .admin-content { padding: 1rem; }
  .admin-card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .admin-card-grid { grid-template-columns: 1fr; }
  .match-cell { flex-wrap: wrap; }
}
