/* ========================================
   DASHBOARD - ESTILOS ESPECÍFICOS
   Linha de operação + cards Operar/Configurar (tokens novos do style.css)
   ======================================== */

/* Cabeçalho (.dash-title) e rótulos de seção (.dash-section) vêm do style.css global */

/* ====================================
   LINHA DE OPERAÇÃO — leitura viva do sistema
   ==================================== */
.op-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: var(--tinta);
    border-radius: 16px;
    margin-bottom: 8px;
    overflow: hidden;
}

.op-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
    text-decoration: none;
    transition: background-color var(--transition-fast);
}

.op-item:hover,
.op-item:focus {
    background-color: rgba(255, 255, 255, 0.05);
}

.op-item:focus-visible {
    outline: 2px solid var(--zap-vivo);
    outline-offset: -2px;
}

.op-item:not(:first-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.op-label {
    font-family: var(--fonte-titulo);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.op-value {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
}

.op-num {
    font-family: var(--fonte-mono);
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
}

.op-text {
    font-family: var(--fonte-corpo);
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

/* Ponto de status do WhatsApp: verde vivo conectado, âmbar aguardando QR, brasa desconectado */
.op-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: #8896a5;
}

.op-dot.on {
    background-color: var(--zap-vivo);
    animation: opPulse 2s ease-out infinite;
}

.op-dot.warn {
    background-color: #ffb020;
}

.op-dot.off {
    background-color: var(--brasa);
}

@keyframes opPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
    70% { box-shadow: 0 0 0 9px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .op-dot.on {
        animation: none;
    }
}

/* ====================================
   CARDS
   ==================================== */
/* Card-atalho inteiro clicável: borda no lugar de sombra, realce no hover */
.dash-card {
    display: block;
    height: 100%;
    background-color: #ffffff;
    border: 1px solid var(--borda-suave);
    border-radius: 14px;
    box-shadow: none;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.dash-card:hover {
    border-color: var(--zap);
    box-shadow: 0 6px 18px rgba(15, 27, 43, 0.08);
    transform: translateY(-2px);
    color: inherit;
}

.dash-card:focus-visible {
    outline: 2px solid var(--zap);
    outline-offset: 2px;
}

.dash-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px;
}

.dash-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: rgba(18, 140, 126, 0.1);
    color: var(--zap);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.dash-card-title {
    font-family: var(--fonte-titulo);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--tinta);
    margin: 2px 0 0;
}

.dash-card-text {
    font-family: var(--fonte-corpo);
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--grafite);
    margin: 0;
    flex: 1;
}

.dash-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--fonte-corpo);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--zap);
    text-decoration: none;
}

.dash-card-cta i {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.dash-card:hover .dash-card-cta i {
    transform: translateX(3px);
}

a.dash-card-cta:hover,
a.dash-card-cta:focus {
    color: var(--tinta);
}

/* Cards auxiliares do rodapé (primeiros passos + YouTube), mais quietos */
.dash-aux {
    height: 100%;
    background-color: #ffffff;
    border: 1px solid var(--borda-suave);
    border-radius: 14px;
    box-shadow: none;
}

.dash-aux .card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px;
}

.dash-steps {
    font-family: var(--fonte-corpo);
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--dark-text);
    padding-left: 1.25rem;
    margin: 0;
}

.dash-steps a,
.dash-aux .dash-card-text a {
    color: var(--zap);
    font-weight: 600;
    text-decoration: none;
}

.dash-steps a:hover,
.dash-steps a:focus,
.dash-aux .dash-card-text a:hover,
.dash-aux .dash-card-text a:focus {
    text-decoration: underline;
}

/* Card do YouTube: ícone no vermelho da marca, lista do que a playlist ensina e botão igual ao da LP (/adesao) */
.dash-yt-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.dash-yt-icon {
    background-color: rgba(255, 0, 0, 0.1);
    color: #FF0000;
    font-size: 1.3rem;
}

.dash-yt-head .dash-card-text {
    margin-top: 4px;
}

.dash-yt-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--fonte-corpo);
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--dark-text);
    padding: 0;
    margin: 2px 0 6px;
}

.dash-yt-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.dash-yt-list i {
    color: #FF0000;
    font-size: 0.95rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Vermelho fixo do YouTube, como o .btn-vermelho da página de vendas */
.btn-youtube {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    font-family: var(--fonte-corpo);
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    background-color: #FF0000;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 14px 24px;
    transition: background-color 120ms ease, border-color 120ms ease;
}

.btn-youtube i {
    font-size: 1.5rem;
}

.btn-youtube:hover,
.btn-youtube:focus,
.btn-youtube:active {
    background-color: #CC0000;
    color: #FFFFFF;
}

/* ====================================
   RESPONSIVIDADE
   ==================================== */
@media (max-width: 991px) {
    .op-strip {
        grid-template-columns: 1fr 1fr;
    }

    /* Grade 2x2: divisórias viram topo nas linhas de baixo */
    .op-item:not(:first-child) {
        border-left: none;
    }

    .op-item:nth-child(even) {
        border-left: 1px solid rgba(255, 255, 255, 0.08);
    }

    .op-item:nth-child(n+3) {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 576px) {
    .op-item {
        padding: 16px 18px;
    }

    .op-num {
        font-size: 1.4rem;
    }
}
