.header-background {
    width: 100% !important;
    height: 10vh !important;
    background-color: #1B1C1E !important;
}

#edit-icon-color {
    color: rgb(37, 37, 224);
}

#delete-icon-color {
    color: rgb(202, 29, 29);
}

.table-aligin-itens {
    text-align: center !important;
}

.table-scroll {
    overflow-x: scroll;
}

.header-background a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
}

#gray {
    background-color: #1B1C1E !important;
}

#blue {
    color: rgba(0, 31, 51, 1);
}

#black {
    background-color: rgb(19, 19, 19) !important;
    color: white !important;
}

#white {
    color: white !important;
}

#yellow {
    color: rgba(255, 199, 0, 1) !important;
}

.social-links a {
    color: white !important ;
    font-size: large;
    margin-right: 1vh !important;
}

.text-yellow {
    color: rgba(255, 199, 0, 1) !important;
    font-size: larger;
    font-weight: bold;
}

.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: xx-large;
    margin: 0;
    margin-top: 15vh;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.overlay-content {
    text-align: center;
}

.overlay-content p {
    margin: 0 !important;
}

.card:hover .overlay,
.card:focus .overlay {
    opacity: 1;
}

.card {
    position: relative;
}
.text-white {
    color: white !important;
    font-size: larger;
    font-weight: bold;
}

.container {
    color: white !important;
    font-family: Roboto Condensed, sans-serif;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.carousel-size {
    height: 90vh !important;
    overflow: hidden;
}

.index-conteiner-size {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100% !important;
}

.index-conteiner-direction {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.font-color {
    color: white !important;
    /* font-family: Roboto Condensed, sans-serif; */
}

.conteiner-font {
    font-size: large !important;
}

.header-content a {
    margin-top: 3vh;
}

.img-logo-header img {
    width: 8vh; 
    height: 8vh;
    margin-top: 1vh;
}

.backgound-body {
    background-color: white;
}

.body-conteiner {
    display: flex;
    width: 100%;
    height: calc(100vh - 10vh) !important; /* Altura total menos navbar */
    min-height: calc(100vh - 10vh);
    overflow: hidden;
}

.body-conteiner .d-flex.flex-row {
    height: 100%;
    min-height: 100%;
    width: 100%;
}

.form-label {
    color: black;
}

.backgound-footer {
    background-color: #1B1C1E;
}

.header-content {
    width: 70%;
}

.footer-conteiner {
    height: 30vh;
}

.footer-text p {
    color: white;
    text-decoration: none;
}

.footer-text a {
    color: white;
    text-decoration: none;
}

.footer-text i {
    color: rgba(255, 199, 0, 1);
    text-decoration: none;
}

.footer-text h3{
    color: white;
    font-size: x-large;
    font-weight: bold;
}

.footer-itens {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding-top: 3vh;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.yellow-line {
    color: rgba(255, 199, 0, 1);
    height: 5vh;
    width: 100%;
}

.navbar-toggler {
    border-color: #ffffff !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.card-size{
    width: 80vh; 
    height: 70vh !important; 
    background-color: rgb(246, 246, 246) !important; 
    align-self: center;
}

.oculte-desktop {
    display: none;
}

.card-size-large {
    margin-top: 5vh;
    margin-bottom: 5vh;
    width: 110vh; 
    height: max-content !important;
    background-color: rgb(246, 246, 246) !important; 
    align-self: center;
}

.form-large {
    display: flex !important;
    flex-direction: row !important;
}


.card-size-admin {
    width: 90vh; 
    height: 85vh !important; 
    background-color: rgb(246, 246, 246) !important; 
    align-self: center;
    margin: 5vh;
}

.admin-links {
    display: flex;
    width: 22vh !important;
    height: 22vh !important;
    color: rgba(0, 31, 51, 1);
    border-radius: 5%;
    margin: 5vh;
    align-items: center;
    text-align: center !important;
}

.admin-links a {
    width: 100% !important;
    height: 100% !important;
    text-decoration: none;
    text-align: center;
    align-self: center !important;
    padding-top: 4vh;
}

.admin-links i {
    text-align: center;
    font-size: xx-large;
    align-self: center !important;
    margin: 2vh;
}

.admin-conteiner {
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap !important;
}

.display-card {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.display-card p {
    width: 10vh;
    height: 10vh;
    margin: 1vh;
    align-items: center !important;
    overflow: hidden;
}   

.display-card i {
    align-self: center !important;
    color: green;
    font-size: x-large;
}   

.display-card img {
    width: 10vh;
    height: 10vh;
}

.admin-display {
    display: flex;
    flex-direction: row !important;
}

.custom-btn {
    color: white !important;
    background-color: transparent;
}

.graficos-conteiner {
    width: 46vh !important;
    height: max-content;
    padding: 2vh !important;
    padding-bottom: 1vh !important;
}


.resultado-item {
    padding: 5px;
    cursor: pointer;
}
.resultado-item:hover {
    background-color: #f0f0f0;
}

.search-space {
    background-color: white;
    color: black;
    border-radius: 5px;
}

.search-user {
    font-size: medium !important;
    margin: 3%;

}

.chart-container {
    width: 80%;
    margin: auto;
    margin-top: 50px;
}

#map {
    height: 500px;
    width: 80%;
    margin: auto;
    margin-top: 50px;
}

.professional-display {
    display: flex;
    flex-wrap:wrap;
    flex-direction: row;
    background-color: red;
    width: max-content;
}

.oculte-item-desktop {
    display: none !important;
}

.grafics-display {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.card-img-top2 {
    height: 100% !important;
}

.select-liks-adm-painel {
    background-color: #363636 !important;
    height: 100% !important;
    min-width: 280px;
    max-width: 280px;
    overflow-y: auto;
    flex-shrink: 0;
}

.text-select-liks h6 {
    color: #ffc107 !important;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
    margin-bottom: 10px !important;
    font-size: 0.9rem;
    text-transform: none;
}

.text-select-liks button {
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 5px;
    width: 100%;
    text-align: left;
}

/* Estilo para botão ativo no painel administrativo */
.text-select-liks button.active-btn {
    background-color: #ffc107 !important;
    color: #363636 !important;
    font-weight: bold;
}

.text-select-liks button.active-btn:hover {
    background-color: #ffcd39 !important;
    color: #363636 !important;
    transform: none;
}

.text-select-liks button:hover {
    background-color: #4a4a4a !important;
    color: #ffc107 !important;
    transform: translateX(5px);
}

.text-select-liks button i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Loading spinner styles */
#blockPages .fa-spinner {
    color: #ffc107;
}

.form-scroll {
    overflow-y: scroll;
    height: 80vh !important;
}

#blockPages {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    background-color: #f8f9fa;
    padding: 0;
    position: relative;
}

/* Container para centralizar conteúdo carregado */
#blockPages .content-wrapper {
    min-height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

#blockPages .content-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Ajustes para conteúdo carregado via AJAX */
#blockPages .container-fluid {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 auto;
}

#blockPages .card {
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    width: 100%;
    max-width: 100%;
}

#blockPages .card-body {
    padding: 1.5rem;
}

/* Centralizar tabelas */
#blockPages .table-responsive {
    margin: 0 auto;
    max-width: 100%;
    overflow-x: auto;
}

#blockPages .table {
    margin: 0 auto;
    width: 100%;
    table-layout: auto;
}

/* Centralizar formulários */
#blockPages .form-container,
#blockPages form {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

#blockPages .form-scroll {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding-right: 10px;
}

/* Centralizar gráficos e relatórios */
#blockPages .graficos-conteiner {
    width: 100% !important;
    max-width: 600px;
    margin: 0 auto 1rem auto;
    padding: 1rem !important;
    box-sizing: border-box;
}

#blockPages .chart-container {
    width: 100%;
    max-width: 100%;
    margin: 1rem auto;
}

/* Centralizar botões de ação */
#blockPages .btn-toolbar,
#blockPages .button-group {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

/* Ajustes específicos para diferentes tipos de conteúdo no blockPages */

/* Para relatórios com gráficos */
#blockPages .chart-container canvas {
    max-width: 100% !important;
    height: auto !important;
}

/* Para tabelas em devices pequenos */
@media (max-width: 768px) {
    #blockPages .table-responsive {
        font-size: 0.875rem;
    }
    
    #blockPages .table th,
    #blockPages .table td {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
    }
    
    #blockPages .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Para formulários */
#blockPages .form-group,
#blockPages .mb-3 {
    margin-bottom: 1rem;
}

#blockPages .form-control {
    font-size: 1rem;
}

/* Ajustes para cards de estatísticas/KPIs */
#blockPages .card-body {
    padding: 1rem;
}

/* Scroll customizado para o painel */
.select-liks-adm-painel::-webkit-scrollbar,
#blockPages::-webkit-scrollbar {
    width: 8px;
}

.select-liks-adm-painel::-webkit-scrollbar-track,
#blockPages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.select-liks-adm-painel::-webkit-scrollbar-thumb,
#blockPages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.select-liks-adm-painel::-webkit-scrollbar-thumb:hover,
#blockPages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


/* Estilos para os novos cards administrativos simplificados - CORES INVERTIDAS */
.admin-option-card {
    background: #1B1C1E !important; /* Fundo escuro */
    border: 2px solid #363636 !important;
    border-radius: 15px !important;
    transition: all 0.3s ease, border-radius 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    height: 150px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.admin-option-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3) !important;
    border: 3px solid #ffffff !important;
    border-radius: 0px !important; /* Cantos quadrados */
    background: #363636 !important; /* Fundo mais claro no hover */
}

.admin-option-card i {
    transition: all 0.3s ease !important;
    color: #ffffff !important; /* Ícones brancos */
}

.admin-option-card:hover i {
    transform: scale(1.15) !important;
    color: #ffc107 !important; /* Ícones amarelos no hover */
}

.admin-option-card h6,
.admin-option-card .text-w {
    font-weight: 600 !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
    color: #ffffff !important; /* Texto branco */
}

.admin-option-card:hover h6,
.admin-option-card:hover .text-w {
    color: #ffc107 !important; /* Texto amarelo no hover */
}

.admin-option-card a {
    text-decoration: none !important;
}

.admin-option-card a:hover .text-w {
    color: #ffc107 !important;
}


/* Estilos específicos para o painel administrativo */
.admin-card {
    transition: all 0.3s ease;
    border-radius: 10px !important;
    overflow: hidden;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important;
}

.admin-card .card-img-top2 {
    transition: all 0.3s ease;
}

.admin-card:hover .card-img-top2 {
    transform: scale(1.05);
}

.admin-card .overlay {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.admin-card .overlay-content p {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.admin-card .btn-outline-light {
    border: 2px solid #fff;
    font-weight: bold;
    transition: all 0.3s ease;
}

.admin-card .btn-outline-light:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

/* Hero section específico para painel admin */
.carousel-size .d-flex {
    min-height: 300px;
}

/* Estilo específico para texto dos cards administrativos */
.text-w {
    color: #ffffff !important;
    font-weight: 600 !important;
    transition: color 0.3s ease !important;
}

.admin-option-card .text-w {
    color: #ffffff !important;
}

.admin-option-card:hover .text-w {
    color: #ffc107 !important;
}



@media ( max-width:1023px ) {
    .oculte-mobile {
        display: none;
    }
    .oculte-desktop {
        display: initial;
    }
    .oculte-item-desktop {
        display: initial !important;
    }

    .marign-top-grafics {
        margin-top: 11vh !important;
    }

    .body-conteiner {
        display: flex;
        width: 100%;
        height: calc(100vh - 10vh) !important;
        min-height: calc(100vh - 10vh);
        overflow: hidden;
    }

    .card-size{
        width: 50vh; 
        height: max-content; 
        background-color: rgb(246, 246, 246) !important; 
        align-self: center;
        margin: 1vh !important;
    }
    
    .carousel {
        margin-top: 10vh;
    }

    .itens-carousel {
        display: flex;
        flex-direction: column;
        align-items: start;
        margin-top: 10vh;
    }

    .header-background {
        width: 100% !important;
        height: 10vh !important;
        background-color: rgba(0, 31, 51, 1);
    }

    .logo-canva-mobile {
        height: 5vh;
        width: 10vh;
        margin-top: -5vh !important;
    }

    .footer-conteiner {
        height: max-content;
    }

    .footer-mobile {
        flex-direction: column !important;
        align-items: center !important;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .footer-text a {
        color: white;
        text-decoration: none;
        text-align: start !important;
    }

    .card-size-admin {
        width: 70vh; 
        height: 50vh !important; 
        background-color: rgb(246, 246, 246) !important; 
        align-self: center;
        margin: 5vh;
    }

    .table-mobile-size {
        width: 30vh !important;
        overflow-x: scroll !important;
    }
    
    .logo-img-mobile {
        width: 10vh !important;
        height: 10vh !important;
        overflow: hidden;

    }

    .logo-img-mobile img {
        width: 100%;
        height: auto; 
        display: block; 
    }

    .admin-display {
        display: flex;
        flex-direction: column !important;
    }

    .admin-conteiner {
        display: flex;
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    

    .card-size-large {
        margin-top: 2vh;
        margin-bottom: 5vh;
        padding: 2vh;
        width: 40vh !important; 
        height: max-content !important;
        background-color: rgb(246, 246, 246) !important; 
        align-self: center;
    }

    .admin-links {
        display: flex;
        width: 12vh !important;
        height: 12vh !important;
        color: rgba(0, 31, 51, 1);
        border-radius: 5%;
        margin: 1vh;
        align-items: center;
        text-align: center !important;
    }
    
    .admin-links a {
        width: 100% !important;
        height: 100% !important;
        text-decoration: none;
        text-align: center;
        align-self: center !important;
        padding-top: inherit !important;
    }
    
    .admin-links i {
        text-align: center;
        font-size: xx-large;
        align-self: center !important;
        margin: 2vh;
    }

    .display-card {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center !important;
    }
    
    .img-logo-header img {
        width: 8vh; 
        height: 8vh;
        margin-top: 0.2vh;
    }

    .graficos-conteiner {
        width: 45vh !important;
        height: max-content;
        padding: 2vh !important;
        padding-bottom: 1vh !important;
    }

    #margin-top {
        margin-top: 10vh !important;
    }

    .graficos-content {
        display: flex;
        flex-direction: column !important;
    }

    .graficos-select {
        display: flex;
        flex-direction: row;
    }

    #margin-top-cards {
        margin-top: 1vh !important;
    }

    .card-margin-bottom {
        height: fit-content !important;
        margin-bottom: 1vh !important;
    }

    .container {
        color: white !important;
        text-align: center !important;
        font-family: Roboto Condensed, sans-serif;
        display: block;
    }

    .carousel-size {
        height: max-content !important;
        overflow: hidden;
    }

    #item-size {
        width: 90% !important;
    }

    .margin-product {
        margin-top: 10vh;
    }

}

/* Responsividade para o painel administrativo */
@media (max-width: 768px) {
    .select-liks-adm-painel {
        min-width: 250px;
        max-width: 250px;
    }
    
    .text-select-liks h6 {
        font-size: 0.8rem;
    }
    
    .text-select-liks button {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    #blockPages .content-wrapper {
        padding: 0.5rem !important;
    }
    
    #blockPages .content-container {
        max-width: 100%;
    }
    
    #blockPages .graficos-conteiner {
        max-width: 100% !important;
        padding: 0.5rem !important;
    }
    
    #blockPages .form-container,
    #blockPages form {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .body-conteiner .d-flex.flex-row {
        flex-direction: column;
        height: 100%;
    }
    
    .select-liks-adm-painel {
        min-width: 100%;
        max-width: 100%;
        height: auto !important;
        min-height: auto;
        max-height: 40vh;
        overflow-y: auto;
    }
    
    #blockPages {
        height: 60vh;
        min-height: 60vh;
        flex: 1;
    }
    
    #blockPages .content-wrapper {
        padding: 0.25rem !important;
        align-items: flex-start;
    }
    
    #blockPages .content-container {
        max-width: 100%;
        width: 100%;
    }
    
    .text-select-liks {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.5rem;
    }
    
    .text-select-liks h6 {
        width: 100%;
        margin: 0.5rem 0 0.25rem 0 !important;
        font-size: 0.75rem;
    }
    
    .text-select-liks button {
        flex: 1;
        min-width: 120px;
        font-size: 0.8rem;
        padding: 6px 10px;
        margin: 0.2rem !important;
    }
}


/* Responsividade para os cards admin */
@media (max-width: 768px) {
    .admin-card {
        margin: 1rem auto !important;
    }
    
    .index-conteiner-size {
        justify-content: center !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    #item-size {
        width: 90% !important;
        justify-content: center;
    }
}


/* Responsividade para os cards admin simplificados */
@media (max-width: 768px) {
    .admin-option-card {
        height: 120px;
        margin-bottom: 1rem;
        box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    }
    
    .admin-option-card:hover {
        border: 2px solid #ffffff !important; /* Borda menor em mobile */
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    }
    
    .admin-option-card i {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .admin-option-card h6 {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .admin-option-card {
        height: 100px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    
    .admin-option-card:hover {
        border: 2px solid #ffffff !important; /* Borda ainda menor em mobile pequeno */
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }
    
    .admin-option-card i {
        font-size: 1.8rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .admin-option-card h6 {
        font-size: 0.75rem;
    }
}

/* Sobrescrever regras globais do container para o painel administrativo */
.admin-panel-container {
    color: inherit !important;
}

.admin-panel-container .container {
    color: inherit !important;
}

.admin-panel-container h2 {
    color: #1B1C1E !important;
}

