body {
  font-family: "Montserrat", sans-serif;
  background-color: #3c4266;
  color: #eaeaea;
  background-image: linear-gradient(rgba(60, 66, 102, 0.85), rgba(60, 66, 102, 0.85)), url("images/sombrero.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.font-cinzel {
  font-family: "Cinzel", serif;
}

.font-aulyars {
  font-family: "Cinzel Decorative", serif;
}

.color-primary {
  color: #f5f5dc;
}

.btn-primary {
  background-color: #f5f5dc;
  color: #3c4266;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(245, 245, 220, 0.2);
}

.btn-primary:disabled {
  background-color: #555;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: #4c5486;
  color: #eaeaea;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #5e68a4;
}

.btn-danger {
  background-color: #8b0000;
  color: #f0f0f0;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background-color: #a52a2a;
}

.card {
  background-color: #2e3350;
  border: 1px solid #4c5486;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.form-input {
  background-color: #22263b;
  border: 1px solid #4c5486;
  color: #eaeaea;
}

.form-input::placeholder {
  color: #888;
}

.carousel-slide {
  display: none;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  display: block;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.admin-tab.active {
  border-bottom: 2px solid #f5f5dc;
  color: #ffffff;
}

.table-auto th,
.table-auto td {
  padding: 0.75rem;
  text-align: left;
}

.table-auto th {
  background-color: #4c5486;
}

.table-auto tbody tr:nth-child(even) {
  background-color: #2e3350;
}

.table-auto tbody tr:nth-child(odd) {
  background-color: #353b5c;
}

/* Chatbot Styles */
#chatbot-window {
  max-width: calc(100vw - 2rem);
}

@media (max-width: 640px) {
  #chatbot-window {
    width: calc(100vw - 2rem);
    height: calc(100vh - 8rem);
    bottom: 5rem;
    left: 1rem;
  }
}

.chatbot-message {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  word-wrap: break-word;
  animation: slideIn 0.3s ease-out;
}

.chatbot-message.user {
  background-color: #fbbf24;
  color: #111827;
  margin-left: auto;
  border-bottom-right-radius: 0.25rem;
}

.chatbot-message.bot {
  background-color: #374151;
  color: #f3f4f6;
  margin-right: auto;
  border-bottom-left-radius: 0.25rem;
}

.chatbot-message.system {
  background-color: #1f2937;
  color: #9ca3af;
  margin: 0 auto;
  text-align: center;
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-typing {
  display: flex;
  align-items: center;
  space-x: 1;
  padding: 0.75rem 1rem;
  background-color: #374151;
  border-radius: 1rem;
  max-width: 80px;
  margin-right: auto;
}

.chatbot-typing span {
  width: 8px;
  height: 8px;
  background-color: #9ca3af;
  border-radius: 50%;
  display: inline-block;
  margin: 0 2px;
  animation: typing 1.4s infinite;
}

.chatbot-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chatbot-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Scrollbar styling for chat */
#chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

#chatbot-messages::-webkit-scrollbar-track {
  background: #1f2937;
}

#chatbot-messages::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 3px;
}

#chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Added styles for date picker and time slot buttons in chatbot */
.chatbot-date-picker input[type="date"] {
  color-scheme: dark;
}

.chatbot-date-picker input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.chatbot-time-slots {
  animation: slideIn 0.3s ease-out;
}

.chatbot-time-btn {
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.chatbot-time-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(251, 191, 36, 0.3);
}

.chatbot-time-btn:active {
  transform: translateY(0);
}

/* Added styles for disabled time slot buttons */
.chatbot-time-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.chatbot-time-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}
