﻿

/* Estilos para o botão de abrir o modal */
.open-pdf-button {
    padding: 0.75rem 1.5rem; /* px-6 py-3 */
    background-color: #2563eb; /* bg-blue-600 */
    color: #ffffff; /* text-white */
    font-weight: 600; /* font-semibold */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    transition: background-color 0.3s ease; /* transition duration-300 */
    border: none;
    cursor: pointer;
}

    .open-pdf-button:hover {
        background-color: #1d4ed8; /* hover:bg-blue-700 */
    }

    .open-pdf-button:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); /* focus:ring-2 focus:ring-blue-500 focus:ring-opacity-75 */
    }

/* Estilos para o overlay do modal */
.modal-overlay {
    position: fixed;
    inset: 0; /* top:0, right:0, bottom:0, left:0 */
    background-color: rgba(0, 0, 0, 0.7); /* Fundo escuro semi-transparente */
    z-index: 9999; /* Garante que o overlay esteja acima de outros elementos */
    display: none; /* hidden */
    align-items: center;
    justify-content: center;
}

    .modal-overlay.flex-display { /* Classe para mostrar o modal */
        display: flex;
    }

/* Estilos para o conteúdo do modal */
.modal-content {
    background-color: #ffffff; /* bg-white */
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-2xl */
    padding: 1.5rem; /* p-6 */
    width: 100%;
    max-width: 80rem; /* max-w-5xl (aproximado, 80rem é maior para "grande") */
    height: 83.333333%; /* h-5/6 (5/6 de 100vh) */
    display: flex;
    flex-direction: column; /* flex-col */
    z-index: 10000; /* Garante que o modal esteja acima do overlay */
    transform: scale(0.95); /* scale-95 */
    opacity: 0; /* opacity-0 */
    transition: transform 0.3s ease, opacity 0.3s ease; /* transition-all duration-300 */
}

    .modal-content.scale-100-opacity-100 { /* Classes para animação de entrada */
        transform: scale(1);
        opacity: 1;
    }

/* Cabeçalho do Modal */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem; /* pb-4 */
    border-bottom: 1px solid #e5e7eb; /* border-b border-gray-200 */
}

.modal-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    color: #374151; /* text-gray-800 */
}

.close-button {
    color: #6b7280; /* text-gray-500 */
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    transition: color 0.3s ease;
}

    .close-button:hover {
        color: #4b5563; /* hover:text-gray-700 */
    }

    .close-button svg {
        width: 1.75rem; /* w-7 */
        height: 1.75rem; /* h-7 */
    }

/* Corpo do Modal (onde o PDF será exibido) */
.modal-body {
    flex-grow: 1; /* flex-grow */
    margin-top: 1rem; /* mt-4 */
    overflow: hidden; /* overflow-hidden */
    border-radius: 0.5rem; /* rounded-lg */
    border: 1px solid #d1d5db; /* border border-gray-300 */
}

/* Estilos para o iframe do PDF */
.pdf-iframe {
    width: 100%;
    height: 100%;
    border: none; /* Remove a borda padrão do iframe */
}

/* Rodapé do Modal */
.modal-footer {
    margin-top: 1rem; /* mt-4 */
    padding-top: 1rem; /* pt-4 */
    border-top: 1px solid #e5e7eb; /* border-t border-gray-200 */
    display: flex;
    justify-content: flex-end; /* justify-end */
}

.close-footer-button {
    padding: 0.625rem 1.25rem; /* px-5 py-2 */
    background-color: #e5e7eb; /* bg-gray-200 */
    color: #374151; /* text-gray-800 */
    font-weight: 600; /* font-semibold */
    border-radius: 0.5rem; /* rounded-lg */
    transition: background-color 0.3s ease; /* transition duration-300 */
    border: none;
    cursor: pointer;
}

    .close-footer-button:hover {
        background-color: #d1d5db; /* hover:bg-gray-300 */
    }

    .close-footer-button:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.5); /* focus:ring-2 focus:ring-gray-400 focus:ring-opacity-75 */
    }
