
/* --- RESTAURANDO VISUAL PREMIUM DO DASHBOARD SECUNDÁRIO --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(197, 160, 89, 0.3); /* Premium Gold tint */
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(197, 160, 89, 0.1) !important;
    color: #c5a059 !important;
}

.stat-val {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.data-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    overflow: hidden;
}

.card-header {
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 1.25rem 1.5rem;
}

.card-header h2 {
    color: #fff !important;
}

.detail-item label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}

.filter-select:focus {
    border-color: #c5a059;
}


.broadcast-target-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.broadcast-target-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 130px;
    line-height: 1.2;
}

.broadcast-target-btn i {
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
    transition: transform 0.3s ease;
}

.broadcast-target-btn span {
    display: block;
    max-width: 130px;
}

.broadcast-target-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.broadcast-target-btn:hover i {
    transform: scale(1.1);
}

.broadcast-target-btn.active {
    background: rgba(197, 160, 89, 0.1); /* Sutil dourado no fundo */
    border: 1.5px solid #c5a059; /* Dourado Premium */
    color: #fff;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.2);
}

.broadcast-target-btn.active i {
    transform: scale(1.15);
}

/* Icon Colors - Mantendo a Identidade Visual */
.target-icon-green { color: #10b981 !important; }
.target-icon-amber { color: #f59e0b !important; }
.target-icon-blue { color: #3b82f6 !important; }
.target-icon-pink { color: #ec4899 !important; }
.target-icon-gray { color: #94a3b8 !important; }

/* =====================================================
   BOTÕES DE AÇÃO DA TABELA — PREMIUM OUTLINE COLORIDO
   Cada ação tem cor exclusiva alusiva à sua função
   ===================================================== */

/* Container do grupo de ações */
.btn-actions-group {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
}

/* Base comum de todos os botões de ação */
.btn-icon-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 6px;
    border-radius: 8px;
    border: 1.5px solid;
    background: transparent;
    cursor: pointer;
    transition: background 0.22s cubic-bezier(0.4,0,0.2,1),
                color       0.22s cubic-bezier(0.4,0,0.2,1),
                box-shadow  0.22s cubic-bezier(0.4,0,0.2,1),
                transform   0.15s ease;
    flex-shrink: 0;
}

.btn-icon-premium:hover {
    transform: translateY(-2px) scale(1.08);
}

.btn-icon-premium svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
    transition: stroke 0.22s ease;
}

/* ── 👁 VISUALIZAR — Ciano ───────────────────────── */
.btn-view {
    border-color: #06b6d4;
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.06);
}
.btn-view:hover {
    background: #06b6d4;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.45);
}

/* ── ✏️ EDITAR — Âmbar ───────────────────────────── */
.btn-edit {
    border-color: #f59e0b;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.06);
}
.btn-edit:hover {
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}

/* ── 💬 WHATSAPP — Verde Esmeralda ───────────────── */
.btn-whatsapp {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.06);
}
.btn-whatsapp:hover {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
}

/* ── 📧 EMAIL — Índigo ───────────────────────────── */
.btn-email {
    border-color: #6366f1;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.06);
}
.btn-email:hover {
    background: #6366f1;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}

/* ── 🖨 IMPRIMIR — Fúcsia ────────────────────────── */
.btn-print {
    border-color: #d946ef;
    color: #d946ef;
    background: rgba(217, 70, 239, 0.06);
}
.btn-print:hover {
    background: #d946ef;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(217, 70, 239, 0.45);
}

/* ── 🗑 EXCLUIR — Vermelho ───────────────────────── */
.btn-delete {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
}
.btn-delete:hover {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
}

/* Mobile: botões ligeiramente menores */
@media (max-width: 768px) {
    .btn-icon-premium {
        width: 30px;
        height: 30px;
        padding: 5px;
        border-radius: 6px;
    }
    .btn-icon-premium svg {
        width: 14px;
        height: 14px;
    }
    .btn-actions-group {
        gap: 4px;
    }
}
