/* ============================================================
   ESTEIO CONECTA — PAINEL DO SERVIDOR
   Aviso de "melhor no desktop" para dispositivos móveis/tablets
   ============================================================ */

/* Overlay escuro cobrindo a tela inteira */
#aviso-desktop-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;                    /* acima de tudo, inclusive modais Bootstrap */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: avisoFadeIn 0.25s ease-out;
}

#aviso-desktop-overlay.hidden { display: none !important; }

/* Card central */
.aviso-desktop-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 2rem 1.75rem 1.5rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(13, 110, 253, 0.15);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    text-align: center;
    animation: avisoCardIn 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* Ícone circular no topo */
.aviso-desktop-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 1.1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #ffffff;
    font-size: 2rem;
    box-shadow:
        0 12px 28px rgba(13, 110, 253, 0.45),
        0 0 0 8px rgba(13, 110, 253, 0.1);
    animation: avisoIconPulse 2.4s ease-in-out infinite;
}

/* Título */
.aviso-desktop-card h5 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

/* Descrição */
.aviso-desktop-card p {
    margin: 0 0 1.35rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #475569;
}

/* Destaque dentro do texto */
.aviso-desktop-card p strong {
    color: #0d6efd;
    font-weight: 700;
}

/* Lista de motivos (opcional, bem discreta) */
.aviso-desktop-lista {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 0 1.35rem;
    padding: 0;
    list-style: none;
}

.aviso-desktop-lista li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #e7f1ff;
    color: #0a58ca;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.aviso-desktop-lista li i { font-size: 0.85rem; }

/* Botão */
.aviso-desktop-card .btn {
    min-height: 2.85rem;
    padding-inline: 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aviso-desktop-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(13, 110, 253, 0.45);
}

.aviso-desktop-card .btn:active { transform: translateY(0); }

/* Animação de entrada do overlay */
@keyframes avisoFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Animação de entrada do card */
@keyframes avisoCardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Pulso sutil no ícone */
@keyframes avisoIconPulse {
    0%, 100% { box-shadow: 0 12px 28px rgba(13, 110, 253, 0.45), 0 0 0 8px rgba(13, 110, 253, 0.1); }
    50%      { box-shadow: 0 12px 28px rgba(13, 110, 253, 0.55), 0 0 0 14px rgba(13, 110, 253, 0.05); }
}

/* Em telas muito pequenas, compacta o card */
@media (max-width: 380px) {
    .aviso-desktop-card { padding: 1.6rem 1.25rem 1.25rem; }
    .aviso-desktop-icon { width: 60px; height: 60px; font-size: 1.7rem; }
    .aviso-desktop-card h5 { font-size: 1.05rem; }
    .aviso-desktop-card p { font-size: 0.85rem; }
}

/* Acessibilidade: respeitar prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    #aviso-desktop-overlay,
    .aviso-desktop-card,
    .aviso-desktop-icon {
        animation: none !important;
    }
}