
        
        /* Sidebar */
        #sidebar {
            background: var(--sidebar-bg);
            color: #fff;
            height: 100vh;
            position: fixed;
            transition: all 0.3s;
            z-index: 1000;
            left: 0;
            transform: translateX(0);
            box-shadow: 3px 0 15px rgba(0, 0, 0, 0.1);
            max-width: 250px;
            width: 250px;
        }
        
        .sidebar-header {
            padding: 15px 20px;
            background: rgba(0, 0, 0, 0.2);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .sidebar-header h3 {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 0;
            display: flex;
            align-items: center;
        }
        
        .sidebar-header h3 i {
            margin-right: 10px;
        }
        
        .close-sidebar {
            display: none;
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .close-sidebar:hover {
            color: #fff;
        }
        
        .sidebar-menu {
            padding: 20px 0;
            height: calc(100vh - 60px);
            overflow-y: auto;
        }
        
        .sidebar-menu .nav-link {
            color: rgba(255, 255, 255, 0.7);
            padding: 5px 20px;
            margin: 5px 0;
            border-radius: 0;
            transition: all 0.2s;
            display: flex;
            align-items: center;
        }
        
        .sidebar-menu .nav-link:hover,
        .sidebar-menu .nav-link.active {
            color: #fff;
            background: var(--sidebar-active);
        }
        
        .sidebar-menu .nav-link i {
            margin-right: 10px;
            font-size: 1.1rem;
            width: 24px;
            text-align: center;
        }
        
        /* Main Content */
        #content {
            margin-left: 250px;
            width: calc(100% - 250px);
            transition: all 0.3s;
            min-height: 100vh;
        }
        
        /* Overlay para mĂłviles */
        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
            display: none;
        }
        
        /* Top Bar */
        .topbar {
            background: #fff;
            height: var(--header-height);
            box-shadow: 0 1px 15px rgba(0, 0, 0, 0.04);
            padding: 0 20px;
            display: flex;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 99;
        }
        
        .toggle-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: #495057;
            cursor: pointer;
            display: none;
            margin-right: 15px;
        }
        
        /* Page Content */
        .main-content {
            padding: 20px;
            min-height: calc(100vh - var(--header-height));
        }
        
        /* Cards */
        .stat-card {
            border-radius: 10px;
            overflow: hidden;
            border: none;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s;
        }
        
        .stat-card:hover {
            transform: translateY(-5px);
        }
        
        .stat-card .card-icon {
            font-size: 2.5rem;
            opacity: 0.2;
            position: absolute;
            right: 20px;
            top: 20px;
        }
        
        /* Responsive */
        @media (max-width: 992px) {
            #sidebar {
                width: 80px;
                text-align: center;
            }
            
            #sidebar .sidebar-header h3 span,
            #sidebar .nav-link span {
                display: none;
            }
            
            #sidebar .nav-link i {
                margin-right: 0;
                font-size: 1.3rem;
            }
            
            #content {
                margin-left: 80px;
                width: calc(100% - 80px);
            }
        }
        
        @media (max-width: 768px) {
            #sidebar {
                width: 250px;
                transform: translateX(-100%);
            }
            
            #sidebar.active {
                transform: translateX(0);
            }
            
            #sidebar .sidebar-header h3 span,
            #sidebar .nav-link span {
                display: inline;
            }
            
            #sidebar .nav-link i {
                margin-right: 10px;
            }
            
            #content {
                margin-left: 0;
                width: 100%;
            }
            
            .toggle-btn {
                display: block;
            }
            
            .close-sidebar {
                display: block;
            }
        }
        
        /* Dashboard widgets */
        .dashboard-widget {
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            padding: 20px;
            margin-bottom: 20px;
        }
        
        .dashboard-widget h5 {
            font-size: 1.1rem;
            color: #495057;
            margin-bottom: 20px;
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
        }
        
        .recent-activity .activity-item {
            display: flex;
            padding: 10px 0;
            border-bottom: 1px solid #f1f1f1;
        }
        
        .recent-activity .activity-item:last-child {
            border-bottom: none;
        }
        
        .recent-activity .activity-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(67, 97, 238, 0.1);
            color: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            flex-shrink: 0;
        }
        
        .recent-activity .activity-content {
            flex-grow: 1;
        }
        
        .recent-activity .activity-time {
            font-size: 0.8rem;
            color: #6c757d;
        }
        
        /* Table styling */
        .custom-table th {
            background: #f8f9fa;
            font-weight: 600;
            color: #495057;
        }
        
        .custom-table tr:hover {
            background-color: rgba(67, 97, 238, 0.03);
        }
        
        /* Status badges */
        .badge-pending {
            background: #ffc107;
            color: #000;
        }
        
        .badge-completed {
            background: #198754;
        }
        
        .badge-processing {
            background: #0dcaf0;
        }
        
        /* Footer */
        .footer {
            background: #fff;
            padding: 20px;
            text-align: center;
            color: #6c757d;
            border-top: 1px solid #eee;
        }



/* Estilos para submen¨˛s */
.has-submenu {
    position: relative;
}

.has-submenu > .nav-link {
    justify-content: space-between;
    padding-right: 15px !important;
}

.submenu-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-right: 0 !important;
}

.has-submenu.active .submenu-icon {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}

.submenu.active {
    max-height: 500px; /* Ajusta seg¨˛n necesites */
}

.submenu .nav-link {
    padding-left: 50px !important;
    font-size: 0.9rem;
    margin: 0 !important;
}

.submenu .nav-link:hover,
.submenu .nav-link.active {
    background: rgba(67, 97, 238, 0.3) !important;
}

/* Responsive para submen¨˛s */
@media (max-width: 992px) {
    #sidebar .submenu .nav-link span {
        display: none;
    }
    
    .submenu .nav-link {
        padding-left: 20px !important;
        justify-content: center;
    }
    
    .submenu .nav-link i {
        margin-right: 0 !important;
    }
}

/* Indicador visual para item activo en submen¨˛ */
.has-submenu > .nav-link.active {
    background: var(--sidebar-active) !important;
}

/* Marcar padre cuando un hijo est¨˘ activo */
.has-submenu.child-active > .nav-link {
    background: rgba(67, 97, 238, 0.5) !important;
}
/* Eliminar bullets de submen¨˛s */
.submenu {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.submenu .nav-item {
    list-style: none !important;
    display: block !important;
}

/* Asegurar que no haya bullets en m¨®viles */
@media (max-width: 992px) {
    .submenu .nav-item {
        display: block !important;
    }
}