body {
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: linear-gradient(135deg, #0f0f0f 0%, #2c0b4e 50%, #4a0080 100%) fixed;
  color: #e0e0e0;
  overflow-x: hidden;
  position: relative;
  transition: opacity 0.3s ease-in-out;
}
body.page-is-leaving {
  /* This fades the page to invisible */
  opacity: 0;
}

/* --- Shared Animated Background --- */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.05) 0%, transparent 50%),
  radial-gradient(circle at bottom right, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.background-element {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
  pointer-events: none;
  opacity: 0.7;
  z-index: 0;
}

.note {
  background-color: rgba(255, 204, 0, 0.2);
  animation: floatNote 20s infinite ease-in-out;
  transform: rotate(45deg);
}

@keyframes float {
  0% { transform: translateY(0px) translateX(0px); opacity: 0.7; }
  50% { transform: translateY(-50px) translateX(20px); opacity: 0.8; }
  100% { transform: translateY(0px) translateX(0px); opacity: 0.7; }
}

@keyframes floatNote {
  0% { transform: translateY(0px) rotate(45deg); opacity: 0.7; }
  25% { transform: translateY(-30px) translateX(20px) rotate(50deg); opacity: 0.8; }
  50% { transform: translateY(0px) translateX(40px) rotate(40deg); opacity: 0.7; }
  75% { transform: translateY(30px) translateX(20px) rotate(50deg); opacity: 0.8; }
  100% { transform: translateY(0px) rotate(45deg); opacity: 0.7; }
}
/* --- Shared Animated Background --- */

.btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #ffcc00 0%, #ff9900 100%);
  color: #333;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 204, 0, 0.6);
  background: linear-gradient(90deg, #ff9900 0%, #ffcc00 100%);
}

.main-header {
  width: 100%;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.header-logo {
  line-height: 1.2;
}

.header-logo .logo-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffcc00;
  letter-spacing: 2px;
  text-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
  display: block;
}

.header-logo .logo-tagline {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: #e0e0e0;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffcc00;
  border-bottom: 2px solid #ffcc00;
}

.main-nav .btn-small {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  background: linear-gradient(90deg, #ffcc00 0%, #ff9900 100%);
  color: #333;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 10px rgba(255, 204, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-nav .btn-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.6);
  color: #333;
  border-bottom: none;
}

.main-title {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  font-size: 3.5rem;
  color: #ffcc00;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}

.main-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  font-weight: 300;
}

.booking-main-content {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
  z-index: 1;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  color: #ffcc00;
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: -0.5rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: #ffcc00;
  font-size: 1.05rem;
}

.form-group input {
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.08);
  color: #e0e0e0;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
  border-color: #ffcc00;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.15);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(0.8);
}

.booking-widget,
.status-widget {
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  padding: 2.5rem 3rem;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .main-header {
    padding: 1rem 1.5rem;
    flex-direction: column;
    text-align: center;
  }
  .header-logo {
    margin-bottom: 1rem;
  }
  .main-nav ul {
    gap: 1.2rem;
  }
  .main-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 500px) {
  .main-header {
    padding: 0.8rem 1rem;
  }
  .main-nav ul {
    gap: 0.8rem;
    font-size: 0.9rem;
  }
  .main-nav a {
    padding: 0.3rem 0.1rem;
  }
  .main-nav .btn-small {
    padding: 0.4rem 0.8rem;
  }
}

.hidden {
  display: none !important;
}

.btn-profile {
  background: linear-gradient(90deg, #a040f0 0%, #ff40c0 100%);
  box-shadow: 0 2px 10px rgba(255, 64, 192, 0.4);
}

.btn-profile:hover {
  background: linear-gradient(90deg, #ff40c0 0%, #a040f0 100%);
  box-shadow: 0 4px 12px rgba(255, 64, 192, 0.6);
}

#nav-profile-item {
  position: relative;
}

.profile-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  min-width: 160px;
  background-color: #1e0a35;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  z-index: 100;
  overflow: hidden;
}

.profile-dropdown a {
  display: block;
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  color: #e0e0e0;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
  border-bottom: none;
}

.profile-dropdown a:hover {
  background-color: #ffcc00;
  color: #333;
  border-bottom: none;
}

.dropdown-divider {
  height: 1px;
  margin: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.1);
}

#logout-btn {
  color: #ff8080;
}

#logout-btn:hover {
  background-color: #ff4040;
  color: #fff;
}

.auth-loading .main-nav {
  visibility: hidden;
  opacity: 0;
}

body.is-navigating {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.auth-logged-in .main-nav,
.auth-logged-out .main-nav {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

#nav-login-item,
#nav-profile-item {
  display: none;
}
.auth-logged-out #nav-login-item {
  display: list-item;
}
.auth-logged-in #nav-profile-item {
  display: list-item;
}

#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
}

.toast {
  padding: 15px 20px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  min-width: 250px;
  max-width: 400px;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.toast-success {
  background-color: #4CAF50;
}

.toast-error {
  background-color: #D32F2F;
}

.toast.hide {
  opacity: 0;
  transform: translateX(100%);
}

/* --- Footer --- */
.site-footer {
  background-color: #0f0f0f;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4rem 2rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
}
.footer-column .logo-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffcc00;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.footer-column .logo-tagline {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 1rem;
}
.footer-column h4 {
  font-family: 'Montserrat', sans-serif;
  color: #e0e0e0;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-column li {
  margin-bottom: 0.75rem;
}
.footer-column a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}
.footer-column a:hover {
  color: #ffcc00;
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}
