/* static/css/style.css */

/* 0. Reset browser defaults to remove unwanted white gaps */
html, body {
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
  overflow-x: hidden;
  font-family: "Segoe UI", Roboto, sans-serif;
  background-color: #1f2937;
}

/* 1. NAVBAR: full-width dark background, horizontal menu buttons */
.navbar {
  background-color: #1f2937;
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
  z-index: 1000;
  box-shadow: none;
}
.navbar .container-fluid {
  padding: 0 2rem;
}
.navbar-brand {
  color: #fff !important;
  font-size: 2rem;
  font-weight: bold;
  padding-top: 0.75rem;
}
.navbar-nav {
  display: flex;
  gap: 1rem;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-item .nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: #fff !important;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 0.375rem;
  transition: background-color 0.2s, border-color 0.2s;
  font-size: 1.4rem;
  font-weight: 600;
}
.nav-item .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Ensure no residual borders/shadows */
nav, .navbar, .navbar-collapse {
  border: none !important;
  box-shadow: none !important;
}

/* 2. HERO SECTION: full-screen bg image with dark overlay */
.hero {
  position: relative;
  height: 100vh;
  background-image: url("/static/images/hero.jpg");
  background-size: cover;
  background-position: center;
  margin: 0;
  padding: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
}
.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
}

/* 3. HERO TEXT */
.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* 4. HERO BUTTONS */
.btn-primary {
  background-color: #ff9a00;
  border-color: #ff9a00;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  margin-right: 1rem;
  transition: background-color .2s, border-color .2s;
}
.btn-primary:hover {
  background-color: #e68a00;
  border-color: #e68a00;
}
.btn-outline-light {
  color: #fff;
  border-color: #fff;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  transition: background-color .2s;
}
.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.15);
}

/* 5. MAIN CONTENT */
main {
  margin: 0;
  padding: 0;
}

/* 6. FOOTER */
footer {
  background: #1f2937;
  color: #ccc;
  padding: 1rem 0;
}
footer small {
  font-size: 0.875rem;
}

/* 7. Utility tweaks */
.btn, .navbar-brand, .nav-link {
  text-decoration: none !important;
}

/* 8. Final reinforcement */
nav.navbar {
  background-color: #1f2937 !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* 9. UPLOAD SECTION STYLES */
.upload-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #2d3748;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.upload-container h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.upload-container p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: #e2e8f0;
}

.upload-container .mb-3 {
  margin-bottom: 1.5rem;
}

.upload-container label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #f8fafc;
}

.upload-container .form-control {
  background-color: #4a5568;
  border: 1px solid #4a5568;
  color: #fff;
}

.upload-container .form-control:focus {
  border-color: #ff9a00;
  box-shadow: none;
  background-color: #4a5568;
}

/* Botones personalizados */
.upload-container .btn-primary {
  background-color: #ff9a00;
  border-color: #ff9a00;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  margin-right: 1rem;
  transition: background-color .2s;
}

.upload-container .btn-primary:hover {
  background-color: #e68a00;
  border-color: #e68a00;
}

.upload-container .btn-secondary {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  transition: background-color .2s, color .2s;
}

.upload-container .btn-secondary:hover {
  background-color: #fff;
  color: #1f2937;
}


/* ... [Todo tu CSS previo permanece igual, ya cargado correctamente] ... */

/* 10. TABLE STYLES PARA PREVIEW Y REGISTRY */
.table thead th {
  color: #ffb347;
  background-color: #1c1c1c;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
}

.table tbody tr {
  transition: background-color 0.3s ease;
}

.table tbody tr:hover {
  background-color: #2d2d2d;
}

.table td,
.table th {
  vertical-align: middle;
  text-align: center;
  padding: 0.75rem;
  border-top: 1px solid #444;
  color: #f1f1f1;
  font-size: 1rem;
}

/* Botones dentro de tablas */
.table .btn {
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
}

/* Aumentar legibilidad en pantallas oscuras */
.table-dark {
  background-color: #1f1f1f;
}

/* static/css/style.css */

/* ... [Contenido anterior permanece sin cambios] ... */

/* Aumentar legibilidad en pantallas oscuras */
.table-dark {
  background-color: #1f1f1f;
}

/* 11. RESPONSIVIDAD MÓVIL PARA TABLAS */
@media (max-width: 768px) {
  .table thead {
    display: none;
  }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table tr {
    margin-bottom: 1rem;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 0.5rem;
    background-color: #2d2d2d;
  }

  .table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
    border: none;
    border-bottom: 1px solid #444;
  }

  .table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 50%;
    padding-left: 1rem;
    font-weight: bold;
    text-align: left;
    color: #ffb347;
  }
}

/* 12. TRANSICIONES SUAVES */
body,
.table td,
.btn {
  transition: all 0.2s ease-in-out;
}



body {
  background-color: #f8f9fa;
}
h2.section-title {
  font-size: 2rem;
  font-weight: 700;
}
.card-generator {
  transition: transform .2s, box-shadow .2s;
}
.card-generator:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.footer-text {
  color: #6c757d;
  text-align: center;
  margin-top: 40px;
  padding-bottom: 20px;
}



/* Aumenta el contraste del tbody si es necesario */
tbody tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Refuerza texto blanco en celdas */
.table-dark th,
.table-dark td {
  color: #f8f9fa !important;
}

/* Borde claro en filas */
.table-dark tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}


/* Estilo para filas de tablas en modo oscuro */
body.bg-dark .table tbody tr {
  background-color: #1e293b !important;
  color: #f8f9fa;
}

body.bg-dark .table tbody tr td {
  background-color: #1e293b !important;
  color: #f8f9fa !important;
  border-color: #2d3748;
}

body.bg-dark .table tbody tr:hover {
  background-color: #334155 !important;
}



/* Ajuste específico para tablas oscuras con franjas */
.table-dark.table-striped > tbody > tr:nth-of-type(odd) > td,
.table-dark.table-striped > tbody > tr:nth-of-type(odd) > th {
  background-color: #2a3038; /* gris oscuro */
}

.table-dark.table-striped > tbody > tr:nth-of-type(even) > td,
.table-dark.table-striped > tbody > tr:nth-of-type(even) > th {
  background-color: #242933; /* aún más oscuro */
}

/* Asegura buen contraste con el hover */
.table-dark.table-hover tbody tr:hover {
  background-color: #1f242b;
}
