/* ═══════════════════════════════════════════════════════════════
   SIDEBAR — Estilos Estructurados y Optimizados para Fast Food (AryGato)
   ═══════════════════════════════════════════════════════════════ */

.main-sidebar {
    background: linear-gradient(180deg, #161b26 0%, #0f131d 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: hidden;
}

/* ── Brand Logo / Header ── */
.main-sidebar .brand-link {
    padding: 16px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15);
}

.main-sidebar .brand-link:hover {
    background: rgba(220, 53, 69, 0.12);
}

.main-sidebar .brand-text {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.6px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Ocultar texto de marca al colapsar sidebar */
body.sidebar-collapse .main-sidebar:not(:hover) .brand-text {
    display: none !important;
}

.main-sidebar .brand-logo-sidebar {
    width: 38px;
    height: 38px;
    margin: 0;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ── Items del Menú ── */
.sidebar .nav-item .nav-link {
    padding: 11px 16px;
    color: rgba(255, 255, 255, 0.75);
    border-left: 3px solid transparent;
    transition: all 0.2s ease-in-out;
    font-size: 14px;
    border-radius: 0 6px 6px 0;
    margin: 2px 8px 2px 0;
}

.sidebar .nav-item .nav-link i.nav-icon {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar .nav-item .nav-link:hover {
    background: rgba(220, 53, 69, 0.12);
    color: #ffffff;
    border-left-color: #dc3545;
}

.sidebar .nav-item .nav-link:hover i.nav-icon {
    color: #ff4d4d;
    transform: scale(1.1);
}

.sidebar .nav-item .nav-link.active {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.25) 0%, rgba(220, 53, 69, 0.08) 100%);
    color: #ffffff;
    border-left-color: #dc3545;
    font-weight: 600;
    box-shadow: inset 1px 0 0 #dc3545;
}

.sidebar .nav-item .nav-link.active i.nav-icon {
    color: #dc3545;
}

.sidebar .nav-item .nav-link p {
    margin: 0;
    display: inline-block;
}

/* ── Submenú (Treeview) ── */
.sidebar .nav-treeview {
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 0;
    border-radius: 0 0 8px 8px;
    margin: 0 8px;
}

.sidebar .nav-treeview .nav-item .nav-link {
    padding: 9px 15px 9px 36px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13.5px;
    border-radius: 4px;
    margin: 1px 0;
}

.sidebar .nav-treeview .nav-item .nav-link:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #ffffff;
    padding-left: 38px;
}

.sidebar .nav-treeview .nav-item .nav-link.active {
    background: rgba(220, 53, 69, 0.22);
    color: #ffffff;
    border-left-color: #dc3545;
    font-weight: 600;
}

.sidebar .nav-treeview .far.fa-circle {
    font-size: 7px;
    margin-right: 8px;
    color: #dc3545;
    transition: transform 0.2s;
}

.sidebar .nav-treeview .nav-link:hover .far.fa-circle {
    transform: scale(1.3);
}

/* ── Flecha colapsable de Treeview ── */
.sidebar .nav-link .right {
    float: right;
    margin-top: 3px;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.sidebar .has-treeview.menu-open > .nav-link .right {
    transform: rotate(-90deg);
}

/* ── Scroll Personalizado ── */
.sidebar {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 70px);
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(220, 53, 69, 0.4);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 53, 69, 0.7);
}

/* ── Responsivo ── */
@media (max-width: 768px) {
    .sidebar .nav-item .nav-link {
        padding: 10px 14px;
        font-size: 13.5px;
    }
}

/* ------------------------------------------ */
/* ESTILOS GLOBALES DE INFO-BOX Y FUENTES    */
/* ------------------------------------------ */
.content-wrapper .info-box {
    border-left: 4px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.content-wrapper .info-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
}

.content-wrapper .info-box-icon {
    border-radius: 0 8px 8px 0 !important;
    font-size: 24px;
}

.content-wrapper .info-box-content {
    padding: 10px 15px;
}

.content-wrapper .info-box-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.content-wrapper .info-box-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin: 4px 0 0 0;
}
