/* --- ARQUIVO: app/static/css/custom.css --- */

:root {
    --fzea-primary: #2894ac;
}

.bg-custom {
    background-color: var(--fzea-primary) !important;
}

.btn-custom {
    background-color: var(--fzea-primary);
    border-color: var(--fzea-primary);
    color: #fff;
}

.btn-custom:hover {
    background-color: #207a8c;
    border-color: #207a8c;
    color: #fff;
}

/* --- MENU ADMIN HORIZONTAL (Correção anterior) --- */
.admin-nav-scroll {
    flex-wrap: wrap !important;
    overflow: visible !important;
    white-space: normal !important;
    padding-bottom: 0;
}

.card-header-visible {
    overflow: visible !important;
    z-index: 1000;
    position: relative;
}

.nav-pills .nav-link {
    color: #555;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50rem;
    transition: all 0.2s ease-in-out;
    margin-bottom: 5px;
}

.nav-pills .nav-link:hover {
    background-color: #e9ecef;
    color: var(--fzea-primary);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--fzea-primary);
    color: #fff;
    box-shadow: 0 2px 5px rgba(40, 148, 172, 0.3);
}

.nav-pills .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    margin-top: 5px;
    z-index: 1050;
}

.nav-pills .dropdown-item:active {
    background-color: var(--fzea-primary);
}

/* --- ESTILOS NOVOS (FZEA FORMS 2.0) --- */

/* Banner do Formulário */
.form-banner-container {
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
}

.form-banner-img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover; /* Garante que a imagem cubra a área sem distorcer */
    display: block;
}

/* Preview Modal com Zoom */
#iframeContainer {
    transform-origin: top center; 
    transition: transform 0.2s ease-out;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

/* Editor de Planilha (Jspreadsheet overrides) */
.jexcel_content {
    box-shadow: none !important;
    border: none !important;
}

.jexcel > thead > tr > td {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

/* Animações */
.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

main.container-fluid {
    max-width: 100%;
}
