:root {
    --sidebar-width: 260px;
    --sidebar-bg: #ffffff;
    --sidebar-border: #e2e8f0;
    --sidebar-text: #64748b;
    --sidebar-text-primary: #1e293b;
    --sidebar-text-light: #94a3b8;
    --sidebar-hover: #f1f5f9;
    --sidebar-active-bg: #eff6ff;
    --sidebar-active-color: #3b82f6;
    --sidebar-primary: #3b82f6;
}

.shared-sidebar-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.shared-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 100;
}

.shared-sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shared-sidebar .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--sidebar-text-primary);
    text-decoration: none;
}

.shared-sidebar .logo-icon {
    width: 32px;
    height: 32px;
    background: var(--sidebar-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.shared-sidebar .sidebar-nav {
    flex: 1;
    padding: 0.5rem 0;
}

.shared-sidebar .nav-section {
    padding: 0.5rem 0;
}

.shared-sidebar .nav-section-title {
    padding: 0.25rem 1.5rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--sidebar-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shared-sidebar .nav-link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.15s ease;
    font-size: 0.85rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.shared-sidebar .nav-link-item:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-primary);
    text-decoration: none;
}

.shared-sidebar .nav-link-item.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-color);
    font-weight: 500;
}

.shared-sidebar .nav-link-item i {
    width: 20px;
    font-size: 0.95rem;
    text-align: center;
}

.shared-sidebar .sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--sidebar-border);
}

.shared-sidebar .sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.shared-sidebar .sidebar-user-avatar {
    width: 32px;
    height: 32px;
    background: var(--sidebar-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.shared-sidebar .sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.shared-sidebar .sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sidebar-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shared-sidebar .sidebar-user-role {
    font-size: 0.7rem;
    color: var(--sidebar-text-light);
    text-transform: capitalize;
}

.shared-sidebar .logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--sidebar-text);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    transition: color 0.15s;
}

.shared-sidebar .logout-btn:hover {
    color: #ef4444;
}

.shared-sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.shared-sidebar-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--sidebar-border);
    min-height: 56px;
}

.shared-sidebar-topbar .page-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sidebar-text-primary);
    margin: 0;
}

.shared-sidebar-topbar .hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--sidebar-text);
    cursor: pointer;
    padding: 0.25rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 999;
}

@media (max-width: 768px) {
    .shared-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: none;
    }

    .shared-sidebar.open {
        left: 0;
        box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    }

    .sidebar-overlay.open {
        display: block;
    }

    .shared-sidebar-topbar .hamburger-btn {
        display: block;
    }

    .shared-sidebar-layout {
        flex-direction: column;
    }

    .shared-sidebar-content {
        height: calc(100vh - 56px);
    }
}
