/* Modal Exames Toxicológicos - Apenas página exame-toxicologico */

.tox-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.tox-modal.active {
    display: flex !important;
    animation: toxModalFadeIn 0.3s ease;
}

.tox-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.tox-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    animation: toxModalSlideIn 0.35s ease;
}

.tox-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tox-modal-close:hover {
    background: #0454a4;
    color: #fff;
}

.tox-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #0454a4;
    margin: 0;
    padding: 24px 24px 16px;
    text-transform: uppercase;
    border-bottom: 3px solid #0785c3;
}

.tox-modal-body {
    padding: 20px 24px 28px;
}

.tox-modal-row {
    margin-bottom: 16px;
}

.tox-modal-row strong {
    display: block;
    color: #0454a4;
    font-size: 14px;
    margin-bottom: 4px;
}

.tox-modal-row p {
    margin: 0;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

.tox-modal-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    padding: 14px 28px;
    text-decoration: none;
}

@keyframes toxModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes toxModalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Prevenir scroll do body quando modal aberto */
body.tox-modal-open {
    overflow: hidden;
}
