/* Estilo para o cabeçalho do painel de controle */
body {
    background: linear-gradient(to top, #f1f3f5, #ffffff);
}

header {
    background: linear-gradient(90deg, #2d3748 0%, #3b3f5c 100%);
    color: white;
    padding: 0;
    z-index: 1030; /* Valor maior que o Bootstrap padrão */
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.6);
    position: relative;
    width: 100%;
}

footer {
    background: linear-gradient(90deg, #2d3748 0%, #3b3f5c 100%);
    color: white;
    padding: 10px 20px;
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.back-dashboard {
    background: linear-gradient(to top, #d8d8d8, #ffffff);
}

.back-financeiro {
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.6);
}

/* Estilo para o login e registro */
/* Estilos para as páginas de autenticação */

.back-login {
    background: linear-gradient(90deg, #2d3748 0%, #3b3f5c 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-login {
    color: #fff;
    font-size: 1.0rem;
    text-align: center;
}	

.auth-card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.7);
}

.auth-card .card-title {
    color: #333;
    font-weight: 600;
}

.btn-login {
    background-color: #3b3f5c;
    border-color: #3b3f5c;
    padding: 10px 0;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #130a1f;
    border-color: #130a1f;
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    padding: 10px 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    transform: translateY(-2px);
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Responsividade para dispositivos móveis */
@media (max-width: 576px) {
    .auth-card {
        margin: 0 15px;
    }
}

/* Estilo para o painel de controle */

.d-flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.d-flex-header form {
    max-width: 250px;
}

h3 strong {
    color: #007bff;
}

small.text-muted {
    font-style: italic;
}

/* Ícone do clima */
.clima-icon {
    height: 40px;
    width: auto;
}

#img-financeiro {
    display: block;
    margin: 0 auto; /* centraliza horizontalmente */
    max-height: 125px;
    object-fit: contain;
    animation: elastic-slide-left 1s ease-in-out;
}

/* Animação de entrada lateral com leve escala */
@keyframes elastic-side-left {
    0% {
      transform: translateX(-100px) scale(0.8);
      opacity: 0;
    }
    60% {
      transform: translateX(10px) scale(1.05);
      opacity: 1;
    }
    100% {
      transform: translateX(0) scale(1);
    }
}

.custom-card {
    border-radius: 5px;
    box-shadow: 0px 15px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}
  
.custom-card:hover {
    transform: translateX(-10px);
}

.custom-card:active {
    transform: scale(0.95);
}

/* Estilo para o botão de acesso a aplicação */
#access_info {
    display: inline-block;
    width: 50%;
    background-color: #3b3f5c;
    color: white;
    border: none;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: #333 0px 5px 15px;
}

#access_info:hover {
    background-color: #130a1f;
    box-shadow: #333 0px 5px 25px;
    transform: scale(1.05);
}

/* Estilo para o botão de acesso ao sistema em dispositivos móveis */
@media (max-width: 768px) {
    #access_info {
        width: 100%;
        margin-top: 10px;
    }
}

@keyframes press-effect {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(0.95);
    }
    100% {
      transform: scale(1);
    }
}

.exchange-ticker {
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.6);
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
}

.ticker-items {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-scroll 50s linear infinite;
}

.ticker-items span {
    display: inline-block;
    margin-right: 40px;
    font-size: 0.8rem;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Media queries para responsividade */
/* Ajustes responsivos para o header */
@media (max-width: 767.98px) {
    header {
        min-height: auto;
        height: auto;
    }
    
    header .row {
        text-align: center;
    }
    
    header .clima-icon {
        width: 20px;
        height: 20px;
    }
    
    header form {
        width: 140px;
    }
    
    header .btn-yellow {
        margin-top: 0;
    }
    
    /* Garantir que o botão Sair fique visível */
    .btn-yellow {
        position: relative;
        z-index: 1031;
    }
}

/* Ajustes para dispositivos muito pequenos */
@media (max-width: 575.98px) {
    header .container-fluid {
        padding: 10px 5px;
    }
    
    header form,
    header .btn-yellow,
    header .d-flex {
        width: 100%;
        margin-bottom: 5px;
        justify-content: center;
    }
    
    header .d-flex {
        flex-direction: column;
    }
}

/* Remover regras conflitantes */
header .d-flex {
    flex-direction: row;
}

/* Ajuste para o clima */
header .clima-icon {
    display: inline-block;
    vertical-align: middle;
}

/* Ajustes para overlay, se necessário */
/* Ajustes para exportação e notificações */
/*********************************************************************************************************************************************************/
/* Estilos para o sistema financeiro */

/* Estilos para o overlay de carregamento */
#loadingOverlay {
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

#loadingOverlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

#loadingOverlay .progress {
    width: 250px;
    height: 10px;
}

/* Estilos para o container de notificações */
#notificacoesContainer {
    z-index: 1050;
}

/* Estilos para o dropdown de notificações */
.dropdown-menu[aria-labelledby="dropdownNotificacoes"] {
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
}

/* Estilos para o header */
header {
    background: linear-gradient(90deg, #2d3748 0%, #3b3f5c 100%);
    color: white;
    padding: 0;
    z-index: 1030;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    width: 100%;
}

/* Ajustes responsivos para o header */
@media (max-width: 767.98px) {
    header {
        min-height: auto;
        height: auto;
    }

    header .row {
        text-align: center;
    }

    header .clima-icon {
        width: 20px;
        height: 20px;
    }

    header form {
        width: 140px;
    }

    header .btn-yellow {
        margin-top: 0;
    }

    /* Garantir que o botão Sair fique visível */
    .btn-yellow {
        position: relative;
        z-index: 1031;
    }
}

/* Ajustes para dispositivos muito pequenos */
@media (max-width: 575.98px) {
    header .container-fluid {
        padding: 10px 5px;
    }

    header form,
    header .btn-yellow,
    header .d-flex {
        width: 100%;
        margin-bottom: 5px;
        justify-content: center;
    }

    header .d-flex {
        flex-direction: column;
    }
}

/* Remover regras conflitantes */
header .d-flex {
    flex-direction: row;
}

/* Ajuste para o clima */
header .clima-icon {
    display: inline-block;
    vertical-align: middle;
}

/* Estilos para os gráficos */
.card-header.bg-light {
    background-color: #f8f9fa;
}

.card-title.mb-0 {
    margin-bottom: 0;
}

/* Estilos para os botões de alternância de gráficos */
.btn-group .btn-outline-primary.active {
    background-color: #007bff;
    color: white;
}

/* Estilos para os modais */
.modal-header, .modal-footer {
    padding: 0.75rem 1rem;
}

.modal-body {
    padding: 1rem;
}

/* Estilos para os formulários */
.form-label {
    font-weight: 500;
}

.btn-entrada {
    background-color: #4CAF50;
    color: white;
}

.btn-entrada:hover {
    background-color: #388E3C;
    color: white;
}

/* Estilos para o resumo financeiro */
.card-text.text-success {
    color: #4CAF50 !important;
}

.card-text.text-danger {
    color: #F44336 !important;
}

/* Estilos para os acordeões */
.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #212529;
}

/*********************************************************************************************************************************************************/


/* Estilos para cores predefinidas */

.btn-dash {
    background-color: #2d3748;
    color: #ffffff;
}
.btn-dash:hover {
    background-color: #1a202c;
    transform: scale(0.95);
    color: #ffffff;
}

.btn-entrada {
    background-color: #f6e05e;
    color: #2d3748;
}
.btn-entrada:hover {
    background-color: #8a6e0b;
    color: #ffffff;
    transform: scale(0.99);
}

.btn-yellow {
    background-color: #f6e05e;
    color: #2d3748;
}

.btn-yellow:hover {
    background-color: #8a6e0b;
    transform: scale(0.95);
}

.btn-green {
    background-color: #68d391;
    color: #2d3748;
}

.btn-red {
    background-color: #fc8181;
    color: #2d3748;
}

.btn-blue {
    background-color: #63b3ed;
    color: #2d3748;
}   

.btn-purple {
    background-color: #b794f4;
    color: #2d3748;
}

.btn-pink {
    background-color: #f687b3;
    color: #2d3748;
}

.btn-orange {
    background-color: #f6ad55;
    color: #2d3748;
}

.btn-teal {
    background-color: #81e6d9;
    color: #2d3748;
}

.btn-gray {
    background-color: #a0aec0;
    color: #2d3748;
}

.btn-black {
    background-color: #4a5568;
    color: #ffffff;
}

.btn-white {
    background-color: #edf2f7;
    color: #2d3748;
}