/* FOOTER FIXO */
#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #003367;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    z-index: 1000;
    height: 50px; 
    box-sizing: border-box;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

/* Logo do Footer */
.footerLogo {
    flex-shrink: 0; 
    flex-basis: auto; 
    display: flex;
    align-items: center;
    min-width: fit-content;
}

.footerLogo img {
    height: 35px; 
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
}

/* Texto do Footer */
.footerText {
    font-family: "Open Sans", sans-serif;
    font-size: 12px; 
    font-weight: bolder !important;
    color: #ffffff !important;
    padding-left: 20px;
    margin: 0;
    text-align: center;
    line-height: 1.4; 
    white-space: nowrap;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===================================================
   RESPONSIVIDADE PARA FOOTER FIXO
   =================================================== */

/* Para telas menores que 768px */
@media (max-width: 768px) {
    .footerText {
        font-size: 11px;
        padding-left: 15px;
        white-space: normal;
        line-height: 1.3;
    }
    
    .footerLogo img {
        height: 30px;
    }
    
    #footer {
        height: auto;
        min-height: 50px; 
        padding: 8px 10px;
    }
}

/* Para telas muito pequenas (menos de 480px) */
@media (max-width: 480px) {
    .footerText {
        font-size: 10px;
        padding-left: 10px;
    }
    
    .footerLogo img {
        height: 25px;
    }
    
    #footer {
        padding: 6px 8px;
        min-height: 45px;
    }
}

/* ===================================================
   GARANTIA DE VISIBILIDADE DO FOOTER
   =================================================== */

#footer {
    position: fixed !important;
    z-index: 9999 !important; 
}

* {
    position: relative;
    z-index: auto;
}


.modal, .dropdown-menu, .popover, .tooltip {
    z-index: 10000 !important;
}


body {
    margin-bottom: 60px;
    min-height: 100vh; 
}

/* Container principal */
main, .main-content {
    padding-bottom: 20px; 
}

/* Ajuste responsivo da margem do body */
@media (max-width: 768px) {
    body {
        margin-bottom: 70px; 
    }
}

@media (max-width: 480px) {
    body {
        margin-bottom: 55px;
    }
}