/* ==========================================================================
   SIDEBAR & DASHBOARD NAVIGATION COMPONENT
   ========================================================================== */

.dashboard-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--secondary-color);
    color: var(--text-light);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.2rem;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sidebar-brand {
    text-align: center;
}

.sidebar-brand span {
    display: block;
}

.brand-tagline-wrapper {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sidebar Brand Tagline Styling */
.sidebar-brand .tagline-primary {
    display: block;
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-color, #2563eb);
    font-weight: 600;
    margin-top: 6px;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.sidebar-brand .tagline-secondary {
    display: block;
    font-size: 0.72rem;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.95;
    margin-top: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sidebar-avatar {
    width: 100%;
    max-width: 190px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.75rem auto;
    padding: 0.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        0 4px 14px rgba(0, 0, 0, 0.22);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-avatar:hover {
    transform: translateY(-2px) scale(1.01);
    border-color: rgba(244, 162, 97, 0.6);
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 1px rgba(244, 162, 97, 0.2),
        0 0 14px rgba(244, 162, 97, 0.25),
        0 6px 18px rgba(0, 0, 0, 0.28);
}

.sidebar-nav {
    margin-top: 1.5rem;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover {
    background-color: var(--primary-color);
    color: var(--accent-color) !important;
}

.sidebar-nav a.active {
    background-color: var(--primary-color, #0f172a);
    color: var(--accent-color, #2563eb) !important;
    font-weight: 600;
    border-left: 4px solid var(--accent-color, #2563eb);
    padding-left: calc(1rem - 4px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.sidebar-nav a.active i {
    color: var(--accent-color, #2563eb);
}

.sidebar-nav a i,
.sidebar-nav a .icon {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex-shrink: 0;
}

.sidebar-cta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-btn {
    display: block;
    text-align: center;
    width: 100%;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: var(--accent-color-hover);
    color: #ffffff;
}

/* Mobile Toggle & Drawer */
.menu-toggle-btn {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1040;
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 992px) {
    .menu-toggle-btn {
        display: block;
    }

    .dashboard-sidebar {
        width: 280px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: -280px;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.3);
    }

    .dashboard-sidebar.sidebar-open {
        transform: translateX(280px);
    }
}