/* =========================================
   calendario.css - Diseño Premium y Oscuro
========================================= */

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

body {
  background-color: #0b0b0b;
}

.calendar-wrapper {
  display: flex;
  gap: 24px;
  height: calc(100vh - 110px);
  margin-top: 20px;
  font-family: 'Outfit', sans-serif;
  color: #fff;
}

/* Sidebar del calendario */
.calendar-sidebar {
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.upcoming-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #e4e4e7;
}

.upcoming-trips-box, .custom-filters-box {
  background: #18181b;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
}

.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trip-pill {
  background: #242429;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s;
  cursor: pointer;
}

.trip-pill:hover {
  background: rgba(229, 9, 20, 0.1);
  border-color: rgba(229, 9, 20, 0.3);
  transform: translateX(4px);
}

.trip-pill-date {
  font-size: 11px;
  color: #e50914;
  font-weight: 800;
  text-transform: uppercase;
}

.trip-pill-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-pill {
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  border: none;
  background: #242429;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-pill:hover {
  background: #2c2c31;
}

.active-pill {
  background: #e50914;
  color: #fff;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.active-pill:hover {
  background: #ff1f2d;
}

/* Área principal del FullCalendar */
.calendar-main-area {
  flex: 1;
  background: #111114;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#calendar {
  flex: 1;
  min-height: 0;
  font-family: 'Outfit', sans-serif;
}

/* Redefiniendo completamente el FullCalendar para que luzca moderno */
.fc-theme-standard td, .fc-theme-standard th {
  border-color: rgba(255,255,255,0.05);
}

.fc-theme-standard .fc-scrollgrid {
  border: none; /* Eliminar el borde principal exterior */
}

/* Cabecera del calendario (Mes / Año y flechas) */
.fc .fc-toolbar.fc-header-toolbar {
  margin-bottom: 24px;
  align-items: flex-start;
}

.fc .fc-toolbar-title {
  font-size: 38px;
  font-weight: 300;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

/* Personalizamos los botones next/prev */
.fc-button-primary {
  background-color: #e50914 !important;
  border: none !important;
  border-radius: 50% !important;
  width: 42px;
  height: 42px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(229, 9, 20, 0.3);
  transition: all 0.3s !important;
}

.fc-button-primary:hover {
  background-color: #ff1f2d !important;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(229, 9, 20, 0.5);
}

.fc-button-primary .fc-icon {
  font-size: 1.2em;
}

.fc .fc-button-group {
  gap: 12px;
}

.fc-button-group > .fc-button {
  border-radius: 50% !important; 
}

.fc-today-button {
  background: #242429 !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 0 20px !important;
  width: auto !important;
  height: 42px !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
  text-transform: capitalize !important;
}

/* Días de la semana en la cabecera (SUN MON TUE...) */
.fc-col-header-cell {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  padding: 10px 0 !important;
}

.fc-col-header-cell-cushion {
  color: #a1a1aa;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-decoration: none;
}

/* Celdas de los días */
.fc-daygrid-day {
  background: #151518;
  transition: background 0.2s;
  cursor: pointer;
}

.fc-daygrid-day:hover {
  background: #1a1a1f;
}

/* Quitar el highlight amarillo feo de hoy y poner uno sutil */
.fc-day-today {
  background: rgba(229, 9, 20, 0.05) !important;
}
.fc-day-today .fc-daygrid-day-number {
  background: #e50914;
  color: #fff !important;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px;
}

/* Números de los días */
.fc-daygrid-day-number {
  color: #71717a;
  font-weight: 600;
  font-size: 14px;
  padding: 12px !important;
  text-decoration: none;
}

.fc-daygrid-day.fc-day-other .fc-daygrid-day-number {
  color: #3f3f46;
}

/* Celdas y borde interior invisible */
.fc-daygrid-body, .fc-scrollgrid-sync-table {
  border: none !important;
}

/* Estilo para los eventos / Viajes (Pills) */
.fc-h-event {
  background-color: #4da6ff;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  margin: 2px 8px;
  font-weight: 600;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  border-left: 3px solid #0059b3;
}

.fc-event-title-container {
  display: flex;
  align-items: center;
}

.fc-event-title {
  color: #fff;
}

/* Custom Scrollbar for FullCalendar to prevent overlapping rightmost dates */
.fc-scroller::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.fc-scroller::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}
.fc-scroller::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
.fc-scroller::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
.fc-scroller {
  padding-right: 4px;
}

@media (max-width: 900px) {
  .calendar-wrapper {
    flex-direction: column;
    height: auto;
  }
  .calendar-sidebar {
    width: 100%;
  }
  .calendar-main-area {
    height: 600px;
  }
}
