.dp-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 180px;
    height: 100vh;

    background: linear-gradient(180deg, #111827 0%, #172033 45%, #0f172a 100%);
    color: #fff;

    z-index: 1040;

    padding: 14px 10px;

    overflow-y: auto;

    box-shadow: 6px 0 18px rgba(15, 23, 42, 0.12);
}

/* BRAND */

.dp-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 6px 8px 16px;

    border-bottom: 1px solid rgba(255,255,255,0.08);

    margin-bottom: 12px;
}

.dp-logo {
    width: 34px;
    height: 34px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #2563eb, #38bdf8);

    color: #fff;

    font-weight: 800;
    font-size: 16px;
}

.dp-brand-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.dp-brand-subtitle {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
}

/* MENU */

.dp-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dp-menu-label {
    color: #64748b;

    font-size: 9px;

    text-transform: uppercase;

    font-weight: 700;

    letter-spacing: 0.08em;

    padding: 14px 10px 5px;
}

.dp-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px 10px;

    border-radius: 9px;

    color: #cbd5e1;

    text-decoration: none;

    font-size: 12px;

    font-weight: 500;

    transition: 0.18s ease;
}

.dp-menu-link i {
    width: 16px;
    text-align: center;
    font-size: 13px;
}

.dp-menu-link:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.dp-menu-link.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;

    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}

/* TOPBAR */

.dp-topbar {
    height: 64px;

    background: #ffffff;

    border-bottom: 1px solid #e9eef5;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 18px;

    position: sticky;
    top: 0;

    z-index: 100;
}

.dp-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dp-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* USER */

.dp-user-box {
    display: flex;
    align-items: center;
    gap: 10px;

    background: #f8fafc;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    padding: 5px 10px;
}

.dp-user-avatar {
    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #0f172a;

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;

    font-size: 13px;
}

.dp-user-name {
    font-weight: 700;
    font-size: 12px;
    color: #111827;
}

.dp-user-role {
    font-size: 10px;
    color: #64748b;
}

/* MOBILE TOGGLE */

.dp-mobile-toggle {
    width: 36px;
    height: 36px;

    border: 0;

    border-radius: 8px;

    background: #eff6ff;

    color: #2563eb;

    display: none;
}

.dp-sidebar-overlay {
    display: none;
}

/* MOBILE */

@media (max-width: 991px) {

    .dp-sidebar {
        transform: translateX(-100%);
        transition: 0.25s ease;
    }

    .dp-sidebar.show {
        transform: translateX(0);
    }

    .dp-topbar {
        padding: 0 14px;
    }

    .dp-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dp-user-info {
        display: none;
    }

}
/* =========================
   Phase 6D: sidebar bottom user panel
========================= */
.dp-sidebar {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dp-sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 12px;
}

.dp-sidebar-user-panel {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.dp-sidebar-user-box {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
}

.dp-sidebar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.dp-sidebar-user-info {
    min-width: 0;
}

.dp-sidebar-user-name {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 92px;
}

.dp-sidebar-user-role {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
}

.dp-sidebar-logout {
    margin-top: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    color: #fecaca;
    background: rgba(239,68,68,0.09);
    border: 1px solid rgba(239,68,68,0.16);
}

.dp-sidebar-logout:hover {
    color: #fff;
    background: #dc2626;
}

.dp-back-btn {
    font-weight: 700;
    border-radius: 9px;
}

@media (max-width: 991px) {
    .dp-sidebar {
        overflow: hidden;
    }
}
