:root {
  --primary-gold: #d97706;
  --bg-color: #f8fafc;
  --text-dark: #1e293b;
  --fc-today-bg-color: rgba(217, 119, 6, 0.08);
}

body {
  font-family: "Prompt", sans-serif !important;
  background-color: var(--bg-color);
  color: var(--text-dark);
}

/* Navbar Custom */
.navbar-custom {
  background: white;
  padding: 15px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.back-btn {
  background: var(--primary-gold);
  color: white !important;
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.back-btn:hover {
  opacity: 0.9;
}

/* Filter Section & Select Layout */
.filter-card {
  background: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.select-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

.select-custom {
  font-family: "Prompt", sans-serif;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  flex: 1;
  max-width: 500px;
}

.btn-refresh {
  background: #f1f5f9;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  color: var(--primary-gold);
  transition: background 0.2s;
}

.btn-refresh:hover {
  background: #e2e8f0;
}

/* Legend Section */
.legend-section {
  display: flex;
  flex-direction: column; /* เปลี่ยนจากเรียงแถวเป็นวางซ้อนกัน */
  align-items: center; /* จัดให้อยู่กึ่งกลาง */
  gap: 15px; /* ระยะห่างระหว่างแถวสถานะกับข้อแนะนำ */
  width: 100%;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
  margin-top: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

/* Calendar & Bug Fix */
.calendar-wrapper {
  background: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.fc .fc-day-today {
  background-color: var(--fc-today-bg-color) !important;
}

.fc-day-other .fc-day-today {
  background-color: transparent !important;
}

.spin {
  animation: fa-spin 2s infinite linear;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-hidden {
  opacity: 0;
  pointer-events: none;
}
