@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap');

/* =========================
   Global
========================= */
body {
  background: linear-gradient(135deg, #e4f0fc, #f8fbff);
  font-family: 'Quicksand', sans-serif;
  color: #34495e;
  margin: 0;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* =========================
   Title
========================= */
h2 {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin: 2rem 0 1.5rem;
  background: linear-gradient(180deg, #4096ea 10%, #3a5fe6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* =========================
   Calendar Container
========================= */
#calendar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
  max-width: 1200px;
  margin: auto;
  animation: fadeInUp 0.8s ease;
}

/* =========================
   Loading Message
========================= */
#loadingMessage {
  text-align: center;
  margin: 1rem auto;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: #3a5fe6;
  background-color: #e9f2ff;
  border: 1px solid #cce5ff;
  border-radius: 12px;
  width: fit-content;
  animation: fadeIn 0.5s ease-in-out;
}

/* =========================
   Modal Styles
========================= */
.modal-content {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  animation: fadeIn 0.4s ease-in-out;
}

.modal-header {
  background: linear-gradient(135deg, #4096ea, #3a5fe6);
  color: white;
  border: none;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.modal-title {
  font-weight: 700;
  font-size: 1.25rem;
}

/* =========================
   Buttons
========================= */
.btn-primary {
  background: linear-gradient(135deg, #4096ea, #3a5fe6);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 50px;
  padding: 0.6rem 1.4rem;
  box-shadow: 0 6px 16px rgba(64, 150, 234, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3a5fe6, #4096ea);
  box-shadow: 0 12px 24px rgba(64, 150, 234, 0.45);
  transform: translateY(-2px);
}

/* =========================
   FullCalendar Styling
========================= */
.fc .fc-toolbar-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #34495e;
}

.fc-event-title {
  font-weight: 600;
}

/* Estilo de imágenes en eventos */
.fc-event img {
  border-radius: 8px;
  border: 1px solid #ccc;
  max-height: 80px;
  object-fit: cover;
}

/* =========================
   Animations
========================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  #calendar {
    padding: 1rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .modal-body .form-control {
    font-size: 0.95rem;
  }

  .btn-primary {
    font-size: 0.95rem;
    padding: 0.55rem 1.2rem;
  }
}
