/* Header Styles */
.header {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.title-section h1 {
  font-size: 1.5rem;
  margin: 0;
  color: #37474f;
}

/* Date Filter Styles */
.date-filter {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #666;
  position: relative;
}

.date-display {
  background-color: rgba(255, 87, 34, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  color: #ff5722;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.date-display:hover {
  background-color: rgba(255, 87, 34, 0.15);
}

/* DatePicker Popup Styles */
.date-picker-container {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  z-index: 1000;
}

.date-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
}

.date-picker-popup {
  position: relative;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 300px;
}

.date-range-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.date-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.date-input-group label {
  color: #666;
  font-size: 0.875rem;
}

.date-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Stats Container Styles */
.stats-container {
  background: #597685;
  height: 235px;
  border-radius: 8px;
}

.stats {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stats-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 30vh;
  height: 239px;
  margin-left: auto;
  margin-right: auto;
}

.stats-card:hover,
.stats-card.active {
  background-color: #ff5722;
}

.stats-card:hover .stats-number,
.stats-card:hover .stats-info h3,
.stats-card:hover .stats-subtitle,
.stats-card.active .stats-number,
.stats-card.active .stats-info h3,
.stats-card.active .stats-subtitle {
  color: white;
}

.stats-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.stats-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.stats-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.stats-info {
  flex: 1;
}

.stats-info h3 {
  font-size: 1rem;
  color: #666;
  margin: 0 0 0.5rem 0;
  transition: color 0.3s ease;
}

.stats-number {
  font-size: 1.95rem;
  font-weight: 800;
  color: #ff5722;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.stats-subtitle {
  font-size: 0.875rem;
  color: #999;
  transition: color 0.3s ease;
}

/* Stats Sidebar Styles */
.stats-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stats-item {
  color: white;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.2s ease;
}

.stats-item:hover {
  opacity: 1;
}

.stats-item.active {
  color: #ff5722;
  opacity: 1;
}
/* Contenedor principal para filtro/mapa */
.content-section {
  background: white;
  border-radius: 8px;
  margin-top: 6vh;
  height: 100%;
}

/* Estilos para el mapa */
.map-section {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}
.content-section .map-section canvas {
  border-radius: 8px;
}
#googleMap {
  height: 100%;
  width: 100%;
}

/* Filter Section Styles - Updated */
.filter-section {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.filter-input {
  width: 100%;
}
.scene-section {
  width: 100%;
  height: 100%;
  position: relative;
}
.filter-input select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  border: none;
  background-color: #f5f7f9;
  color: #666;
  font-size: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 1rem) center;
  cursor: pointer;
}

.filter-input select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.2);
}

.filter-input select:hover {
  background-color: #eceef0;
}

.filter-button {
  grid-column: 2;
  justify-self: end;
  align-self: end;
  background-color: #ff5722;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.filter-button:hover {
  background-color: #f4511e;
}

.filter-button i {
  font-size: 16px;
}

.development-banner {
  background-color: #ffcc00;
  color: #000;
  text-align: center;
  padding: 10px;
  font-weight: bold;
}

/* Media Queries */
@media (max-width: 1200px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-sidebar {
    grid-column: span 2;
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .date-picker-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-button {
    grid-column: 1;
    justify-self: stretch;
    margin-top: 1rem;
    .development-banner {
      background-color: #ffcc00;
      color: #000;
      text-align: center;
      padding: 10px;
      font-weight: bold;
    }
  }
}

.bandejas-container {
  padding: 2rem;
  font-family: Arial, sans-serif;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.upload-section {
  margin-bottom: 2rem;
  text-align: center;
}

.upload-button {
  background-color: #ff5722;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 1rem;
}

.upload-button:hover {
  background-color: #f4511e;
}

.info-section ul {
  list-style-type: disc;
  padding-left: 2rem;
}

.technical-info table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.technical-info th,
.technical-info td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: center;
}

.technical-info th {
  background-color: #f5f5f5;
  font-weight: bold;
}

.alert {
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.loading-spinner {
  font-size: 1rem;
  color: #007bff;
  margin-top: 1rem;
}
/**/
.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.active-link {
    background-color: #ffffff;
    color: #0d6efd !important;
    font-weight: 600;
}

.active-link img,
.active-link i {
    filter: brightness(0) saturate(100%) invert(29%) sepia(91%) saturate(1769%) hue-rotate(205deg) brightness(94%) contrast(101%);
}
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.3s ease;
}
