/* ── Badge de solución en sidebar ── */
.solucion-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 12px;
    background: linear-gradient(90deg, #00BFFF22, #1DE9B622);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1DE9B6;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #0A0E17;
    color: #FFFFFF;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #10151F;
    padding: 10px 20px;
    border-bottom: 1px solid #1DE9B6;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 0 6px #00BFFF);
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6em;
    font-weight: 600;
    background: linear-gradient(90deg, #00BFFF 0%, #1DE9B6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.6);
}

.brand-name span {
    font-weight: 700;
    color: #00BFFF;
}

.brand-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.brand-link:hover {
    opacity: 0.9;
}

.icon {
    margin-left: 15px;
    cursor: pointer;
    font-size: 1.3em;
}

.container {
    padding: 20px;
}

.welcome h2 {
    color: #00BFFF;
    margin-bottom: 0;
}

.summary {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.card {
    background-color: #10151F;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    width: 22%;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
    font-size: 1.5em;
}

.quick-access, .analytics {
    margin: 30px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    text-align: center;
}

.tile {
    background-color: #10151F;
    border-radius: 10px;
    padding: 15px;
    transition: 0.3s;
    box-shadow: 0 0 8px rgba(0, 191, 255, 0.2);
}

.tile:hover {
    box-shadow: 0 0 15px #00BFFF;
    transform: scale(1.05);
}

.tile img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 5px #00BFFF);
}

footer {
    text-align: center;
    padding: 15px;
    background-color: #10151F;
    border-top: 1px solid #1DE9B6;
    color: #aaa;
}

/* --- Diseño Responsive --- */

/* Pantallas menores a 900px (tablets) */
@media (max-width: 900px) {
    .summary {
        flex-wrap: wrap;
        justify-content: center;
    }

    .card {
        width: 45%;
        margin-bottom: 15px;
    }
}

/* Pantallas menores a 600px (celulares) */
@media (max-width: 600px) {

    body {
        font-size: 15px;
    }

    .navbar {
        flex-direction: column;
        text-align: center;
    }

    .logo h1 {
        font-size: 1.2em;
    }

    .summary {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        margin-bottom: 15px;
        font-size: 1.3em;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .tile img {
        width: 35px;
        height: 35px;
    }

    footer {
        font-size: 0.9em;
    }
}

/* --- Landing Page --- */

.landing-body {
    background: radial-gradient(circle at top, #0A0E17 60%, #000000 100%);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.landing-container {
    text-align: center;
    max-width: 400px;
    padding: 40px 25px;
    background-color: #10151F;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.25);
}

.landing-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px #00BFFF);
}

.subtitle {
    color: #1DE9B6;
    font-size: 0.9em;
    margin-bottom: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input {
    padding: 10px;
    border-radius: 6px;
    border: none;
    outline: none;
    background-color: #0A0E17;
    color: white;
    box-shadow: inset 0 0 8px rgba(0, 191, 255, 0.3);
}

.login-form input:focus {
    box-shadow: 0 0 10px #00BFFF;
}

.btn-login {
    background: linear-gradient(90deg, #00BFFF, #1DE9B6);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    color: #0A0E17;
}

.btn-login:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #1DE9B6;
}

.landing-footer {
    margin-top: 25px;
    font-size: 0.8em;
    color: #888;
}

input, button {
    font-size: 16px; /* evita el zoom automático en móviles */
}

/* --- Loader Animado IA --- */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0A0E17 60%, #000 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-circle {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(0, 191, 255, 0.3);
    border-top: 4px solid #1DE9B6;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-logo {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px #00BFFF);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px #00BFFF); }
    to { filter: drop-shadow(0 0 20px #1DE9B6); }
}

.loader-text {
    color: #1DE9B6;
    margin-top: 15px;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.6);
}

.privacy-link {
    font-size: 0.8em;
    color: #bbb;
    margin-top: 10px;
}

.privacy-link a {
    color: #1DE9B6;
    text-decoration: none;
}

.privacy-link a:hover {
    text-decoration: underline;
}

/* --- Layout con menú lateral --- */
.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 230px;
    background-color: #10151F;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #1DE9B6;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-logo img {
    width: 50px;
    filter: drop-shadow(0 0 8px #00BFFF);
}

.sidebar-logo h2 {
    font-size: 1.2em;
    color: #1DE9B6;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #ccc;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: #0A0E17;
    color: #1DE9B6;
    box-shadow: 0 0 10px rgba(0,191,255,0.3);
}

.sidebar-menu img {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 4px #00BFFF);
}

/* Contenido principal */
.main-content {
    margin-left: 230px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar superior */
.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 20px;
    background-color: #10151F;
    border-bottom: 1px solid #1DE9B6;
}

.content {
    flex: 1;
    padding: 25px;
}

/* Menú inferior para móviles */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #10151F;
    border-top: 1px solid #1DE9B6;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 999;
}

.bottom-nav a {
    text-align: center;
    color: #ccc;
    text-decoration: none;
    font-size: 0.8em;
}

.bottom-nav a.active {
    color: #1DE9B6;
}

.bottom-nav img {
    width: 22px;
    height: 22px;
    display: block;
    margin: 0 auto 4px;
}

/* Responsive */
@media (max-width: 900px) {
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
    }
    .bottom-nav {
        display: flex;
    }
    .content {
        padding-bottom: 70px; /* espacio para la barra inferior */
    }
}

/* === HOME === */
.home-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    text-align: center;
    padding: 2rem;
}

.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-logo .logo {
    height: 45px;
}

.btn-login {
    background-color: var(--accent-color, #00bfa5);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.btn-login:hover {
    background-color: #009c87;
}

.home-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.home-description {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 700px;
}

.home-image {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.home-footer {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 2rem;
}
.home-footer a {
    color: var(--accent-color, #00bfa5);
}

.logout-icon i {
    color: #1DE9B6;
    text-shadow: 0 0 8px #00BFFF, 0 0 16px #1DE9B6;
    transition: 0.3s ease;
}

.logout-icon:hover i {
    color: #00BFFF;
    text-shadow: 0 0 12px #1DE9B6, 0 0 24px #00BFFF;
    transform: scale(1.2);
}

.flash-messages {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  width: auto;
  max-width: 350px;
}

.alert {
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  animation: fadeInOut 4s ease forwards;
}

.alert-success { background-color: #28a745; }
.alert-info { background-color: #17a2b8; }
.alert-warning { background-color: #ffc107; color: #000; }
.alert-danger, .alert-error { background-color: #dc3545; }

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-10px); }
  10%, 90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

.tabla-ventas {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #10151F;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,191,255,0.2);
}

.tabla-ventas th, .tabla-ventas td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #1DE9B6;
}

.tabla-ventas th {
  background-color: #0A0E17;
  color: #1DE9B6;
  text-transform: uppercase;
  font-weight: 600;
}

.tabla-ventas tr:hover {
  background-color: rgba(0,191,255,0.1);
}

.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filtros input, .filtros select, .filtros button {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background-color: #0A0E17;
  color: white;
  box-shadow: 0 0 5px rgba(0,191,255,0.3);
}

.filtros button {
  background: linear-gradient(90deg, #00BFFF, #1DE9B6);
  color: #0A0E17;
  cursor: pointer;
  font-weight: 600;
}

.filtros button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #1DE9B6;
}

/* === BOTONES DE ACCIONES EN DETALLE DE VENTA === */
.acciones form {
  display: inline-block;
  margin: 5px;
}

.acciones .btn {
  background: linear-gradient(90deg, #00BFFF, #1DE9B6);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  color: #0A0E17;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(0,191,255,0.4);
}

.acciones .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #1DE9B6;
}

/* Colores personalizados según acción */
.acciones .btn-pagar {
  background: linear-gradient(90deg, #1DE9B6, #00BFFF);
}

.acciones .btn-cancelar {
  background: linear-gradient(90deg, #FF4E50, #F9D423);
  color: #0A0E17;
  box-shadow: 0 0 10px rgba(255,78,80,0.4);
}

.acciones .btn-cancelar:hover {
  box-shadow: 0 0 15px rgba(249,212,35,0.6);
}
.detalle-venta-titulo {
  font-size: 1.8em;
  color: #1DE9B6;
  text-shadow: 0 0 10px rgba(0,191,255,0.6);
  border-bottom: 1px solid #1DE9B6;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.detalle-venta-titulo span {
  color: #00BFFF;
  text-shadow: 0 0 12px #00BFFF;
}
/* === LINK DEL ID DE LA COMPRA (tabla ventas) === */
.tabla-ventas a {
  color: #1DE9B6;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  text-shadow: 0 0 5px rgba(0,191,255,0.6);
}

.tabla-ventas a:hover {
  color: #00BFFF;
  text-shadow: 0 0 12px rgba(29,233,182,0.8);
  transform: scale(1.05);
}
/* === BOTÓN VOLVER AL LISTADO === */
.btn-volver {
  display: inline-block;
  margin-top: 25px;
  background: linear-gradient(90deg, #00BFFF, #1DE9B6);
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  color: #0A0E17;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0,191,255,0.5);
  transition: 0.3s ease;
  text-transform: uppercase;
}

.btn-volver:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(29,233,182,0.8);
  background: linear-gradient(90deg, #1DE9B6, #00BFFF);
}

/* === SUBMENÚ DE VENTAS === */
.submenu-ventas {
  display: flex;
  gap: 12px;
  background-color: #0A0E17;
  padding: 15px 20px;
  border-bottom: 1px solid #1DE9B6;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,191,255,0.2);
  justify-content: center;
  margin-bottom: 25px;
}

.submenu-btn {
  text-decoration: none;
  color: #1DE9B6;
  background: #10151F;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(0,191,255,0.2);
  transition: 0.3s ease;
  letter-spacing: 0.5px;
}

.submenu-btn:hover {
  background: linear-gradient(90deg, #00BFFF, #1DE9B6);
  color: #0A0E17;
  box-shadow: 0 0 15px rgba(0,191,255,0.5);
  transform: scale(1.05);
}

.submenu-btn.active {
  background: linear-gradient(90deg, #00BFFF, #1DE9B6);
  color: #0A0E17;
  box-shadow: 0 0 15px rgba(29,233,182,0.8);
  transform: scale(1.05);
}

/* ---------------------------
   Estilos para Nueva Venta
   --------------------------- */

/* Contenedor del formulario (layout flexible) */
.formulario-venta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

/* Campo individual (label + control) */
.campo-form {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 220px;
}

.campo-form label {
  color: #cfeffb;
  font-weight: 600;
  min-width: 100px;
  display: inline-block;
}

/* Selects e inputs del formulario */
.campo-form select,
.campo-form input[type="number"],
.campo-form input[type="text"] {
  background-color: #0A0E17;
  color: #fff;
  border: 1px solid rgba(29,233,182,0.06);
  padding: 8px 10px;
  border-radius: 8px;
  outline: none;
  box-shadow: inset 0 0 8px rgba(0,191,255,0.03);
  transition: box-shadow .18s ease, transform .12s ease;
  min-width: 160px;
}

.campo-form select:focus,
.campo-form input:focus {
  box-shadow: 0 0 10px rgba(0,191,255,0.22);
  transform: translateY(-1px);
}

/* Botones generales usados en el formulario */
.btn {
  background: linear-gradient(90deg, #00BFFF, #1DE9B6);
  color: #0A0E17;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0,191,255,0.12);
  transition: transform .12s ease, box-shadow .18s ease;
}

.btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 18px rgba(29,233,182,0.35);
}

/* Botón de guardar (más grande) */
.btn-guardar {
  background: linear-gradient(90deg, #00E0FF, #1DE9B6);
  padding: 10px 18px;
  border-radius: 10px;
  color: #06121a;
  box-shadow: 0 0 18px rgba(29,233,182,0.5);
}

/* Botón volver (ya lo tienes, se mantiene) */
.acciones-form {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

/* Tabla de items (coherente con tabla-ventas) */
.tabla-detalle {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background-color: #10151F;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,191,255,0.06);
}

.tabla-detalle thead th {
  background-color: #0A0E17;
  color: #1DE9B6;
  text-transform: uppercase;
  font-weight: 700;
  padding: 12px;
  border-bottom: 1px solid rgba(29,233,182,0.12);
  text-align: left;
}

.tabla-detalle tbody td {
  padding: 12px;
  border-bottom: 1px solid rgba(29,233,182,0.06);
  color: #ddd;
  vertical-align: middle;
}

/* Alineación para precios (mejor legibilidad) */
.tabla-detalle td:nth-child(2),
.tabla-detalle td:nth-child(3),
.tabla-detalle td:nth-child(4) {
  text-align: center;
  font-weight: 600;
}

/* Botón de borrar ítem */
.tabla-detalle button {
  border: none;
  background: linear-gradient(90deg, #FF4E50, #F9D423);
  color: #0A0E17;
  font-weight: 700;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,78,80,0.18);
  transition: transform .12s ease;
}

.tabla-detalle button:hover { transform: scale(1.05); }

/* Totales (subtotal, iva, total) */
.totales {
  margin-top: 12px;
  color: #cfeffb;
  font-weight: 600;
}

.totales p {
  margin: 6px 0;
  font-size: 1rem;
}

.totales strong { font-size: 1.1rem; color: #fff; }

/* Título de sección más visible */
.titulo-seccion {
  color: #00BFFF;
  font-size: 1.6rem;
  margin-bottom: 14px;
  text-shadow: 0 0 8px rgba(0,191,255,0.18);
}

/* Pequeñas mejoras responsivas */
@media (max-width: 900px) {
  .formulario-venta {
    flex-direction: column;
    align-items: stretch;
  }
  .campo-form {
    min-width: 100%;
    justify-content: flex-start;
  }
  .campo-form label {
    min-width: 120px;
  }
  .tabla-detalle thead th, .tabla-detalle tbody td {
    padding: 10px;
  }
}

.reportes-resumen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.tarjeta-reporte {
  background: linear-gradient(135deg, #111827, #1f2937);
  border: 1px solid #3b82f6;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  color: #e5e7eb;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.tarjeta-reporte h3 {
  font-size: 1rem;
  color: #93c5fd;
}

.tarjeta-reporte p {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 5px;
}

.graficos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.grafico canvas {
  max-height: 280px;
  width: 100%;
}

.chartjs-render-monitor {
  background: transparent;
}

.grafico {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #1DE9B6 #0A0E17;
}

.grafico::-webkit-scrollbar {
  height: 6px;
}

.grafico::-webkit-scrollbar-thumb {
  background-color: #1DE9B6;
  border-radius: 10px;
}

.grafico h3 {
  text-align: center;
  color: #93c5fd;
  margin-bottom: 10px;
}

.filtros-reportes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  background: #111827;
  border: 1px solid #3b82f6;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.filtros-reportes label {
  display: block;
  font-size: 0.9rem;
  color: #93c5fd;
  margin-bottom: 0.3rem;
}

.filtros-reportes input,
.filtros-reportes select {
  background: #1f2937;
  color: #e5e7eb;
  border: 1px solid #3b82f6;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  min-width: 140px;
}

.btn-filtrar {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-filtrar:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: scale(1.05);
}

/* ---------------------------
   === SECCIÓN INVENTARIO ===
   --------------------------- */

.submenu-inventario {
  display: flex;
  gap: 12px;
  background-color: #0A0E17;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 191, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.06);
  justify-content: center;
  margin-bottom: 25px;
}

.submenu-inventario a {
  text-decoration: none;
  color: #1DE9B6;
  background: #10151F;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(0,191,255,0.08);
  transition: 0.3s ease;
  letter-spacing: 0.5px;
}

.submenu-inventario a:hover,
.submenu-inventario a.active {
  background: linear-gradient(90deg, #00BFFF, #1DE9B6);
  color: #0A0E17;
  box-shadow: 0 0 15px rgba(29,233,182,0.8);
  transform: scale(1.03);
}

/* === TABLA INVENTARIO === */
.tabla-inventario {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #10151F;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,191,255,0.2);
}

.tabla-inventario td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #1DE9B6;
}

.tabla-inventario th {
  background-color: #0A0E17;
  color: #1DE9B6;
  text-transform: uppercase;
  font-weight: 600;
}

.tabla-inventario tr:hover {
  background-color: rgba(0,191,255,0.1);
}

/* Mejor legibilidad para celdas numéricas */
.tabla-inventario td.numeric {
  text-align: right;
  font-weight: 600;
}

/* === BOTONES DE ACCIÓN EN INVENTARIO === */


/* === FILTROS === */
.filtros-inventario {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  align-items: center;
}

.filtros-inventario input,
.filtros-inventario select {
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background-color: #0A0E17;
  color: #fff;
  box-shadow: inset 0 0 8px rgba(0,191,255,0.03);
}

.filtros-inventario button {
  background: linear-gradient(90deg, #00BFFF, #1DE9B6);
  color: #0A0E17;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease;
}

.filtros-inventario button:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(29,233,182,0.22);
}

/* === TÍTULO SECCIÓN INVENTARIO === */
.titulo-inventario {
  font-size: 1.6rem;
  color: #00BFFF;
  text-shadow: 0 0 10px rgba(0,191,255,0.12);
  border-bottom: 1px solid rgba(0,191,255,0.06);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* Contenedor principal del módulo */
.contenido-inventario {
  padding: 20px;
  background: #0A0E17;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,191,255,0.04);
}

/* botones de inventario */
/* Icon buttons — manteniendo tus clases existentes */
/* Mantener los botones en la misma línea dentro de la celda */
.acciones-dashboard {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* espacio entre los botones */
  margin: 0; /* elimina el margen vertical que los separaba */
  padding: 0;
}

.acciones-dashboard button.fa-solid {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #00ffff; /* cian neón */
  text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #00ffff;
  transition: all 0.3s ease;
}

.acciones-dashboard button.fa-solid:hover {
  color: #ffffff;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 40px #00ffff;
  transform: scale(1.1);
}

/* Small screen adaptation to keep layout */
@media (max-width: 800px) {
  .btn-accion { width: 40px; height: 40px; }
  .icono-accion { width: 18px; height: 18px; }
}
/* ===== SweetAlert2 Tema Oscuro Neón ===== */
.swal2-popup {
  background: radial-gradient(circle at top left, #0d1117 0%, #111827 100%);
  border: 1px solid rgba(0, 255, 255, 0.25);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
  color: #e5e7eb;
  border-radius: 10px;
  font-family: "Poppins", sans-serif;
}

.swal2-title {
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.swal2-html-container {
  color: #a3bffa;
  font-size: 1rem;
}

.swal2-input,
.swal2-select {
  background: rgba(17, 24, 39, 0.85);
  color: #00ffff;
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 6px;
  box-shadow: inset 0 0 5px rgba(0, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.swal2-input:focus,
.swal2-select:focus {
  outline: none;
  border-color: #00eaff;
  box-shadow: 0 0 10px #00eaff;
}

.swal2-confirm {
  background: linear-gradient(90deg, #00eaff, #00ffaa);
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  text-shadow: none;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.swal2-confirm:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
}

.swal2-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #a3bffa;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  transition: all 0.15s ease;
}

.swal2-cancel:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Efecto de brillo en botones */
.swal2-actions button {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.swal2-actions button:focus {
  outline: none !important;
  box-shadow: 0 0 10px #00ffff !important;
}

/* para el home */
.solution-block {
    margin-bottom: 3rem;
}

.solution-divider {
    width: 100%;
    max-width: 600px;
    height: 1px;
    margin: 2.5rem auto;
    background: linear-gradient(90deg, transparent, #00bfa5, transparent);
    opacity: 0.5;
}