/**
 * Estilos do Painel do Organizador — Elo do Bem
 * Design System UI/UX Pro Max (Liquid Glass & Modern Dashboard)
 */

.page:has(.elo-portal-wrap) header.site-header,
.page:has(.elo-portal-wrap) footer.site-footer,
.page:has(.elo-portal-wrap) .entry-header,
.page:has(.elo-portal-wrap) .page-header,
.page:has(.elo-portal-wrap) .elementor-location-header,
.page:has(.elo-portal-wrap) .elementor-location-footer {
    display: none !important;
}

body:has(.elo-portal-wrap) {
    background-color: #0f172a !important;
    background-image: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 1) 75%) !important;
    color: #f8fafc !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
}

.elo-portal-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 16px 60px 16px;
    box-sizing: border-box;
}

.elo-main-logo { display: inline-flex; align-items: center; justify-content: center; }
.elo-logo-img { max-width: 200px; height: auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,0.4)); }

.elo-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 24px 0;
    border-bottom: 1px solid var(--elo-glass-border);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 14px;
}
.elo-dash-user-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.elo-dash-user-greeting { font-size: 0.88rem; font-weight: 700; color: var(--elo-text-muted); }

.elo-btn-sm {
    padding: 8px 14px;
    font-size: 0.82rem;
    border-radius: var(--elo-radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.elo-btn-emerald {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    cursor: pointer;
    transition: var(--elo-transition);
}
.elo-btn-emerald:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45); }
.elo-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1 !important;
    border: 1px solid var(--elo-glass-border);
    font-weight: 600;
    cursor: pointer;
    transition: var(--elo-transition);
}
.elo-btn-secondary:hover { background: rgba(255, 255, 255, 0.15); color: #ffffff !important; }

/* Grid de Métricas */
.elo-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.elo-stat-card {
    background: var(--elo-glass-bg);
    border: 1px solid var(--elo-glass-border);
    border-radius: var(--elo-radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    backdrop-filter: var(--elo-glass-blur);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.elo-stat-card-title { font-size: 0.78rem; color: var(--elo-text-muted); margin-bottom: 6px; }
.elo-stat-card-val { font-size: 1.45rem; font-weight: 800; color: #f8fafc; margin-bottom: 4px; }
.elo-stat-card-val.elo-val-sm {
    font-size: 0.92rem;
    font-weight: 600;
    word-break: break-all;
    line-height: 1.35;
    color: #e2e8f0;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.elo-stat-card-sub { font-size: 0.72rem; color: var(--elo-text-light); }
.elo-card-gold {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(245, 158, 11, 0.08));
}
.elo-card-gold .elo-stat-card-val { color: #fbbf24; }
.elo-card-emerald {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(16, 185, 129, 0.08));
}
.elo-card-emerald .elo-stat-card-val { color: #34d399; }

/* Seção Minhas Campanhas */
.elo-dash-campaigns-section { margin-top: 10px; }
.elo-section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.elo-section-title { font-size: 1.3rem; font-weight: 800; margin: 0; color: #f8fafc; }
.elo-section-sub-desc { font-size: 0.8rem; color: var(--elo-text-muted); margin: 4px 0 0 0; }

/* Tabela Glassmorphism */
.elo-dash-table-wrap {
    background: var(--elo-glass-bg);
    border: 1px solid var(--elo-glass-border);
    border-radius: var(--elo-radius-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: var(--elo-glass-blur);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.elo-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 580px; }
.elo-table th {
    padding: 14px 16px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--elo-glass-border);
    background: rgba(15, 23, 42, 0.6);
}
.elo-table td {
    padding: 14px 16px;
    font-size: 0.88rem;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}
.elo-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

.elo-table-title-cell { display: flex; align-items: center; gap: 12px; }
.elo-table-thumb {
    width: 48px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}
.elo-table-link { color: #f8fafc; font-weight: 700; text-decoration: none; transition: color 0.2s; }
.elo-table-link:hover { color: #34d399; }

.elo-status-toggle-btn { background: none; border: none; padding: 0; cursor: pointer; display: inline-flex; }
.elo-dash-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.elo-dash-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.elo-dash-badge.closed, .elo-dash-badge.paused {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Ações Alinhadas na Tabela */
.elo-actions-cell {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
}
.elo-btn-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}
.elo-btn-action svg { width: 15px !important; height: 15px !important; fill: currentColor !important; }
.elo-btn-action:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}
.elo-btn-action-delete:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}

/* Empty State */
.elo-empty-state-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--elo-glass-bg);
    border: 1px solid var(--elo-glass-border);
    border-radius: var(--elo-radius-lg);
    backdrop-filter: var(--elo-glass-blur);
}
.elo-empty-icon { font-size: 2.5rem; margin-bottom: 12px; }

/* Responsividade Mobile */
@media (max-width: 640px) {
    .elo-dash-header { flex-direction: column; align-items: flex-start; }
    .elo-dash-user-actions { width: 100%; justify-content: space-between; }
    .elo-stats-grid { grid-template-columns: 1fr; }
}
