/* ========================================================= */
/* Sidebar Config Theme                                       */
/* Variables separadas de tokens.css para no interferir      */
/* ========================================================= */

.spod-config-sidebar.bg-background-sidebar {
    background-color: var(--sideactionbar-bg) !important;
    color: var(--sideactionbar-text);
}

.spod-config-sidebar .bg-surface-dark,
.spod-config-sidebar .spod-config-sidebar__link:hover {
    background-color: var(--sideactionbar-surface) !important;
}

.spod-config-sidebar.border-border-dark,
.spod-config-sidebar .border-border-dark {
    border-color: var(--sideactionbar-border) !important;
}

.spod-config-sidebar .text-primary,
.spod-config-sidebar .group-hover\:text-primary:hover {
    color: var(--sideactionbar-primary) !important;
}

.spod-config-sidebar .text-slate-400 {
    color: var(--sideactionbar-text) !important;
}

.spod-config-sidebar .text-slate-500,
.spod-config-sidebar .text-slate-600,
.spod-config-sidebar .text-slate-300 {
    color: var(--sideactionbar-text-muted) !important;
}

.spod-config-sidebar .hover\:text-white:hover,
.spod-config-sidebar .spod-config-sidebar__link:hover,
.spod-config-sidebar .spod-config-sidebar__footer-link:hover {
    color: var(--sideactionbar-text-hover) !important;
}

.spod-config-sidebar .spod-config-sidebar__link,
.spod-config-sidebar .spod-config-sidebar__footer-link {
    transition: background-color 0.18s ease, color 0.18s ease;
}

.spod-config-sidebar .spod-config-sidebar__nav {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.spod-config-sidebar .spod-config-sidebar__nav::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.spod-config-sidebar .spod-config-sidebar__link {
    color: var(--sideactionbar-text);
    background-color: transparent;
    border: 1px solid transparent;
}

.spod-config-sidebar .spod-config-sidebar__icon,
.spod-config-sidebar .spod-config-sidebar__label {
    color: inherit;
    transition: color 0.18s ease;
}

.spod-config-sidebar .spod-config-sidebar__link:hover {
    background-color: var(--sideactionbar-surface) !important;
    color: var(--sideactionbar-text-hover) !important;
}

.spod-config-sidebar .spod-config-sidebar__link--active {
    color: var(--sideactionbar-text-hover) !important;
    background-color: var(--sideactionbar-surface) !important;
    background: linear-gradient(180deg, color-mix(in srgb, var(--sideactionbar-primary) 20%, var(--sideactionbar-surface)) 0%, color-mix(in srgb, var(--sideactionbar-primary) 10%, var(--sideactionbar-surface)) 100%) !important;
    border-color: var(--sideactionbar-primary) !important;
    box-shadow: inset 4px 0 0 0 var(--sideactionbar-primary), 0 8px 18px rgba(15, 23, 42, 0.14);
}

.spod-config-sidebar .spod-config-sidebar__link--active .spod-config-sidebar__icon {
    color: var(--sideactionbar-primary) !important;
}

.spod-config-sidebar .spod-config-sidebar__link--active .spod-config-sidebar__label {
    color: var(--sideactionbar-text-hover) !important;
}

.spod-config-sidebar__user-card {
    border: 1px solid color-mix(in srgb, var(--sideactionbar-border) 88%, transparent);
    background: color-mix(in srgb, var(--sideactionbar-surface) 82%, transparent);
    border-radius: 1rem;
    padding: 0.9rem;
}

.spod-config-sidebar__user-card--empty {
    color: var(--sideactionbar-text-muted);
}

.spod-config-sidebar__user-card-title {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sideactionbar-text-muted);
}

.spod-config-sidebar__user-card-copy {
    margin-top: 0.45rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--sideactionbar-text-muted);
}

.spod-config-sidebar__user-card-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.spod-config-sidebar__user-avatar {
    width: 8.625rem;
    height: 8.625rem;
    border-radius: 9999px;
    overflow: hidden;
    flex: 0 0 8.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.15rem;
    font-weight: 700;
    color: var(--sideactionbar-text-hover);
    background: color-mix(in srgb, var(--sideactionbar-primary) 18%, var(--sideactionbar-surface));
    border: 1px solid color-mix(in srgb, var(--sideactionbar-primary) 28%, transparent);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.spod-config-sidebar__user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spod-config-sidebar__user-body {
    min-width: 0;
    flex: 1;
    width: 100%;
    text-align: center;
}

.spod-config-sidebar__user-name {
    color: var(--sideactionbar-text-hover);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
}

.spod-config-sidebar__user-email {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--sideactionbar-text-muted);
    overflow-wrap: anywhere;
}

.spod-config-sidebar__user-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.7rem;
}

.spod-config-sidebar__user-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.48rem;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--sideactionbar-text-hover);
    background: color-mix(in srgb, var(--sideactionbar-bg) 60%, transparent);
    border: 1px solid color-mix(in srgb, var(--sideactionbar-border) 75%, transparent);
}

.spod-config-sidebar__user-pill--active {
    border-color: color-mix(in srgb, #22c55e 40%, transparent);
}

.spod-config-sidebar__user-pill--inactive {
    border-color: color-mix(in srgb, #ef4444 40%, transparent);
}

.spod-config-sidebar__user-pill--support {
    border-color: color-mix(in srgb, #f59e0b 46%, transparent);
    color: color-mix(in srgb, #fbbf24 82%, white);
    min-width: 2rem;
    justify-content: center;
}

.spod-config-sidebar__user-stat-label {
    margin-top: 0.75rem;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sideactionbar-text-muted);
}

.spod-config-sidebar__user-stat-value {
    margin-top: 0.18rem;
    font-size: 0.82rem;
    color: var(--sideactionbar-text-hover);
    overflow-wrap: anywhere;
}

.config-sidebar-panel {
    width: 100%;
    height: 100%;
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.22);
}

.config-sidebar-panel__mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0;
}

.config-sidebar-panel__mobile-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.config-sidebar-panel__mobile-copy strong {
    color: var(--sidebar-text-hover);
    font-size: 1rem;
    line-height: 1.2;
}

.config-sidebar-panel__mobile-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sidebar-text-muted);
}

.config-sidebar-panel__mobile-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    border: 1px solid color-mix(in srgb, var(--sidebar-border) 82%, transparent);
    color: var(--sidebar-text-hover);
    background: color-mix(in srgb, var(--sidebar-surface) 82%, transparent);
}

@media (min-width: 1024px) {
    .config-sidebar-panel {
        box-shadow: none;
    }
}
