/* Estilos Generales */
body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: linear-gradient(to bottom, #fef5fb 0%, #ffffff 100%);
}

main {
  flex: 1 0 auto;
}

.container {
  margin-top: 0px;
  margin-bottom: 0px;
}

/* Navegación */
nav {
  height: 64px;
  line-height: 64px;
}

nav .brand-logo {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  height: 64px;
  line-height: normal;
  font-size: 1.5rem;
}

nav .brand-logo i {
  margin-right: 10px;
  line-height: 64px;
}

/* Cards */
.card {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-title {
  display: flex;
  align-items: center;
  font-size: 1.5rem !important;
  margin-bottom: 15px !important;
}

.card-title i {
  margin-right: 10px;
}

/* Preview Container */
.preview-container {
  margin-top: 20px;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preview-wrapper {
  position: relative;
  display: inline-block;
  margin: 10px 0;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px;
  background-color: #fafafa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.preview-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.preview-info {
  margin-top: 10px;
  padding: 8px;
  background-color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
}

.preview-info p {
  margin: 5px 0;
  color: #666;
}

.preview-info strong {
  color: #333;
}

.size-valid {
  color: #4caf50;
  font-weight: bold;
}

.size-invalid {
  color: #f44336;
  font-weight: bold;
}

.remove-preview {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.remove-preview:hover {
  background-color: #d32f2f;
}

.remove-preview i {
  font-size: 18px;
}

/* File Input */
.file-field .btn {
  border-radius: 4px;
}

.file-path {
  border-bottom: 1px solid #9e9e9e;
}

/* Botones */
.btn-large {
  margin: 10px;
  border-radius: 4px;
}

/* Mensajes de Resultado */
#resultMessage .card-panel {
  border-radius: 8px;
  padding: 20px;
}

.success-message {
  background-color: #c8e6c9 !important;
  color: #2e7d32;
}

.error-message {
  background-color: #ffcdd2 !important;
  color: #c62828;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  margin-left: 10px;
}

/* Responsive */
@media only screen and (max-width: 600px) {
  .card-title {
    font-size: 1.2rem !important;
  }
  
  .btn-large {
    width: 100%;
    margin: 5px 0;
  }
  
  nav .brand-logo {
    font-size: 1.2rem;
  }
  
  .preview-image {
    max-width: 100%;
  }
}

@media only screen and (min-width: 601px) and (max-width: 992px) {
  .container {
    width: 85%;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preview-wrapper {
  animation: fadeIn 0.3s ease;
}

/* Estilos para validación */
.invalid-file {
  border-color: #f44336 !important;
}

.valid-file {
  border-color: #4caf50 !important;
}

/* Progress Bar */
.progress {
  margin: 20px 0;
  border-radius: 4px;
  overflow: hidden;
}

.progress .determinate {
  background-color: #2196f3;
}

/* Tooltips personalizados */
.material-tooltip {
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Estilos para el footer */
footer {
  margin-top: 40px;
}

/* Estilos para radio buttons */
label {
  font-size: 1.1rem;
  color: #424242;
}

[type="radio"]:checked + span:after,
[type="radio"].with-gap:checked + span:after {
  background-color: #E91E8C;
  border: 2px solid #E91E8C;
}

[type="radio"]:checked + span:after,
[type="radio"].with-gap:checked + span:before,
[type="radio"].with-gap:checked + span:after {
  border: 2px solid #E91E8C;
}

/* Sección de zócalo destacada */
/* #zocalo-section .card {
  border: 2px solid #ff9800;
} */

/* Estilos para mensajes de error en inputs */
.helper-text {
  font-size: 0.85rem;
  margin-top: 5px;
}

.helper-text.error {
  color: #f44336;
}

.helper-text.success {
  color: #4caf50;
}

/* Estilos para Flatpickr Date Range Picker */
.flatpickr-calendar {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: 'Roboto', sans-serif;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #E91E8C;
  border-color: #E91E8C;
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: #d11a7d;
  border-color: #d11a7d;
}

.flatpickr-day.inRange {
  background: #fce4f2;
  border-color: #fce4f2;
  box-shadow: none;
}

.flatpickr-months .flatpickr-month {
  background: linear-gradient(135deg, #E91E8C 0%, #6B2D8F 100%);
  color: white;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: #E91E8C;
  color: white;
}

.flatpickr-weekday {
  color: #E91E8C;
  font-weight: 500;
}

/* Estilos para los inputs de fecha */
.datepicker-range {
  cursor: pointer;
  border-bottom: 1px solid #9e9e9e !important;
  box-sizing: border-box !important;
  padding-left: 3rem !important;
}

.datepicker-range:focus {
  border-bottom: 2px solid #E91E8C !important;
  box-shadow: 0 1px 0 0 #E91E8C !important;
}

/* Contenedor de fechas seleccionadas */
#selectedDates {
  background-color: #fff;
  padding: 15px;
  border-radius: 4px;
  border-left: 4px solid #4caf50;
}

#selectedDates p {
  margin: 8px 0;
  line-height: 1.6;
}

#selectedDates .material-icons.tiny {
  font-size: 16px;
  vertical-align: middle;
  margin-right: 5px;
}
