/* ==========================================================================
   SEÇÃO: PAINEL DE GESTÃO & MÉTRICAS DE VISITAS (NICHOS HS SOLUTIONS)
   Arquivo: css/nicho-painel.css
   ========================================================================== */

.panel-section {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.panel-section.bg-alt {
    background: #f8fafc;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    align-items: stretch;
}

.panel-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.panel-card:hover {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.panel-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.panel-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}

.panel-card-tag {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 4px;
}

.panel-card h3 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.panel-card-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* Moldura de Janela de Dashboard */
.panel-mockup-frame {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.panel-mockup-header {
    background: #f1f5f9;
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.panel-mockup-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.panel-mockup-header .dot.red { background: #ef4444; }
.panel-mockup-header .dot.yellow { background: #f59e0b; }
.panel-mockup-header .dot.green { background: #10b981; }

.panel-mockup-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    margin-left: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.panel-mockup-body {
    padding: 18px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Imagens do Analytics */
.panel-img-metricas,
.panel-img-grafico {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    display: block;
    background: #ffffff;
}

/* Mockup de Gestão e Cadastro de Clientes (CRM) */
.panel-client-crm {
    padding: 16px;
    background: #f8fafc;
}

.crm-topbar {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.crm-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #94a3b8;
    flex: 1;
    min-width: 180px;
}

.crm-search i {
    color: #94a3b8;
}

.crm-btn-add {
    background: #10b981;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.crm-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.crm-table-mock {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 380px;
}

.crm-row {
    display: grid;
    grid-template-columns: 1.5fr 1.3fr 1.1fr 0.9fr;
    gap: 10px;
    align-items: center;
    background: #ffffff;
    padding: 11px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.84rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.crm-row.head {
    background: #f1f5f9;
    font-weight: 800;
    color: #64748b;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    padding: 8px 12px;
    box-shadow: none;
}

.crm-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crm-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.crm-user strong {
    display: block;
    color: #0f172a;
    font-size: 0.86rem;
    line-height: 1.25;
}

.crm-user small,
.crm-contact small {
    display: block;
    color: #94a3b8;
    font-size: 0.74rem;
}

.crm-contact span {
    display: block;
    color: #334155;
    font-weight: 600;
    font-size: 0.82rem;
}

.crm-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.crm-pill.origin {
    background: #f1f5f9;
    color: #334155;
}

.crm-pill.success {
    background: #dcfce7;
    color: #15803d;
}

.crm-pill.info {
    background: #e0f2fe;
    color: #0369a1;
}

/* Lista de Vantagens com Checkmarks */
.panel-features-list {
    list-style: none;
    padding: 0;
    margin: auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.panel-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.55;
}

.panel-features-list li i {
    color: #10b981;
    font-size: 1.15rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.panel-features-list li strong {
    color: #0f172a;
    font-weight: 700;
}

/* Bloco de LGPD & Central de Privacidade */
.panel-lgpd-box {
    margin-top: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.panel-lgpd-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: center;
}

.panel-lgpd-content {
    display: flex;
    flex-direction: column;
}

.panel-img-lgpd {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    display: block;
    background: #ffffff;
}

.panel-lgpd-preview {
    min-width: 0;
}

.panel-lgpd-preview .panel-mockup-frame {
    margin-bottom: 0;
}

/* Destaque / Callout inferior */
.panel-highlight-box {
    margin-top: 36px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 18px;
    padding: 24px 32px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.panel-highlight-text h4 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-highlight-text h4 i {
    color: #38bdf8;
}

.panel-highlight-text p {
    margin: 0;
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.panel-highlight-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.panel-highlight-badge i {
    color: #10b981;
}

/* Responsividade */
@media (max-width: 992px) {
    .panel-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .panel-lgpd-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .panel-card, .panel-lgpd-box {
        padding: 28px 22px;
    }
    .panel-highlight-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
    }
}

@media (max-width: 576px) {
    .panel-card h3 {
        font-size: 1.2rem;
    }
    .panel-card-desc {
        font-size: 0.9rem;
    }
    .crm-topbar {
        flex-direction: column;
        align-items: stretch;
    }
    .crm-btn-add {
        justify-content: center;
    }
}
