:root {
    --primary-color: #2b2d42; /* Azul pizarra elegante */
    --accent-color: #d90429; /* Acento dinámico */
    --sidebar-bg: #111827; /* Gris oscuro/negro moderno */
    --sidebar-text: #9ca3af;
    --sidebar-hover: #1f2937;
    --sidebar-active: #374151;
    --body-bg: #f3f4f6;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--body-bg);
    margin: 0;
    overflow-x: hidden;
    color: #1f2937;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid #1f2937;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-icon {
    font-size: 1.5rem;
    color: #f43f5e;
}

.sidebar-nav {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    flex-grow: 1;
}

.sidebar-header-title {
    padding: 0.75rem 1.25rem 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1.25rem;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .sidebar-link i {
        font-size: 1.15rem;
    }

    .sidebar-link:hover {
        color: #ffffff;
        background-color: var(--sidebar-hover);
    }

    .sidebar-link.active {
        color: #ffffff;
        background-color: var(--sidebar-active);
        border-left: 4px solid #f43f5e;
    }

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #1f2937;
    background-color: #0b0f19;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
}

.user-role {
    color: #9ca3af;
    font-size: 0.75rem;
}

/* MAIN CONTENT */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    height: 64px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.btn-toggle {
    font-size: 1.4rem;
    color: #4b5563;
    padding: 0;
}

.page-body {
    padding: 2rem;
    flex-grow: 1;
}

/* CARDS ELEGANTES */
.card-saona {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* Sidebar colapsable para móviles */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -260px;
        position: fixed;
        height: 100%;
    }

        .sidebar.active {
            margin-left: 0;
        }
}
