html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}


#sidebar {
    width: 250px;
    position: fixed;
    left: 0;
    top: auto;
    padding: 20px;
    height: 100vh; /* Hace que la barra ocupe toda la altura de la pantalla */
    transition: width 0.3s ease;
    overflow-y: auto; /* Agrega scroll si hay muchos elementos */
}

.barraMenu {
    background-color: lightblue;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3); /* Sombra suave */
    width: 150px;
    height: stretch;
}

.nav-link {
    display: flex;
    flex-direction: column; /* Acomoda los elementos en columna */
    align-items: center; /* Centra la imagen y el texto */
    text-align: center;
}

    .nav-link img {
        width: 40px; /* Ajusta el tama�o de la imagen seg�n necesites */
        height: auto;
        margin-bottom: 5px; /* Espacio entre la imagen y el texto */
    }


#content {
    /*margin-left: 250px;*/
    width: 100%;
    transition: margin-left 0.3s ease;
}
/* Encabezado superior */
.navbar {
    background-color: #001f72;
    padding: 10px 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-self: center
}

    .navbar .logo {
        display: flex;
        align-items: center;
    }

        .navbar .logo img {
            width: 200px;
            margin-right: 101px;
            margin-left: 50px;
        }

    .navbar .user {
        display: flex;
        align-items: center;
    }

        .navbar .user i {
            font-size: 20px;
            margin-right: 5px;
        }

/* Cuando el men� est� colapsado */
#sidebar.collapsed {
    visibility: hidden;
    overflow: hidden;
    height: 0%;
}

    #sidebar.collapsed h3,
    #sidebar.collapsed .nav-link {
        position: absolute;
        left: -100%;
        width: auto;
    }

#content.expanded {
    margin-left: 40px;
    height: 100%;
}

/* Estilo del bot�n */
#sidebarToggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 24px;
}



body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}



.header {
    font-size: 24px;
    font-weight: bold;
    padding: 10px 0;
}

.form-container {
    background-color: #e8eaf6;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .form-container input {
        border: 1px solid #ccc;
        padding: 5px;
        border-radius: 3px;
    }

.btn {
    background-color: #002080;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

    .btn:hover {
        background-color: #001566;
    }

.table-container {
    width: 100%;
    margin-top: 20px;
}

.table {
    width: 100%;
    align-content: center;
    border-collapse: collapse;
    overflow-y:auto;
}

    .table th {
        background-color: #00165D;
        color: white;
        padding: 10px;
        text-align: left;
    }

    .table td {
        padding: 8px;
        border-bottom: 1px solid #ccc;
    }

    .table tr:nth-child(even) {
        background-color: #f0f0f0;
    }

.search-box {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3); /* Sombra suave */
}

    .search-box input {
        padding: 5px;
        border: 1px solid #ccc;
        border-radius: 3px;
    }

.search-icon {
    color: #002080;
    cursor: pointer;
}

.custom-button {
    color: blue;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}
.btn-primary {
    color: antiquewhite;
    background-color: #002080;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}


.plus-icon {
    font-size: 20px;
    font-weight: bold;
    color: blue;
    margin-right: 5px;
}

.table-filtro {
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3); /* Sombra suave */
    background-color: azure;
}


.pagination {
    display: inherit;
    justify-content: center;
    margin-top: 10px;
}

    .pagination a {
        padding: 8px 12px;
        margin: 0 5px;
        margin-left: inherit;
        background-color: #007bff;
        color: white;
        border-radius: 5px;
    }

    .pagination .active a {
        background-color: #0056b3;
    }

    .pagination a:hover {
        background-color: #0056b3;
    }

.tdFiltros {
    background-color: #f3f4ff;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3); /* Sombra suave */
}

input.custom-input {
    width: 100%; /* Ocupa el ancho completo del contenedor */
    padding: 10px; /* Espaciado interno */
    border: 2px solid #007bff; /* Borde azul */
    border-radius: 8px; /* Bordes redondeados */
    font-size: 16px; /* Tama�o del texto */
    outline: none; /* Quita el borde al hacer clic */
    transition: all 0.3s ease-in-out; /* Transici�n suave */
}

select.custom-input {
    width: 100%; /* Ocupa el ancho completo del contenedor */
    padding: 10px; /* Espaciado interno */
    border: 2px solid #007bff; /* Borde azul */
    border-radius: 8px; /* Bordes redondeados */
    font-size: 16px; /* Tama�o del texto */
    outline: none; /* Quita el borde al hacer clic */
    transition: all 0.3s ease-in-out; /* Transici�n suave */
}

/* Efecto al hacer clic en el input */
input.custom-input:focus {
    border-color: #0056b3; /* Azul m�s oscuro al seleccionar */
    box-shadow: 0px 0px 5px rgba(0, 91, 187, 0.5); /* Sombra sutil */
}


/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f8fafc;
    color: #334155;
    min-height: 100vh;
}

/* Layout */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.hidden {
    display: none;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background-color: white;
    border-bottom: 1px solid #e2e8f0;
    height: 4rem;
}

.header-content {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    background-color: #2563eb;
    border-radius: 9999px;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2563eb;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    background-color: #f1f5f9;
    font-size: 0.875rem;
}

    .search-input:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    }

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
}

    .icon-button:hover {
        background-color: #f1f5f9;
    }

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    position: relative;
}

    .user-menu:hover {
        background-color: #f1f5f9;
    }

.avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #64748b;
}

/* Main Layout */
.main-layout {
    display: flex;
    min-height: calc(100vh - 4rem);
}

/* Sidebar */
.sidebar {
    width: 16rem;
    border-right: 1px solid #e2e8f0;
    background-color: white;
    padding: 1rem;
    display: none;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #334155;
    font-weight: 500;
}

    .sidebar-item:hover {
        background-color: #f1f5f9;
    }

    .sidebar-item.active {
        background-color: #eff6ff;
        color: #2563eb;
    }

/* Main Content */
.main-content {
    flex: 1;
    padding: 1.5rem;
}

/* Tabs */
.tabs {
    width: 100%;
}

.tabs-list {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.tab-trigger {
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
}

    .tab-trigger:hover {
        color: #334155;
    }

    .tab-trigger.active {
        color: #2563eb;
        border-bottom-color: #2563eb;
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

/* Section Headers */
.section-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0f172a;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
}

.button-primary {
    background-color: #2563eb;
    color: white;
}

    .button-primary:hover {
        background-color: #1d4ed8;
    }

.button-outline {
    background-color: transparent;
    border: 1px solid #e2e8f0;
    color: #334155;
}

    .button-outline:hover {
        background-color: #f8fafc;
    }

/* Cards */
.card {
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.card-body {
    padding: 1.5rem;
}

/* Tables */
.table-container {
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: #64748b;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

tr:last-child td {
    border-bottom: none;
}

.table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

input, select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

    input:focus, select:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    }

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    display: none;
}

    .modal-backdrop.active {
        display: flex;
    }

.modal {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 32rem;
    max-height: 90vh;
    overflow-y: auto;
    display: block;
}
.modal_xl {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 90rem;   /* antes 32rem — ahora mucho más ancho */
    max-height: 95vh;   /* un poco más alto */
    overflow-y: auto;
    padding: 2rem;      /* agrega espaciado interno si necesitas */
    display: block;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #0f172a;
}

.modal-description {
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

/* Product Card */
.product-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

    .product-card:hover {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

.product-image {
    aspect-ratio: 1 / 1;
    background-color: #f1f5f9;
    overflow: hidden;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 1rem;
}

.product-title {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
}

.product-price {
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 1rem;
}

.product-footer {
    padding: 0 1rem 1rem 1rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Responsive */
@media (min-width: 640px) {
    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .sidebar {
        display: block;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 14rem;
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    z-index: 50;
    display: none;
}

    .dropdown-menu.active {
        display: block;
    }

.dropdown-header {
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #334155;
    text-decoration: none;
    transition: background-color 0.2s;
}

    .dropdown-item:hover {
        background-color: #f1f5f9;
    }

.dropdown-separator {
    height: 1px;
    background-color: #e2e8f0;
    margin: 0.25rem 0;
}

.alert-box {
    position: fixed;
    top: 80px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 6px;
    color: white;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 280px;
    max-width: 400px;
    animation: slideIn 0.4s ease-out;
}

.alert-success {
    background-color: #28a745;
}

.alert-danger {
    background-color: #dc3545;
}

.alert-warning {
    background-color: #ffc107;
    color: #212529;
}

.alert-info {
    background-color: #17a2b8;
}

.alert-close {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: inherit;
    cursor: pointer;
    margin-left: auto;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}
