:root {
            --sidebar-bg: #1c2333;
            --sidebar-accent: #5d78ff;
            --sidebar-hover: #2a3449;
            --header-bg: #ffffff;
            --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            --primary-color: #5d78ff;
            --success-color: #0abb87;
            --danger-color: #fd397a;
            --warning-color: #ffb822;
        }
        
        * {
            box-sizing: border-box;
        }
        
        body {
            background-color: #f5f7fa;
            color: #3f4254;
            font-family: 'Poppins', sans-serif;
            -webkit-font-smoothing: antialiased;
        }
        
        /* Sidebar mejorado */
        .sidebar {
            background: var(--sidebar-bg) !important;
            box-shadow: 3px 0 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            z-index: 1000;
        }
        
        .sidebar-logo {
            background: rgba(0, 0, 0, 0.15) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        .logo-header {
            background: transparent !important;
            padding: 0 20px;
            height: 70px;
        }
        
        .logo {
            display: flex;
            align-items: center;
            height: 100%;
        }
        
        .logo img {
            height: 30px;
            transition: all 0.3s ease;
        }
        
        .nav-toggle {
            display: flex;
            gap: 5px;
        }
        
        .btn-toggle {
            background: rgba(255, 255, 255, 0.1) !important;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            width: 34px;
            height: 34px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            transition: all 0.3s ease;
        }
        
        .btn-toggle:hover {
            background: rgba(255, 255, 255, 0.2) !important;
            color: white;
        }
        
        .topbar-toggler {
            background: transparent;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            width: 34px;
            height: 34px;
            border-radius: 6px;
            transition: all 0.3s ease;
        }
        
        .topbar-toggler:hover {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }
        
        /* Menú de navegación */
        .nav {
            padding: 15px 0;
        }
        
        .nav-item {
            margin-bottom: 2px;
        }
        
        .nav-link {
            display: flex;
            align-items: center;
            color: rgba(255, 255, 255, 0.7);
            padding: 12px 25px !important;
            border-radius: 0;
            position: relative;
            transition: all 0.3s ease;
            font-size: 14px;
            font-weight: 400;
        }
        
        .nav-link:hover, .nav-link.active {
            color: white;
            background: var(--sidebar-hover);
        }
        
        .nav-link.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 4px;
            background: var(--sidebar-accent);
        }
        
        .nav-link i {
            margin-right: 12px;
            font-size: 16px;
            width: 20px;
            text-align: center;
        }
        
        .nav-link .gg-chevron-right {
            margin-left: auto;
            transition: transform 0.3s ease;
        }
        
        .nav-link[aria-expanded="true"] .gg-chevron-right {
            transform: rotate(90deg);
        }
        
        .sub-menu {
            background: rgba(0, 0, 0, 0.15);
            padding: 0 !important;
        }
        
        .sub-menu .nav-link {
            padding-left: 60px !important;
            font-size: 13px;
        }
        
        /* Contenido principal */
        .main-panel {
            background: #f5f7fa;
        }
        
        .header {
            background: var(--header-bg);
            box-shadow: var(--header-shadow);
            height: 70px;
            padding: 0 25px;
            z-index: 900;
        }
        
        .header .container-fluid {
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .navbar-brand {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
            color: #1c2333;
            font-size: 1.4rem;
        }
        
        .navbar-brand span {
            color: var(--sidebar-accent);
        }
        
        .header-right {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        
        .notification {
            position: relative;
            color: #7e8299;
            transition: all 0.3s ease;
        }
        
        .notification:hover {
            color: var(--primary-color);
        }
        
        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: var(--danger-color);
            color: white;
            font-size: 10px;
            min-width: 18px;
            height: 18px;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 5px;
        }
        
        .user-profile {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--primary-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 16px;
        }
        
        .user-info {
            line-height: 1.3;
        }
        
        .user-name {
            font-weight: 600;
            font-size: 14px;
            color: #1c2333;
        }
        
        .user-role {
            font-size: 12px;
            color: #7e8299;
        }
        
        /* Contenido de la página */
        .page-header {
            padding: 25px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.03);
            margin-bottom: 25px;
        }
        
        .page-title {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
            color: #1c2333;
            margin: 0;
            font-size: 1.8rem;
        }
        
        .breadcrumb {
            background: transparent;
            padding: 0;
            margin: 10px 0 0;
        }
        
        .breadcrumb-item a {
            color: var(--primary-color);
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .breadcrumb-item a:hover {
            color: #3a56f4;
        }
        
        .content {
            padding: 0 25px 25px;
        }
        
        .card {
            border: none;
            border-radius: 8px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.03);
            margin-bottom: 25px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
        }
        
        .card-header {
            background: white;
            border-bottom: 1px solid #ebedf3;
            padding: 20px 25px;
            border-radius: 8px 8px 0 0 !important;
        }
        
        .card-title {
            font-weight: 600;
            color: #1c2333;
            margin: 0;
            font-size: 1.25rem;
        }
        
        .card-body {
            padding: 25px;
        }
        
        /* Footer */
        .footer {
            background: white;
            padding: 20px 25px;
            border-top: 1px solid #ebedf3;
            color: #7e8299;
            font-size: 13px;
        }
        
        .footer a {
            color: var(--primary-color);
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .footer a:hover {
            color: #3a56f4;
            text-decoration: underline;
        }
        
        /* Responsive */
        @media (max-width: 991px) {
            .sidebar {
                transform: translateX(-100%);
            }
            
            .sidebar.active {
                transform: translateX(0);
            }
            
            .header {
                padding: 0 15px;
            }
            
            .content, .page-header {
                padding: 15px;
            }
        }



        /*
=====================================
** OCULTAR BOTONES TOGGLER EN PC **
=====================================
*/

/* Esta regla se aplica solo a pantallas con un ancho mínimo de 992px (tablets grandes y pc) */
@media (min-width: 992px) {
    .nav-toggle, .topbar-toggler {
        display: none !important;
    }
}


/*
=====================================
** ESTILOS PARA TARJETAS DEL DASHBOARD **
=====================================
*/

.icon-big {
    font-size: 2.5rem;
    min-width: 60px;
}

.card-footer-link {
    display: block;
    padding: 10px 25px;
    background-color: #f8f9fa;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    border-top: 1px solid #ebedf3;
    transition: all 0.3s ease;
}

.card-footer-link:hover {
    color: var(--primary-color);
    background-color: #f0f1f4;
}

.card-footer-link i {
    float: right;
    margin-top: 4px;
}

/* Colores para los iconos */
.icon-primary i { color: var(--primary-color); }
.icon-success i { color: var(--success-color); }
.icon-danger i { color: var(--danger-color); }
.icon-warning i { color: var(--warning-color); }




/*
=====================================
** ESTILOS PARA NOTIFICACIONES HEADER **
=====================================
*/

/* Contenedor de la derecha para alinear bien los iconos */
.header-right {
    display: flex;
    align-items: center;
    gap: 25px; /* Espacio entre la campana y el perfil */
}

/* Estilo del icono de notificación */
.header-right .notification {
    position: relative;
    color: #7e8299; /* Un color de icono estándar */
    font-size: 1.4rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.header-right .notification:hover {
    color: var(--primary-color); /* Color primario al pasar el mouse */
}

/* Insignia para el número de notificaciones */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--danger-color); /* Usamos el color de peligro definido */
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid white;
}

/*
=====================================
** ESTILOS PARA DROPDOWN DE NOTIFICACIONES **
=====================================
*/
.header-right .dropdown-menu {
    width: 320px;
    padding: 0;
    border: 1px solid #ebedf3;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.header-right .dropdown-header {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 10px 15px;
}

.header-right .dropdown-item {
    padding: 10px 15px;
    font-size: 14px;
    white-space: normal; /* Permite que el texto largo se divida en varias líneas */
}

.header-right .dropdown-item:hover {
    background-color: #f0f1f4;
}

.header-right .dropdown-item .text-muted {
    font-size: 12px;
}


/*
=====================================
** ESTILOS PARA PÁGINA DE LOGIN **
=====================================
*/
.login-page {
    background-color: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    max-width: 900px;
    width: 100%;
    margin: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Columna de la izquierda con la marca */
.login-branding-col {
    background-color: #101c5c;
    color: #fff;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-branding-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-top: 20px;
}

.login-branding-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Columna de la derecha con el formulario */
.login-form-col {
    padding: 50px;
}

.login-form-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.form-control {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(93, 120, 255, 0.2);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #3a56f4; /* Un azul un poco más claro */
    border-color: #3a56f4;
}

/* Responsive */
@media (max-width: 991px) {
    .login-branding-col {
        display: none;
    }
}

/*
========================================
** ESTILOS MEJORADOS PARA EL DASHBOARD **
========================================
*/

.dashboard-card {
    border: 1px solid #eee;
    border-radius: 12px; /* Bordes más suaves */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.icon-big {
    font-size: 2.5rem;
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* Fondos con degradado para los iconos */
.icon-primary { background: linear-gradient(45deg, #0d6efd, #0a58ca); }
.icon-warning { background: linear-gradient(45deg, #ffc107, #d39e00); }
.icon-info   { background: linear-gradient(45deg, #0dcaf0, #0aa3c2); }
.icon-success { background: linear-gradient(45deg, #198754, #146c43); }
.icon-danger  { background: linear-gradient(45deg, #dc3545, #b02a37); }


.card-footer-link {
    display: block;
    padding: 0.75rem 1.25rem;
    background-color: #f8f9fa;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    border-top: 1px solid #eee;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.card-footer-link:hover {
    background-color: #e9ecef;
    color: #000;
}

.card-footer-link i {
    float: right;
    transition: transform 0.3s ease;
}

.card-footer-link:hover i {
    transform: translateX(5px);
}

/* Estilos para el gestor de imágenes en el modal */
.image-thumbnail-container {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px;
    background: #f8f9fa;
}
.image-delete-check {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 8px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.image-delete-check label {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Estilos para el contador de imágenes en la tabla de productos */
.image-cell-container {
    position: relative;
    display: inline-block;
}

.image-count-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 5px;
}