/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* BODY */
body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: white;
  min-height: 100vh;
}

/* 🔥 NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  z-index: 1000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

.menu-toggle {
  font-size: 28px;
  cursor: pointer;
}

/* 🔥 MENU */
.menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 220px;
  height: 100%;
  background: #111;
  display: flex;
  flex-direction: column;
  padding: 70px 20px;
  transition: 0.3s;
  z-index: 999;
}

.menu a {
  color: white;
  text-decoration: none;
  margin: 15px 0;
  font-size: 18px;
}

.menu.active {
  right: 0;
}

/* TITLAR */
h2, h3 {
  text-align: center;
  margin: 15px 0;
}

/* 🔥 HERO */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  background: url("https://images.unsplash.com/photo-1585747860715-2ba37e788b70") center/cover no-repeat;
}

/* 🔥 OVERLAY */
.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  top: 0;
  left: 0;
}

/* 🔥 CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  animation: fadeIn 1s ease-in-out;
}

.hero h1 {
  font-size: 42px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
}

/* KNAPPAR */
.hero button {
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

/* 🔥 STOR PREMIUM KNAPP */
.big-btn {
  padding: 16px 40px;
  font-size: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
  color: black;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* HOVER */
.hero button:hover {
  transform: scale(1.08);
}

.big-btn:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #f5f5f5, #cfcfcf);
}

/* ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* KALENDER */
.calendar-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  padding: 15px;
}

.day-box {
  background: #1e1e1e;
  border-radius: 12px;
  padding: 10px;
  min-height: 300px;
}

.day-box div:first-child {
  text-align: center;
  margin-bottom: 10px;
}

.time-block {
  margin: 5px 0;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
}

.available {
  background: linear-gradient(135deg, #00ff99, #00c851);
  cursor: pointer;
}

.booked {
  background: #555;
  cursor: not-allowed;
}

/* WEEK NAV */
.week-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px;
}

.week-nav button {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.week-nav button:hover {
  transform: scale(1.05);
}

.week-nav button.active {
  background: linear-gradient(135deg, #ff7b00, #ff3c00);
}

/* BOKNINGAR */
.mybookings {
  max-width: 600px;
  margin: auto;
  padding: 10px;
}

.booking-info {
  background: #1e1e1e;
  padding: 15px;
  margin: 10px 0;
  border-radius: 10px;
}

/* GLOBAL BUTTON */
button {
  margin-top: 10px;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: white;
}

/* ADMIN */
#adminPanel {
  max-width: 600px;
  margin: auto;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  .calendar-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 30px;
  }

  .day-box {
    min-height: auto;
  }

}


/* ================================
   🔧 FIX: NAVBAR + MENU CLICK BUG
   ================================ */

/* Säkerställ att navbar alltid ligger över allt */
.navbar {
  z-index: 9999;
}

/* Säkerställ att meny alltid är ovanför innehåll */
.menu {
  z-index: 10000;
}

/* Förhindrar att hero / overlay blockerar klick */
.hero,
.overlay,
.hero-content {
  pointer-events: auto;
}

/* Hero ligger bakom navbar */
.hero {
  position: relative;
  z-index: 1;
}

/* Overlay får inte blockera klick */
.overlay {
  pointer-events: none;
}

/* Knapp + menu fix */
button,
.menu-toggle,
.menu a {
  position: relative;
  z-index: 10001;
  pointer-events: auto;
}