/* =========================================================
 * Alertify — tema custom (BrasilStock)
 * Carregar SEMPRE depois de alertify.min.css
 * ========================================================= */

/* Overlay mais suave */
.alertify .ajs-dimmer {
    background: #0f172a;
    opacity: .45;
}

/* Caixa do dialog */
.alertify .ajs-dialog {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    padding: 0;
    max-width: 440px;
    overflow: hidden;
}

/* Titulo */
.alertify .ajs-header {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    padding: 22px 24px 4px;
    margin: 0;
    border: 0;
    background: transparent;
}

/* Corpo / mensagem */
.alertify .ajs-body {
    min-height: auto;
}
.alertify .ajs-body .ajs-content {
    padding: 8px 24px 20px;
    color: #4b5563;
    font-size: .95rem;
    line-height: 1.55;
}

/* Rodape / area dos botoes */
.alertify .ajs-footer {
    padding: 12px 20px 20px;
    margin: 0;
    border: 0;
    background: transparent;
    min-height: auto;
}
.alertify .ajs-footer .ajs-buttons.ajs-primary {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Botoes */
.alertify .ajs-footer .ajs-button {
    min-width: 96px;
    min-height: auto;
    margin: 0;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    text-transform: none;
    cursor: pointer;
    transition: filter .15s ease, background .15s ease;
}

/* Botao OK (padrao = roxo da marca) */
.alertify .ajs-footer .ajs-ok {
    background: #6b5cff;
    color: #fff;
}
.alertify .ajs-footer .ajs-ok:hover {
    filter: brightness(1.08);
}

/* Botao Cancelar (neutro) */
.alertify .ajs-footer .ajs-cancel {
    background: #eef0f4;
    color: #374151;
}
.alertify .ajs-footer .ajs-cancel:hover {
    background: #e2e5ec;
}

/* =========================================================
 * Variante PERIGO (exclusao): titulo e botao OK em vermelho.
 * Ativada via JS com classList.add('ajs-danger').
 * ========================================================= */
.alertify.ajs-danger .ajs-header {
    color: #b91c1c;
}
.alertify.ajs-danger .ajs-footer .ajs-ok {
    background: #dc2626;
}
.alertify.ajs-danger .ajs-footer .ajs-ok:hover {
    background: #b91c1c;
    filter: none;
}
