* {
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0;
  font-family: system-ui, sans-serif;
  color: white;
  background-color: #0e0e0e;
  overflow-x: hidden;
}

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Galada&family=Work+Sans:ital,wght@0,500;1,500&display=swap');

/* Admin Layout */
.admin-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background-color: #0b0b0b;
  border-right: 1px solid #555;
  padding: 30px 20px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
}

.sidebar-header {
  margin-bottom: 40px;
  text-align: center;
}

.sidebar-header h2 {
  font-family: "Galada";
  font-size: 28px;
  font-weight: 500;
  background: linear-gradient(90deg, #ca1cff, #c813ff, #ff1da8, #ff36c3, #7023ff);
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: rainbowAnimation 6s ease-in-out infinite;
  margin: 0;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 18px;
  margin-left: 0;
  display: block;
}

@media (max-width: 480px) {
  .logo {
    width: 32px;
    height: 32px;
  }
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin-bottom: 10px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: rgb(163, 163, 163);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  background-color: #222;
  color: white;
}

.nav-link.active {
  background-color: #fff;
  color: black;
}

.nav-icon {
  margin-right: 15px;
  font-size: 20px;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 30px;
  background-color: #0e0e0e;
}

/* Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #555;
}

.header-left h1 {
  font-family: "Work Sans", sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.header-left p {
  color: rgb(163, 163, 163);
  margin: 5px 0 0 0;
  font-size: 14px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background-color: #0b0b0b;
  border: 1px solid #555;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-profile:hover {
  background-color: #222;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(90deg, #666, #444, #333, #555, #666);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
}

.user-info h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.user-info p {
  margin: 0;
  font-size: 12px;
  color: rgb(163, 163, 163);
}

/* Content Cards */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.content-card {
  background-color: #0b0b0b;
  border: 1px solid #555;
  border-radius: 15px;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(90deg, #666, #444, #333, #555, #666);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-right: 15px;
}

.card-title {
  font-family: "Work Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.card-content {
  color: rgb(163, 163, 163);
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-action {
  background-color: #fff;
  color: black;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.card-action:hover {
  background-color: #eee;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background-color: #0b0b0b;
  border: 1px solid #555;
  border-radius: 15px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.stat-title {
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgb(163, 163, 163);
}

.stat-icon {
  font-size: 24px;
  color: #fff;
}

.stat-value {
  font-family: "Work Sans", sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: white;
  margin-bottom: 5px;
}

.stat-change {
  font-size: 14px;
  color: #51cf66;
}

.stat-change.negative {
  color: #ff6b6b;
}

/* Keyframes for rainbow animation */
@keyframes rainbowAnimation {
  0% {
    background-position: 300% 0;
  }
  100% {
    background-position: 0 0;
  }
}
/* Popup overlay */
.popup-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(14, 14, 14, 0.95);
display: none;
align-items: center;
justify-content: center;
z-index: 2000;
}

/* Popup content box */
.popup-content {
background-color: #0b0b0b;
border: 1px solid #555;
border-radius: 15px;
padding: 30px;
max-width: 400px;
width: 90%;
color: white;
font-family: "Work Sans", sans-serif;
}

/* Popup form styles */
.popup-content h3 {
margin-top: 0;
margin-bottom: 20px;
font-weight: 600;
}

.popup-content label {
display: block;
margin-bottom: 6px;
font-weight: 500;
color: rgb(163, 163, 163);
}

.popup-content input {
width: 100%;
padding: 10px 12px;
margin-bottom: 15px;
border-radius: 8px;
border: 1px solid #555;
background-color: #0e0e0e;
color: white;
font-family: "Work Sans", sans-serif;
font-size: 14px;
box-sizing: border-box;
}

.popup-buttons {
display: flex;
justify-content: space-between;
gap: 10px;
}

.popup-buttons .card-action {
flex: 1;
margin: 0;
}


/* Mobile Responsive */
@media (max-width: 1024px) {
  .sidebar {
    width: 240px;
  }
  
  .main-content {
    margin-left: 240px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    padding: 20px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .header-right {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 15px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .content-grid {
    gap: 20px;
  }
}
#custom-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  color: white;
  background: #121212;
  padding: 20px;
  border-radius: 16px;
}

.calendar-day {
  border: 1px solid #333;
  border-radius: 12px;
  padding: 10px;
  min-height: 100px;
  background-color: #1e1e1e;
  position: relative;
}

.day-label {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 6px;
}

.booking-box {
  font-size: 0.75rem;
  background: #292929;
  border-radius: 8px;
  padding: 6px;
  margin-top: 4px;
  border: 1.3px solid goldenrod;
}

.booking-box.accepted {
  border-color: limegreen;
}

.booking-box.pending {
  border-color: goldenrod;
}
