/* Global styles for Only Grace Ministry */

:root {
  --primary-color: #4B0082;
  /* Dark Purple */
  --secondary-color: #FFD700;
  /* Gold */
  --accent-color: #FF69B4;
  /* Hot Pink for vibrancy */
  --text-color: #333;
  --bg-color: #F8F9FA;
  /* Light Gray */
  --footer-bg: #2D1B69;
  /* Darker Purple */
  --card-bg: #FFFFFF;
  --header-height: 96px;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

/* Use border-box everywhere to simplify sizing and centering */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body:not(.admin-body) header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  min-height: var(--header-height);
  padding: 1rem 2rem;
  /* restore padding so content isn't clipped */
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

body:not(.admin-body) header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

body:not(.admin-body) nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

body:not(.admin-body) nav ul li {
  margin-left: 1.5rem;
}

body:not(.admin-body) nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0.75rem;
  /* increase horizontal padding for click area */
  display: inline-block;
  line-height: 1;
  /* ensure vertical centering inside header */
}

body:not(.admin-body) nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

body:not(.admin-body) nav ul li a:hover::after {
  width: 100%;
}

body:not(.admin-body) nav ul li a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

body:not(.admin-body) main {
  margin-top: calc(var(--header-height) + 8px);
  min-height: calc(100vh - (var(--header-height) + 48px));
  padding-bottom: 2rem;
}


.hero {
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 800px;
  margin: 0 auto;
}

/* Slider styles for hero */
.hero-slider {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* Overlay to darken background for readability */
.hero-slider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-slider .slides {
  display: flex;
  height: 100%;
  width: 300%;
  /* Initial width, script.js will override this */
  transition: transform 0.6s ease;
}

.hero-slider .slide {
  flex: 0 0 auto;
  height: 100%;
  position: relative;
  width: 100%;
  /* Ensure slide is only as wide as the slider */
}

.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Back to cover for full view coverage */
  display: block;
}

.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  z-index: 2;
}

.slider-control.prev {
  left: 1rem;
}

.slider-control.next {
  right: 1rem;
}

/* Make sure hero content sits above slides */
.hero .hero-content {
  z-index: 3;
  position: relative;
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about img {
    width: 250px;
    height: 200px;
  }
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
  background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
  color: var(--text-color);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.about,
.events,
.contact {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  /* This removes margin-top implicitly, but let's be explicit if needed */
  animation: fadeInUp 1s ease-out;
}

.about {
  background-color: var(--card-bg);
  display: flex;
  align-items: center;
  gap: 3rem;
  border-radius: 20px;
  margin: 2rem auto;
  /* center the card horizontally */
  max-width: 1100px;
  /* constrain width for centered layout */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.about img {
  width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 0 20px 20px 0;
  transition: transform 0.3s ease;
}

.about img:hover {
  transform: scale(1.05);
}

.about div {
  flex: 1;
  padding: 1rem 2rem;
  /* Reduced padding from 2rem */
}

/* Teasers grid for landing page */
.teasers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  align-items: center;
}

.teaser {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.teaser img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* Section utilities for clear segmentation */
.section {
  padding: 4rem 2rem;
}

.section__container {
  max-width: 1200px;
  margin: 0 auto;
}

.section--alt {
  background: linear-gradient(180deg, rgba(245, 245, 250, 0.8), rgba(255, 255, 255, 0.6));
}

.section__divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02));
  margin: 2rem 0;
}

/* Section heading style */
.section__title {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.about h3 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.events {
  background: linear-gradient(135deg, var(--bg-color), #E8EAF6);
  border-radius: 20px;
  margin: 2rem auto;
  /* center horizontally */
  max-width: 1100px;
  /* constrain width like .about */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Support both h2/h3 in templates */
.events h2,
.events h3 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 0 2rem 2rem;
}

.event {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 5px solid var(--secondary-color);
}

.event:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.event h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.contact {
  background: linear-gradient(135deg, var(--primary-color), var(--footer-bg));
  color: white;
  text-align: center;
  border-radius: 20px;
  margin: 2rem auto;
  /* center */
  max-width: 900px;
  /* constrain width for better centering */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.contact p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  transition: box-shadow 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.5);
}

.contact button {
  background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
  color: var(--text-color);
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.contact button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

footer {
  background-color: var(--footer-bg);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

footer p {
  margin: 0;
  font-size: 1rem;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  nav ul {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    margin-left: 1rem;
    margin-bottom: 0.5rem;
  }

  .about {
    flex-direction: column;
    margin: 1rem;
  }

  .about img {
    width: 100%;
    height: 250px;
    border-radius: 20px 20px 0 0;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .event-list {
    grid-template-columns: 1fr;
    padding: 0 1rem 1rem;
  }
}

/* Booking styles */
.booking {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.seat-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 10px;
  margin: 2rem 0;
}

.seat {
  padding: 10px;
  border: 2px solid var(--primary-color);
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.seat:hover:not(.booked) {
  background-color: var(--accent-color);
}

.seat.selected {
  background-color: var(--primary-color);
  color: white;
}

.seat.booked {
  background-color: #ccc;
  cursor: not-allowed;
  color: #666;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.booking-form label {
  font-weight: 500;
}

.booking-form input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.booking-form button {
  padding: 0.75rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.booking-form button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.confirmation {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.booking-details {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.booking-details p {
  margin: 0.5rem 0;
  text-align: left;
}

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

.event-bookings {
  margin-bottom: 3rem;
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-bookings table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.event-bookings th,
.event-bookings td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.event-bookings th {
  background-color: var(--primary-color);
  color: white;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  border: 1px solid #f5c6cb;
}

/* Admin Dashboard Styles */
.dashboard-summary {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.summary-item {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.summary-item h3 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
}

.summary-item p {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  color: var(--secondary-color);
}

.dashboard-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Admin Seats Styles */
.admin ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.admin li {
  background-color: var(--card-bg);
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  display: inline-block;
  margin-right: 0.5rem;
}

.admin form {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.admin label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.admin input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.admin button[type="submit"] {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.admin button[type="submit"]:hover {
  background-color: #3a0066;
}

/* Delete Button Styles */
.event-bookings button[type="submit"] {
  background-color: #dc3545;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.event-bookings button[type="submit"]:hover {
  background-color: #c82333;
}

/* Admin Layout Structure - Definitive Overrides */
.admin-body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Inter', 'Roboto', sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  overflow: hidden;
}

.admin-body .admin-layout {
  display: flex !important;
  height: 100vh !important;
  width: 100vw !important;
  align-items: stretch !important;
}

.admin-body .admin-sidebar {
  width: 300px !important;
  min-width: 300px !important;
  background: #0f172a !important;
  /* Premium Slate/Navy */
  color: #94a3b8 !important;
  display: flex !important;
  flex-direction: column !important;
  flex-shrink: 0 !important;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05) !important;
  z-index: 1000 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.admin-sidebar-logo {
  height: 80px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

.admin-sidebar-logo h2 {
  margin: 0 !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -0.5px !important;
}

.admin-nav-container {
  padding: 1.5rem 0 !important;
  flex-grow: 1 !important;
  overflow-y: auto !important;
}

.admin-nav-category {
  padding: 1rem 2rem 0.5rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  color: #475569 !important;
  opacity: 0.8;
}

/* NAVIGATION LIST - FORCED VERTICAL */
.admin-nav-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 1rem 0 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

.admin-nav-item {
  width: 100% !important;
  position: relative;
}

.nav-link {
  display: flex !important;
  align-items: center !important;
  padding: 0.85rem 2rem !important;
  color: #94a3b8 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  gap: 1rem !important;
  width: 100% !important;
}

.nav-link svg {
  width: 20px !important;
  height: 20px !important;
  opacity: 0.6 !important;
  transition: all 0.2s ease !important;
}

.nav-link span {
  transition: transform 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #f8fafc !important;
}

.nav-link:hover span {
  transform: translateX(4px);
}

/* ACTIVE STATE - MATCHING IMAGE */
.nav-link.active {
  background: #fff !important;
  /* White background for active */
  color: #3b82f6 !important;
  /* Blue text */
  font-weight: 700 !important;
  border-radius: 0 50px 50px 0 !important;
  /* Rounded right edge style */
  margin-right: 1.5rem !important;
  /* Gap from right edge */
  width: calc(100% - 1.5rem) !important;
}

.nav-link.active svg {
  color: #3b82f6 !important;
  opacity: 1 !important;
}

/* SUB NAVIGATION */
.sub-nav-list {
  list-style: none !important;
  padding: 0.5rem 0 0.5rem 3.25rem !important;
  /* Indented for hierarchy */
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}

.sub-nav-link {
  display: block !important;
  color: #64748b !important;
  text-decoration: none !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
}

.sub-nav-link:hover,
.sub-nav-link.active {
  color: #3b82f6 !important;
}

.admin-sidebar-footer {
  padding: 1.5rem 2rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  background: rgba(0, 0, 0, 0.1) !important;
}

.logout-btn {
  width: 100% !important;
  padding: 0.75rem 1.25rem !important;
  background: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  font-size: 0.9rem !important;
  transition: all 0.2s ease !important;
  justify-content: center;
}

.logout-btn:hover {
  background: #ef4444 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ADMIN MAIN AREA */
.admin-main {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  height: 100vh !important;
  background: #f1f5f9 !important;
  position: relative !important;
}

.admin-header {
  height: 80px !important;
  background: #fff !important;
  padding: 0 2.5rem !important;
  display: flex !important;
  align-items: center !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.admin-content {
  flex: 1;
  padding: 3rem;
  overflow-y: auto;
}




/* Slides Management UX */
.upload-zone {
  border: 2px dashed rgba(75, 0, 130, 0.2);
  background: rgba(75, 0, 130, 0.02);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 2rem;
  position: relative;
}

.upload-zone:hover,
.upload-zone.dragging {
  border-color: var(--primary-color);
  background: rgba(75, 0, 130, 0.05);
  transform: translateY(-2px);
}

.upload-zone i,
.upload-zone .icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

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

.preview-item {
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

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

.slide-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.slide-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.slide-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

.slide-card-info {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slide-card-info .filename {
  font-size: 0.85rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.btn-delete-icon {
  background: #fff0f0;
  color: #dc3545;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-delete-icon:hover {
  background: #dc3545;
  color: white;
}

/* Glassmorphism for Admin Blocks */
.admin-block {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}




.admin-main {
  flex: 1;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  position: relative;
}

.admin-header {
  background: white;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-header h1 {
  margin: 0;
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 600;
}

.admin-content {
  padding: 2rem;
  flex: 1;
}

/* Dashboard Stats */

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 2rem;
  margin-right: 1rem;
}

.stat-content h3 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-content p {
  margin: 0.5rem 0 0 0;
  color: #6c757d;
  font-weight: 500;
}

/* Dashboard Actions */

.dashboard-actions {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-actions h3 {
  margin-top: 0;
  color: var(--primary-color);
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: #3a0066;
}

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

.btn-secondary:hover {
  background-color: #b8860b;
}

/* Recent Bookings */

.dashboard-recent {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-recent h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.recent-booking {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
}

.recent-booking:last-child {
  border-bottom: none;
}

.booking-info {
  flex: 1;
}

.booking-amount {
  font-weight: 600;
  color: var(--primary-color);
}

/* Events Table */

.dashboard-events {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-events h3 {
  margin-top: 0;
  color: var(--primary-color);
}

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

.events-table th,
.events-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.events-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: var(--primary-color);
}

.events-table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Login Page Styles */

.login-section {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 2rem;
}

.login-container {
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.login-card h2 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.login-card p {
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.login-form {
  display: flex;
  flex-direction: column;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-color);
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(75, 0, 130, 0.25);
}

.login-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.login-btn:hover {
  background-color: #3a0066;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  border: 1px solid #f5c6cb;
}

/* Admin Content Styles */

.admin-content {
  padding: 2rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h3 {
  margin: 0 0 1rem 0;
  color: var(--primary-color);
}

/* Events List */

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

.event-admin-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.event-info h3 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
}

.event-date,
.event-location {
  margin: 0.25rem 0;
  color: #6c757d;
}

.event-stats {
  display: flex;
  gap: 1.5rem;
}

.stat {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: #6c757d;
}

.stat-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.event-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
}

/* Seats Management */

.seats-management {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0, 2px 10px rgba(0, 0, 0, 0.1);
}

.seats-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.seat-item {
  background: var(--bg-color);
  padding: 0.5rem;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
}

.add-seats-form {
  max-width: 400px;
}

/* Event Form */

.event-form-container {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
}

.event-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-form .form-group {
  display: flex;
  flex-direction: column;
}

.event-form label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-color);
}

.event-form input {
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #fff;
}

.event-form input:hover {
  border-color: #adb5bd;
}

.event-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(75, 0, 130, 0.15);
  transform: translateY(-1px);
}

/* Bookings */

.bookings-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.event-bookings-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.event-bookings-card .event-header {
  border-bottom: 2px solid var(--bg-color);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.event-bookings-card .event-meta p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  color: #6c757d;
}

.event-bookings-card h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-bookings-card h4::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.event-header h3 {
  margin: 0;
  color: var(--primary-color);
}

.bookings-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.bookings-table th,
.bookings-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.bookings-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: var(--primary-color);
}

.event-total {
  text-align: right;
  font-size: 1.1rem;
  color: var(--primary-color);
}

/* Enhanced Booking Styles */

.booking-events {
  padding: 3rem 0;
  background-color: #f8f9fa;
}

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

.booking-events h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.booking-events>.container>p {
  text-align: center;
  color: #6c757d;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

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

.event-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-card.fully-booked {
  opacity: 0.7;
}

.event-card.no-seats {
  opacity: 0.7;
}

.event-header {
  margin-bottom: 1.5rem;
}

.event-header h3 {
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.event-date {
  color: var(--secondary-color);
  font-weight: 500;
  font-size: 1.1rem;
}

.event-details {
  margin-bottom: 1.5rem;
}

.event-time,
.event-location {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: #495057;
}

.event-time .icon-clock::before,
.event-location .icon-location::before {
  content: '🕒';
  margin-right: 0.5rem;
}

.event-location .icon-location::before {
  content: '📍';
}

.event-availability {
  text-align: center;
}

.availability-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  margin-bottom: 1rem;
}

.availability-badge.available {
  background-color: #d4edda;
  color: #155724;
}

.availability-badge.fully-booked {
  background-color: #f8d7da;
  color: #721c24;
}

.availability-badge.coming-soon {
  background-color: #fff3cd;
  color: #856404;
}

.book-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 2rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.book-btn:hover {
  background-color: #3a0066;
}

/* Booking Seats Styles */

.booking-seats {
  padding: 3rem 0;
  background-color: #f8f9fa;
}

.booking-seats .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.event-info {
  text-align: center;
  margin-bottom: 2rem;
}

.event-info h2 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.event-meta {
  color: #6c757d;
  font-size: 1.1rem;
}

.event-meta span:not(:last-child)::after {
  content: ' • ';
  margin: 0 0.5rem;
}

.seat-selection {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.seat-selection h3 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
}

.seat-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seat-sample {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.seat-sample.available {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

.seat-sample.booked {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}

.seat-sample.selected {
  background-color: var(--secondary-color);
  border: 1px solid #b8860b;
}

.seat-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.seat {
  width: 50px;
  height: 50px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  background-color: #d4edda;
  color: #155724;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seat.booked {
  background-color: #f8d7da;
  color: #721c24;
  cursor: not-allowed;
  border-color: #f5c6cb;
}

.seat.selected {
  background-color: var(--secondary-color);
  border-color: #b8860b;
  color: var(--primary-color);
}

.seat:hover:not(.booked):not(.selected) {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.booking-details {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.booking-details h3 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-color);
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(75, 0, 130, 0.25);
}

.book-btn {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.book-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.book-btn:not(:disabled):hover {
  background-color: #3a0066;
}

/* Booking Confirmation Styles */

.booking-confirmation {
  padding: 3rem 0;
  background-color: #f8f9fa;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.booking-confirmation .container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.confirmation-card {
  background: white;
  border-radius: 12px;
  padding: 3rem 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: #d4edda;
  color: #155724;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
}

.confirmation-card h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.confirmation-card>p {
  color: #6c757d;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.booking-summary {
  margin-bottom: 2rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item .label {
  font-weight: 500;
  color: #495057;
}

.summary-item .value {
  font-weight: 600;
  color: var(--primary-color);
}

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

.confirmation-actions .btn {
  flex: 1;
  min-width: 150px;
}

/* Admin Seat View - User Style Match */
.admin-seat-view {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.view-header h4 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 700;
}

.admin-legend {
  display: flex;
  gap: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #6c757d;
}

.swatch {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.swatch.available {
  background: #d4edda;
  border: 1px solid #c3e6cb;
}

.swatch.booked {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
}

.rows-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.row-label {
  width: 30px;
  font-weight: 800;
  color: #adb5bd;
  font-size: 1.2rem;
  padding-top: 12px;
}

.row-seats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  /* Increased gap to accommodate details */
}

/* Wrapper to hold Seat + Details */
.admin-seat-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
  /* Slightly wider than seat to center text */
}

/* Ensure Admin Seats match User Seats exactly */
.seat.admin-seat {
  width: 50px;
  height: 50px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  background-color: #d4edda;
  color: #155724;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  padding: 0;
  /* accurate user match */
}

.seat.admin-seat.booked {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
  box-shadow: none;
}

/* Details below the seat */
.seat-details {
  text-align: center;
  line-height: 1.2;
  width: 80px;
  /* Allow wider text than seat */
}

.seat-attendee {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #495057;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.seat-contribution {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Detailed Attendee List Styles */
.bookings-list-section h4 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

.badge-seat {
  background: #f1f3f5;
  color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
}

.td-name {
  font-weight: 500;
}

.td-contribution {
  color: var(--primary-color);
}

.btn-icon-danger {
  background: #fff5f5;
  border: 1px solid #ffe3e3;
  color: #fa5252;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon-danger:hover {
  background: #fa5252;
  color: white;
}

/* Revenue Footer */
.event-summary-footer {
  margin-top: 2rem;
  padding: 1.5rem 2.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--footer-bg));
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  box-shadow: 0 4px 15px rgba(45, 27, 105, 0.2);
}

.total-label {
  font-weight: 500;
  opacity: 0.9;
  font-size: 1.15rem;
}

.total-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--secondary-color);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #f8f9fa;
  border-radius: 16px;
  border: 2px dashed #dee2e6;
  color: #adb5bd;
}

/* About Page Specific Styles */
.about-page {
  padding: 0;
  max-width: 100%;
}

.about-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--footer-bg));
  color: white;
  padding: 6rem 2rem 4rem;
  text-align: center;
  margin-bottom: 3rem;
}

.about-hero h2 {
  font-size: 3rem;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.about-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.about-text {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.about-image {
  flex: 1;
  max-width: 500px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .about-content-wrapper {
    flex-direction: column;
    gap: 2rem;
  }
  
  .about-image {
    max-width: 100%;
  }
  
  .about-hero h2 {
    font-size: 2.2rem;
  }
}
