.contenedor-inventario {
    min-height: 100vh;
    padding: 35px 45px;
    background: linear-gradient(135deg, #111111, #2d2d2d, #7a0000);
    font-family: Arial, Helvetica, sans-serif;
}

.encabezado-modulo {
    background-color: #ffffff;
    padding: 28px 32px;
    border-radius: 22px;
    border-bottom: 6px solid #b30000;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.encabezado-modulo h1 {
    color: #b30000;
    font-weight: bold;
    margin-bottom: 6px;
}

.encabezado-modulo p {
    color: #555555;
    margin-bottom: 0;
}

.btn-agregar {
    background-color: #b30000;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 13px;
    font-weight: bold;
    transition: 0.3s ease;
}

.btn-agregar:hover {
    background-color: #850000;
    color: #ffffff;
    transform: translateY(-2px);
}

.alerta-inventario {
    border-radius: 15px;
    font-weight: 600;
}

.panel-inventario {
    background-color: #ffffff;
    border-radius: 22px;
    padding: 25px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

.barra-busqueda {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.input-busqueda {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.input-busqueda i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #b30000;
}

.input-busqueda input {
    width: 100%;
    padding: 13px 15px 13px 42px;
    border: 1px solid #cfcfcf;
    border-radius: 13px;
    outline: none;
}

.input-busqueda input:focus,
.filtro-inventario:focus {
    border-color: #b30000;
    box-shadow: 0 0 7px rgba(179, 0, 0, 0.28);
}

.filtro-inventario {
    max-width: 250px;
    min-width: 200px;
    border-radius: 12px;
    padding: 12px;
}

.btn-buscar,
.btn-limpiar {
    text-decoration: none;
    border: none;
    padding: 12px 20px;
    border-radius: 13px;
    font-weight: bold;
}

.btn-buscar {
    background-color: #b30000;
    color: #ffffff;
}

.btn-limpiar {
    background-color: #444444;
    color: #ffffff;
}

.btn-buscar:hover {
    background-color: #850000;
    color: #ffffff;
}

.btn-limpiar:hover {
    background-color: #222222;
    color: #ffffff;
}

.tabla-responsive {
    width: 100%;
    overflow-x: auto;
}

.tabla-inventario {
    width: 100%;
    border-collapse: collapse;
    min-width: 1050px;
}

.tabla-inventario thead {
    background-color: #111111;
    color: #ffffff;
}

.tabla-inventario th,
.tabla-inventario td {
    padding: 14px 15px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.tabla-inventario tbody tr:hover {
    background-color: #f5f5f5;
}

.badge-stock {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.badge-disponible {
    background-color: #d8f5df;
    color: #0f7a2a;
}

.badge-bajo {
    background-color: #fff3cd;
    color: #9a6a00;
}

.badge-agotado {
    background-color: #ffd7d7;
    color: #b30000;
}

.acciones-tabla {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.btn-editar,
.btn-eliminar {
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #ffffff;
    transition: 0.3s ease;
}

.btn-editar {
    background-color: #444444;
}

.btn-editar:hover {
    background-color: #222222;
}

.btn-eliminar {
    background-color: #b30000;
}

.btn-eliminar:hover {
    background-color: #850000;
}

.sin-registros {
    padding: 30px !important;
    color: #777777;
    font-weight: bold;
}

.modal-inventario {
    border-radius: 20px;
    overflow: hidden;
}

.modal-header-inventario {
    background-color: #b30000;
    color: #ffffff;
}

.modal-body-scroll {
    max-height: 70vh;
    overflow-y: auto;
}

.btn-guardar {
    background-color: #b30000;
    color: #ffffff;
    font-weight: bold;
    border-radius: 10px;
}

.btn-guardar:hover {
    background-color: #850000;
    color: #ffffff;
}

.texto-eliminar {
    color: #333333;
    font-size: 18px;
    font-weight: 600;
}

.producto-eliminar {
    color: #b30000;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .contenedor-inventario {
        padding: 22px 15px;
    }

    .encabezado-modulo {
        text-align: center;
        justify-content: center;
    }

    .btn-agregar,
    .btn-buscar,
    .btn-limpiar {
        width: 100%;
        text-align: center;
    }

    .barra-busqueda {
        flex-direction: column;
    }

    .input-busqueda,
    .filtro-inventario {
        width: 100%;
        max-width: 100%;
    }

    .contenedor-paginacion {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.info-paginacion {
    color: #555555;
    font-weight: 600;
}

.paginacion {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
    flex-wrap: wrap;
}

.paginacion li a,
.paginacion li span {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #cfcfcf;
    color: #333333;
    background-color: #ffffff;
}

.paginacion li a:hover {
    background-color: #b30000;
    color: #ffffff;
    border-color: #b30000;
}

.paginacion li.active span {
    background-color: #b30000;
    color: #ffffff;
    border-color: #b30000;
}

.paginacion li.disabled span {
    background-color: #eeeeee;
    color: #999999;
    cursor: not-allowed;
}

@media screen and (max-width: 768px) {
    .contenedor-paginacion {
        justify-content: center;
        text-align: center;
    }

    .info-paginacion {
        width: 100%;
    }

    .paginacion {
        justify-content: center;
    }
}
}
