body {
    font-family: 'Century Gothic', sans-serif;  /* Defina a fonte padrão */
    /* position: relative; */
    /* height: 100vh; */
    margin: 0;
    height: 100%;
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    }

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/LOGO.png');            
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.05;  /* Defina o nível de transparência */
    z-index: -1;    /* Fica atrás do conteúdo */

}

.dashboard {
  display: flex;
  width: 100vw;
  height: 100vh;
  /* overflow: hidden; */

}
.container {
    max-width: 1080px;  /* 850px*/
    background-color: rgba(255, 255, 255, 0.9); /* Transparência para o fundo */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    position: relative;
    
}
.btn-custom {
    background-color: #1d3957;
    color: white;
}
.btn-custom:hover {
    background-color: #0056b3;
}
.card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(238, 3, 3, 0.1);
}

.error-message {
    color: red;
    margin-top: 10px;
    display: none;
}
.file-list {
    margin-top: 15px;
    list-style-type: none;
    padding: 0;
}

.file-list li {
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 5px;
}

.file-list button {
    margin-left: 10px;
}


/* Estilo para a mensagem de flash no topo direito ------------------------------------------------------------------------------ */

.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050; /* Certifica-se de que a mensagem fique no topo de outros elementos */
    min-width: 300px;
}

/* Estilo do menu lateral --------------------------------------------------------------------------------------------------------*/

.sidebar {
    background-color: #343a40; /* Cor de fundo escura */
    color: #fff; /* Texto branco */
    width: 250px; /* Largura fixa */
    height: 100vh; /* Altura total da tela */
    position: fixed; /* Fixa na lateral */
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    transform: translateX(-100%); /* Escondido por padrão */
    transition: transform 0.3s ease; /* Animação suave */
    z-index: 1000; /* Garante que a barra lateral fique acima de outros elementos */
}

.sidebar.open {
    transform: translateX(0); /* Mostra o menu quando aberto */
}

.sidebar a {
    color: #fff;
    text-decoration: none;
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sidebar a i {
    margin-right: 10px; /* Espaço entre ícone e texto */
    font-size: 24px;
}

.sidebar a:hover {
    background-color: #495057; /* Cor de hover */
    color: white;
}

/* Esconder o texto quando o menu estiver colapsado */
.sidebar.collapsed a span {
    display: none;
}

/* Centralizar o ícone quando colapsado */
.sidebar.collapsed a {
    justify-content: center;
}

.toggle-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background-color: #343a40;
    color: #fff;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1100; /* Acima do menu */
}

.collapsed + .toggle-btn {
    left: 80px; /* Botão de colapsar move-se junto com o menu */
}

.main-content {
    flex: 1;
    position: relative;
    /* margin-left: 80px;    mesmo valor que o sidebar aberto */
    display: flex;          /* vira flex container */
    flex-direction: column; /* organiza os filhos em coluna */
    transition: margin-left 0.3s;
}

.main-content.homepage {
  justify-content: center;  /* centraliza verticalmente */
  align-items: center;      /* centraliza horizontalmente */
  text-align: center;       /* centraliza texto e imagens */
}


.sidebar.collapsed ~ .main-content {
    margin-left: 80px; /* Espaço reduzido quando o menu é colapsado */
}
.card-img-top{
    max-width: 100px;
    height: auto;
    padding: 10px 15px;
    justify-content: center;
    transition: margin-left 0.3s;
    
}


/* Espaço html outros serviços --------------------------------------------------------------------------------------------- */

.service-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.service-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.service-description {
    font-size: 0.9rem;
    color: #777;
}

.new-badge {
    font-size: 0.7rem;
    background-color: #ff3d3d;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Espaço html bot barra de progresso --------------------------------------------------------------------------------------------- */
.progress-container {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 5px;
    margin: 10px 0;
}
.progress-bar {
    height: 30px;
    width: 0%;
    background-color: #4caf50;
    border-radius: 5px;
    text-align: center;
    line-height: 30px;
    color: white;
}

/* Spinner para mostrar o carregamento --------------------------------------------------------------------------------------------- */
.spinner-border {
    display: none; /* Oculto até o envio começar */
}

/* Estilo para links _______________________________________________________________________________________________________*/
a {
    text-decoration: none; /* Remove o sublinhado */
    color: #000000; /* Cor azul padrão */
}

a:hover {
    /* text-decoration: underline; /* Adiciona o sublinhado ao passar o mouse */
    color: #2166a3; /* Cor azul mais escura ao passar o mouse */
}

/* Efeito de Digitação --------------------------------------------------------------------------------------------- */

.typing-effect {
    font-size: 36px;
    color: #333;
    /* border: 1px solid #ddd; */
    padding: 10px;
    border-radius: 10px;
    background-color: #fff;
}

#cursor {
    font-weight: bold;
    color: #4CAF50;
    animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}



.embed-container {
  position: absolute;
  top:    0;
  left:   0;
  right:  0;
  bottom: 0;
  overflow: hidden;  /* remove scrollbars indesejadas */
}

/* o iframe preenche 100% x 100% do container */
.embed-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

#selected-file-name {
  margin-top: 5px;
  color: #6c757d;
}

/* Ajustes para telas maiores */
@media (min-width: 768px) {
    .sidebar {
        transform: translateX(0); /* Sempre visível em telas grandes */
        position: relative;
        width: 250px;
    }

    .toggle-btn {
        display: none; /* Esconde o botão em telas grandes */
    }
}

/* Estilo para a página de lista de relatórios Power BI */
.powerbi-card {
    background: linear-gradient(135deg, #3a0ca3, #1d3557); /* Tons mais escuros */
    color: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.powerbi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.powerbi-card .btn {
    background-color: white;
    color: #1d3557;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.powerbi-card .btn:hover {
    background-color: #1d3557;
    color: white;
}
