* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: Arial, sans-serif;
}


/* =========================================================
   TOAST
   ========================================================= */

.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 13px;

    width: min(390px, calc(100vw - 32px));
    min-height: 64px;

    padding: 12px 14px 12px 16px;

    background: var(--portal-white, #ffffff);

    border: 1px solid var(--portal-border, #E2E8F0);
    border-radius: 10px;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.10),
        0 3px 8px rgba(15, 23, 42, 0.05);

    overflow: hidden;

    opacity: 0;
    transform: translateY(-12px) translateX(8px);

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.toast::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;

    width: 4px;

    background: var(--portal-blue, #07468F);
}

.toast-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);

    pointer-events: auto;
}


/* =========================================================
   ÍCONE
   ========================================================= */

.toast-icon {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    font-size: 17px;
    font-weight: 700;

    background: #EFF6FF;
    color: var(--portal-blue, #07468F);
}


/* SUCESSO */

.toast-sucesso::before {
    background: #16A34A;
}

.toast-sucesso .toast-icon {
    background: #F0FDF4;
    color: #16A34A;
}


/* ERRO */

.toast-erro::before {
    background: #DC2626;
}

.toast-erro .toast-icon {
    background: #FEF2F2;
    color: #DC2626;
}


/* =========================================================
   CONTEÚDO
   ========================================================= */

.toast-content {
    flex: 1;
    min-width: 0;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;

    color: var(--portal-text, #10213A);
}


/* =========================================================
   BOTÃO FECHAR
   ========================================================= */

.toast-close {
    flex: 0 0 30px;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 7px;

    background: transparent;
    color: #94A3B8;

    font-size: 18px;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.toast-close:hover {
    background: #F1F5F9;
    color: var(--portal-text, #10213A);
}


/* =========================================================
   TOAST MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .toast {
        top: 16px;
        right: 16px;
        left: 16px;

        width: auto;
    }
}


/* =========================================================
   MODAL DE CONFIRMAÇÃO
   ========================================================= */

.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(3, 39, 95, 0.42);

    backdrop-filter: blur(2px);

    opacity: 0;

    transition: opacity 0.2s ease;
}

.confirm-modal-visible {
    opacity: 1;
}


/* =========================================================
   CONTEÚDO MODAL
   ========================================================= */

.confirm-modal {
    width: 100%;
    max-width: 430px;

    padding: 28px;

    background: var(--portal-white, #FFFFFF);

    border: 1px solid var(--portal-border, #E2E8F0);
    border-radius: 14px;

    box-shadow:
        0 24px 60px rgba(3, 39, 95, 0.18),
        0 8px 20px rgba(15, 23, 42, 0.08);

    transform: translateY(12px) scale(0.97);

    transition:
        transform 0.2s ease;
}

.confirm-modal-visible .confirm-modal {
    transform: translateY(0) scale(1);
}


/* =========================================================
   ÍCONE MODAL
   ========================================================= */

.confirm-modal-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 11px;

    background: #EFF6FF;
    color: var(--portal-blue, #07468F);

    font-size: 20px;
}


/* =========================================================
   TEXTO MODAL
   ========================================================= */

.confirm-modal-content h2 {
    margin: 0 0 8px;

    font-size: 19px;
    font-weight: 700;

    color: var(--portal-text, #10213A);
}

.confirm-modal-content p {
    margin: 0;

    font-size: 14px;
    line-height: 1.6;

    color: var(--portal-text-secondary, #64748B);
}


/* =========================================================
   AÇÕES MODAL
   ========================================================= */

.confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 26px;
}

.confirm-modal-actions button {
    min-height: 40px;

    padding: 0 17px;

    border-radius: 8px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

.confirm-modal-actions button:active {
    transform: translateY(1px);
}


/* CANCELAR */

.confirm-modal-cancel {
    border: 1px solid var(--portal-border, #E2E8F0);

    background: var(--portal-white, #FFFFFF);
    color: var(--portal-text-secondary, #64748B);
}

.confirm-modal-cancel:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: var(--portal-text, #10213A);
}


/* CONFIRMAR */

.confirm-modal-confirm {
    border: 1px solid var(--portal-blue, #07468F);

    background: var(--portal-blue, #07468F);
    color: #FFFFFF;

    box-shadow: 0 3px 8px rgba(7, 70, 143, 0.18);
}

.confirm-modal-confirm:hover {
    background: var(--portal-blue-dark, #03275F);
    border-color: var(--portal-blue-dark, #03275F);
}


/* =========================================================
   MODAL MOBILE
   ========================================================= */

@media (max-width: 500px) {

    .confirm-modal {
        padding: 22px;
        border-radius: 12px;
    }

    .confirm-modal-actions {
        flex-direction: column-reverse;
    }

    .confirm-modal-actions button {
        width: 100%;
    }
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}