/* Excel Schedule Table Styles */

.schedule-content {
  margin: 20px 0;
}

/* Make table fonts bigger */
.schedule-table td {
  font-size: 14px !important;
}

/* Schedule Tabs */
.schedule-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  gap: 10px;
  flex-wrap: wrap;
}

.schedule-tab {
  background: white;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Day 1 - Green */
.schedule-tab[data-day='day1'] {
  border: 2px solid #00bf63;
  color: #00bf63;
}

.schedule-tab[data-day='day1']:hover {
  background: #00bf63;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 191, 99, 0.3);
}

.schedule-tab[data-day='day1'].active {
  background: #00bf63;
  color: white;
}

/* Day 2 - Blue */
.schedule-tab[data-day='day2'] {
  border: 2px solid #4eb5ff;
  color: #4eb5ff;
}

.schedule-tab[data-day='day2']:hover {
  background: #4eb5ff;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(78, 181, 255, 0.3);
}

.schedule-tab[data-day='day2'].active {
  background: #4eb5ff;
  color: white;
}

/* Day 3 - Purple */
.schedule-tab[data-day='day3'] {
  border: 2px solid #b86def;
  color: #b86def;
}

.schedule-tab[data-day='day3']:hover {
  background: #b86def;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(184, 109, 239, 0.3);
}

.schedule-tab[data-day='day3'].active {
  background: #b86def;
  color: white;
}

/* Schedule Table Containers */
.schedule-table {
  display: none;
}

.schedule-table.active {
  display: block;
}

/* Excel tables inside schedule containers */
.schedule-table table {
  display: table !important;
}

.schedule-header {
  text-align: center;
  margin-bottom: 30px;
}

.schedule-header h3 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
}

.schedule-section {
  margin-bottom: 40px;
  overflow: auto;
}

.schedule-section h3 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-align: center;
  border-bottom: 2px solid #00bf63;
  padding-bottom: 10px;
}

.schedule-table {
  border-collapse: collapse;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.schedule-table th,
.schedule-table td {
  padding: 12px 8px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
}

/* Set specific width for time column (4th column) */
.schedule-table td:nth-child(4),
.schedule-table th:nth-child(4) {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

.schedule-table th {
  background-color: #f8f9fa;
  font-weight: bold;
  font-size: 0.9rem;
}

.schedule-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.schedule-table tr:hover {
  background-color: #e9ecef;
}

/* Responsive design */
@media (max-width: 768px) {
  .schedule-table {
    font-size: 0.8rem;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 8px 4px;
  }

  .schedule-section h3 {
    font-size: 1.2rem;
  }
}

/* Print styles */
@media print {
  .schedule-table {
    box-shadow: none;
    border: 1px solid #000;
  }

  .schedule-section {
    page-break-inside: avoid;
  }
}

/* Schedule Button Styles */
.description-with-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.description-text {
  flex: 1;
}

.description-buttons {
  display: inline-flex;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.activity-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.schedule-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.schedule-button .material-icons {
  font-size: 14px;
}

.schedule-button-form {
  background: #00bf63;
  color: white;
}

.schedule-button-form:hover {
  background: #00a054;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 191, 99, 0.3);
}

.schedule-button-leaflet {
  background: #4eb5ff;
  color: white;
}

.schedule-button-leaflet:hover {
  background: #3a9de6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(78, 181, 255, 0.3);
}

/* Leaflet Modal Styles */
.leaflet-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.leaflet-modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 0;
  border-radius: 15px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: leafletModalSlideIn 0.3s ease-out;
}

@keyframes leafletModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.leaflet-modal-header {
  background: #00bf63;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-radius: 15px 15px 0 0;
}

.leaflet-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.leaflet-close {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.leaflet-close:hover {
  opacity: 0.7;
}

.leaflet-modal-body {
  padding: 20px;
  max-height: calc(90vh - 80px);
  overflow: auto;
}

.leaflet-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
}

.leaflet-image {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* Slideshow Styles */
.slideshow-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 80px;
}

.slide-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  width: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.slide.active {
  display: flex;
}

.slide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slideshow-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 0 0 10px 10px;
}

.slide-nav-btn {
  background: #00bf63;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-nav-btn:hover {
  background: #00a054;
  transform: scale(1.1);
}

.slide-nav-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.slide-counter {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  background: #f8f9fa;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #ddd;
}

/* Image Not Found Notification */
.image-not-found-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  animation: notificationSlideIn 0.3s ease-out;
}

@keyframes notificationSlideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notification-content {
  background: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  border-left: 4px solid #ff9800;
}

.notification-icon {
  font-size: 24px;
}

.notification-text {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.notification-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.3s ease;
}

.notification-close:hover {
  color: #333;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .leaflet-modal-content {
    width: 95%;
    margin: 5% auto;
  }

  .leaflet-modal-header {
    padding: 15px;
  }

  .leaflet-modal-header h3 {
    font-size: 1.2rem;
  }

  .leaflet-close {
    font-size: 1.5rem;
  }

  .leaflet-modal-body {
    padding: 15px;
  }

  .leaflet-image-container {
    padding: 15px;
  }

  .leaflet-image {
    max-height: 60vh;
  }

  .schedule-button {
    font-size: 9px;
    padding: 3px 8px;
    gap: 3px;
  }

  .schedule-button .material-icons {
    font-size: 12px;
  }

  .description-buttons {
    gap: 4px;
  }

  .description-with-buttons {
    gap: 6px;
  }

  /* Force buttons to next row on mobile */
  .description-text {
    flex-basis: 100%;
  }

  .description-buttons {
    flex-basis: auto;
  }

  /* Slideshow mobile styles */
  .slideshow-container {
    padding-bottom: 70px;
  }

  .slideshow-controls {
    padding: 12px;
    gap: 15px;
  }

  .slide-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .slide-counter {
    font-size: 12px;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .leaflet-modal-content {
    width: 98%;
    margin: 2% auto;
  }

  .leaflet-modal-header {
    padding: 12px;
  }

  .leaflet-modal-header h3 {
    font-size: 1rem;
  }

  .leaflet-modal-body {
    padding: 10px;
  }

  .leaflet-image-container {
    padding: 10px;
  }

  .leaflet-image {
    max-height: 50vh;
  }

  .notification-content {
    min-width: 250px;
    padding: 12px 15px;
  }

  /* Slideshow mobile styles for small screens */
  .slideshow-container {
    padding-bottom: 60px;
  }

  .slideshow-controls {
    padding: 10px;
    gap: 12px;
  }
}
