﻿/* Overlay */
#preload-screen {
    position: fixed;
    inset: 0;
    background: rgba(15, 35, 20, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

/* Modal */
.modal-container {
    position: relative;
    width: 90%;
    max-width: 520px;
    padding: 28px;
    border-radius: 20px;
    background: linear-gradient( 145deg, #ffffff, #f5fff5 );
    border: 1px solid rgba(34, 139, 34, 0.18);
    box-shadow: 0 20px 45px rgba(0,0,0,0.25), 0 4px 10px rgba(34,139,34,0.08);
    overflow: hidden;
    animation: popup 0.25s ease-out;
}

    /* Barra topo decorativa */
    .modal-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: linear-gradient( 90deg, forestgreen, #2e8b57, #4caf50 );
    }

/* Título */
.modal-title {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    color: #1f4d30;
    letter-spacing: 0.3px;
    text-decoration:underline;
}

/* Texto */
.modal-message {
    margin: 22px 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #445348;
    text-align: start;
}

/* HR elegante */
.modal-container hr {
    border: none;
    height: 1px;
    background: linear-gradient( to right, transparent, rgba(34,139,34,0.25), transparent );
    margin: 18px 0;
}

/* Área botões */
.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

/* Botão base */
.modal-btn {
    border: none;
    min-width: 110px;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    /* Hover */
    .modal-btn:hover {
        transform: translateY(-2px);
    }

    /* Confirm / OK */
    .modal-btn.confirm,
    .modal-btn.ok {
        color: white;
        background: linear-gradient( 135deg, forestgreen, #2e8b57 );
        box-shadow: 0 8px 18px rgba(34,139,34,0.28);
    }

        .modal-btn.confirm:hover,
        .modal-btn.ok:hover {
            background: linear-gradient( 135deg, #1f6b1f, #267349 );
            box-shadow: 0 10px 22px rgba(34,139,34,0.35);
        }

    /* Cancel */
    .modal-btn.cancel {
        background: #eef3ee;
        color: #35543c;
        border: 1px solid #d4e1d4;
    }

        .modal-btn.cancel:hover {
            background: #dde8dd;
        }

/* Animações */
@keyframes popup {
    0% {
        transform: scale(0.88) translateY(10px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
