/* =============================================================================
   CUSTOM CSS - PLANTILLA DJANGO
   Estilos personalizados del proyecto
   ============================================================================= */

.container {
  margin: 0 auto;
  max-width: 1280px;
  width: 90%;
}

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

@media only screen and (min-width: 993px) {
  .container { width: 90%; }
}

/* Tabla con header uniforme */
table.responsive-table.striped thead th {
  background-color: #d0d0d0 !important;
  border-radius: 0px !important;
  border: none !important;
}

table.responsive-table.striped thead tr {
  border-spacing: 0;
  border-collapse: collapse;
  border-radius: 0px !important;
}

/* Labels de inputs uniformes */
.input-field label,
.input-field label.active {
  font-size: 1.2rem !important;
}

/* Sin animación en labels */
.input-field label {
  transition: none !important;
}

.input-field input:focus + label,
.input-field input:not(:placeholder-shown) + label,
.input-field input:valid + label {
  transform: translateY(-14px) scale(0.8) !important;
}

/* File input mejorado */
.file-path-wrapper {
  display: none !important;
}

.file-field .btn {
  position: relative;
  min-width: 250px;
  background-color: var(--primary, #003366);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  padding: 0 20px;
  height: 42px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.file-field .btn:hover {
  background-color: var(--primary-medium, #004a99);
}

/* HTMX indicator */
.htmx-indicator {
  opacity: 0;
  transition: opacity 500ms ease-in;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}

/* Mensajes Django */
#messages-queue {
  display: none;
}

/* Fondo general */
body {
  background-color: #f5f5f5 !important;
}

/* Tabs */
.tabs .indicator {
  background-color: var(--primary, #003366);
  height: 4px;
}

.tabs .tab a.active {
  background-color: var(--primary-light, #e8f0fb) !important;
}
