/* Dashboard Layout */
.dashboard {
    display: none;
    min-height: 100vh;
}

.dashboard.active {
    display: block;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    padding: 16px;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 0 8px;
}

.sidebar-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--sidebar-active);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.sidebar-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.025em;
}

.nav-menu {
    list-style: none;
    flex: 1;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--sidebar-fg);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-link:hover {
    background: var(--sidebar-hover);
    color: white;
}

.nav-link.active {
    background: hsla(220, 60%, 55%, 0.15);
    color: var(--sidebar-active);
}

.nav-link svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
    flex-shrink: 0;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    color: hsla(220, 15%, 85%, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 24px 16px 8px;
}

.user-info {
    padding: 14px 16px;
    background: transparent;
    border-top: 1px solid var(--sidebar-border);
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
}

.user-info:hover,
.user-menu-wrapper.open .user-info {
    background: hsla(220, 15%, 85%, 0.06);
}

.user-info:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: -2px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 12px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 10px;
    color: var(--sidebar-fg);
    opacity: 0.6;
}

.main-content {
    margin-left: 240px;
    padding: 32px;
    min-height: 100vh;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.page-title {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.page-subtitle {
    color: var(--text-primary);
    opacity: 0.5;
    font-size: 14px;
    margin-top: 2px;
}
