body {
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.btn-primary {
  background-color: #009eec;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #0084c7;
  transform: translateY(-1px);
}

.gradient-bg {
  background: linear-gradient(135deg, #009eec 0%, #33b1ef 100%);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.slider-dots {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background-color: white;
  transform: scale(1.2);
}

.navbar-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .navbar-mobile {
    position: static;
    border-top: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 60px;
}

.nav-item:hover,
.nav-item.active {
  color: #009eec;
}

.nav-item i {
  font-size: 20px;
  margin-bottom: 4px;
}

.nav-item span {
  font-size: 12px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .nav-item {
    flex-direction: row;
    padding: 15px 20px;
    min-height: auto;
  }

  .nav-item i {
    margin-bottom: 0;
    margin-right: 8px;
    font-size: 18px;
  }

  .nav-item span {
    font-size: 14px;
  }
}

/* -------------------------------------------------
   Admin Panel Styles
------------------------------------------------- */

.admin-sidebar {
  transition: transform 0.3s ease-in-out;
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  transform: translateX(0);
}

@media (max-width: 767px) {
  .admin-sidebar {
    -webkit-transform: translateX(-100%);
    -moz-transform: translateX(-100%);
    transform: translateX(-100%);
  }
  
  .admin-sidebar.visible {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    transform: translateX(0);
  }
}

/* Ensure main content doesn't get covered */
.md\:ml-64 {
  margin-left: 0;
}

@media (min-width: 768px) {
  .md\:ml-64 {
    margin-left: 16rem;
  }
}

/* Mobile sidebar toggle button - better visibility */
#mobileSidebarToggle {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  outline: none;
}

#mobileSidebarToggle:active {
  transform: scale(0.95);
}

/* Prevent text from being covered by toggle button on mobile */
@media (max-width: 767px) {
  .md\:ml-64 .px-4:first-child,
  .md\:ml-64 h1 {
    padding-left: 60px;
  }
}

/* -------------------------------------------------
   SweetAlert2 Custom Styling
------------------------------------------------- */

/* Custom Toast Animation - Slide from right */
@keyframes slideInFromRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutToRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

/* Apply animation to toast */
.swal2-popup.swal2-toast {
  animation: slideInFromRight 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
  border-radius: 15px !important;
}

.swal2-popup.swal2-toast.swal2-hide {
  animation: slideOutToRight 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53) !important;
}

/* Custom timer progress bar color - white */
.swal2-popup.swal2-toast .swal2-timer-progress-bar {
  background: white !important;
  height: 4px !important;
  border-radius: 15px !important;
}