/* ── Management Dashboard ── */

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.header-controls { display: flex; align-items: center; gap: 8px; }
.mode-badge {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 700;
    background: var(--teal);
    color: #fff;
    padding: 4px 10px;
    border-radius: 3px;
}

/* ── Main body: config left, nav right ── */
.mgmt-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* ── Left config area ── */
.mgmt-config-panel {
    flex: 1;
    overflow-y: auto;
    padding: 28px 24px;
    background: var(--bg-content);
}

/* Placeholder shown before a section is selected */
.config-empty-state {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-label);
    text-align: center;
    padding: 40px;
}
.config-empty-icon {
    width: 56px;
    height: 56px;
    color: #aaa;
}
.config-empty-icon svg { width: 100%; height: 100%; }
.config-empty-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}
.config-empty-sub {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 320px;
    line-height: 1.5;
}

/* ── Right nav column ── */
.mgmt-nav {
    width: 230px;
    flex-shrink: 0;
    background: #d0d0d0;
    border-left: 1px solid var(--border-panel);
    display: flex;
    flex-direction: column;
    padding-top: 6px;
}

.mgmt-nav-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-label);
    padding: 8px 14px 10px;
    border-bottom: 1px solid var(--border-panel);
    margin-bottom: 4px;
}

/* Buttons styled to match light nav theme */
.mgmt-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.mgmt-nav-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-dark);
}
.mgmt-nav-btn.is-active {
    background: rgba(26, 143, 122, 0.1);
    border-left-color: var(--teal);
    color: var(--teal);
}

.mgmt-nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}
.mgmt-nav-btn.is-active .mgmt-nav-icon { opacity: 1; }
.mgmt-nav-icon svg { width: 16px; height: 16px; }

.mgmt-nav-text { flex: 1; }

/* ── User card at bottom of nav ── */
.mgmt-user-card {
    margin-top: auto;
    padding: 20px 12px 18px;
    border-top: 1px solid var(--border-panel);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.mgmt-user-avatar {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(26,143,122,0.25);
}

.mgmt-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.mgmt-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.mgmt-user-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-top: 2px;
}
.mgmt-user-tags-vertical {
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 2px;
    margin-bottom: 2px;
}

.mgmt-user-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(0,0,0,0.07);
    border: 1px solid var(--border-panel);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 10px;
    line-height: 1.6;
    white-space: nowrap;
}

.tag-label {
    font-weight: 700;
    color: var(--text-label);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.tag-value {
    color: var(--text-dark);
    font-weight: 500;
}

@media (max-width: 860px) {
    .mgmt-body { flex-direction: column-reverse; }
    .mgmt-nav {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        border-left: none;
        border-top: 1px solid var(--border-panel);
    }
    .mgmt-nav-btn {
        border-left: none;
        border-bottom: 2px solid transparent;
        width: auto;
    }
    .mgmt-nav-btn.is-active {
        border-left-color: transparent;
        border-bottom-color: var(--teal);
    }
}