/* ============================================================
   STAGE SYNC — PLATAFORMA SUPERADMIN (CENTRO DE CONTROL GLOBAL)
   Diseño Dark OLED Glassmorphism Executive
   ============================================================ */

.superadmin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.superadmin-status-pills {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.sa-pill {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sa-pill.online {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.sa-pill.pg {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}

/* ─── Pestañas SuperAdmin ─── */
.sa-tabs-bar {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.sa-tabs-bar::-webkit-scrollbar {
    display: none;
}

.sa-tab-btn {
    padding: 0.65rem 1.15rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: var(--text-muted, #94a3b8);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sa-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.sa-tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.25));
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 4px 18px rgba(168, 85, 247, 0.25);
}

/* ─── Paneles ─── */
.sa-panel {
    display: none;
    animation: saFadeIn 0.25s ease-in-out;
}

.sa-panel.active {
    display: block;
}

@keyframes saFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Tarjetas KPI ─── */
.sa-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.sa-kpi-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.35rem;
    border-radius: 16px;
    background: rgba(18, 15, 29, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s, border-color 0.2s;
}

.sa-kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.4);
}

.sa-kpi-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.sa-kpi-icon.icon-users {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.sa-kpi-icon.icon-creators {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.sa-kpi-icon.icon-tenants {
    background: rgba(139, 92, 246, 0.15);
    color: #a855f7;
}

.sa-kpi-icon.icon-songs {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.sa-kpi-icon.icon-reels {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.sa-kpi-icon.icon-storage {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.sa-kpi-info {
    display: flex;
    flex-direction: column;
}

.sa-kpi-label {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sa-kpi-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    margin: 0.2rem 0;
}

.sa-kpi-sub {
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
}

/* ─── Tablas de Datos del SuperAdmin ─── */
.sa-table-responsive {
    overflow-x: auto;
    width: 100%;
}

.sa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.sa-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted, #94a3b8);
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sa-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    vertical-align: middle;
}

.sa-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.sa-badge {
    padding: 0.25rem 0.65rem;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: uppercase;
}

.sa-badge.collab-pro {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
}

.sa-badge.artist {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: #fff;
}

.sa-badge.verified {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    color: #fff;
}

.sa-badge.partner {
    background: linear-gradient(135deg, #a855f7, #7e22ce);
    color: #fff;
}

.sa-badge.none {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted, #94a3b8);
}

/* ─── Botones e Inputs en Tablas ─── */
.sa-toggle-btn {
    padding: 0.35rem 0.75rem;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.sa-toggle-btn.active {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.sa-toggle-btn.inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.sa-badge-select, .sa-role-select {
    background: #120f1d;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    font-size: 0.78rem;
    outline: none;
    cursor: pointer;
}

/* ─── Colores Textos Auxiliares ─── */
.text-gold { color: #f59e0b !important; }
.text-pink { color: #ec4899 !important; }
.text-cyan { color: #38bdf8 !important; }
.text-green { color: #22c55e !important; }
.text-purple { color: #a855f7 !important; }

/* ─── Responsive Móvil ─── */
@media (max-width: 768px) {
    .sa-kpi-grid {
        grid-template-columns: 1fr;
    }
    .superadmin-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
