:root {
    --primary-color: #dc2626;
    --secondary-color: #b91c1c;
    --accent-color: #991b1b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --logo-url: url('assets/logos/logo.svg');
    --logo-size: 48px;
}

.sidebar {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%) !important;
    box-shadow: 2px 0 10px rgba(220, 38, 38, 0.3);
}

.sidebar-header {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 50%, #7f1d1d 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-left: 3px solid white;
}

@media (max-width: 768px) {
    .sidebar {
        background: linear-gradient(180deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%) !important;
    }
}

/* Estilos del logo */
.sidebar-header::before {
    content: '';
    display: inline-block;
    width: var(--logo-size);
    height: var(--logo-size);
    background: var(--logo-url);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 12px;
    vertical-align: middle;
    border-radius: 8px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.sidebar-header h2, .sidebar-header h4 {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Ajustes responsivos para el logo */
@media (max-width: 768px) {
    .sidebar-header::before {
        width: 40px;
        height: 40px;
        margin-right: 8px;
    }
    .sidebar-header h2, .sidebar-header h4 {
        font-size: 1.1rem;
    }
}
