.dashboard-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 5px;
}

.sidebar {
    flex: 1;
    max-width: 300px;
    padding: 20px;
}

.content {
    flex: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: space-evenly;
}

.chart-container {
    flex: 1 1 calc(33% - 20px);
    max-width: 550px;
    min-width: 450px;
    text-align: center;
    padding: 10px;
    background-color: rgba(105, 105, 105, 0.07) !important;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative; /* Necessário para posicionar o botão */
    transition: all 0.3s ease; /* Suaviza a transição */
}

.maximize-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: rgba(0, 123, 255, 0);
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.maximize-btn:hover {
    background-color: rgba(0, 87, 179, 0.6);
}

.chart-container.maximized {
    flex: 1 1 200%; /* Amplia para 200% do tamanho original */
    max-width: 940px; /* Ajusta o limite de largura */
    transition: all 0.3s ease; /* Adiciona uma transição suave */
}

.small-chart-container {
    width: 300px;
    height: 300px;
    transition: all 0.3s ease-in-out;
}

.chart-container[data-maximized="true"] {
    width: 600px;
    height: 600px;
    z-index: 100; /* Trazer para frente */
    transition: all 0.3s ease-in-out;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px; /* Espaço entre o cabeçalho e o gráfico */
}

.chart-controls {
    margin-right: 10px; /* Espaço entre o filtro e o título */
}

.chart-header h5 {
    margin: 0;
    flex: 1; /* Permite que o título ocupe o espaço restante */
    text-align: center; /* Alinha o título à esquerda */
    font-size: 1rem;
}

.filter-select {
    max-width: 150px;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.cards-container {
    display: flex;
    gap: 10px;
    justify-content: space-around;
    margin: 10px 0; /* Reduzi o espaçamento vertical */
    flex-wrap: wrap; /* Permite que os itens quebrem linha em telas menores */
    position: relative; /* Para facilitar ajuste */
    top: -30px; /* Sobe os cards em relação à posição padrão */
}

.mini-card {
    display: flex;
    align-items: center;
    background-color: rgba(105, 105, 105, 0.07); /* Cor do fundo dos cards */
    color: white; /* Cor do texto */
    border-radius: 10px;
    padding: 10px 15px;
    width: 250px; /* Tamanho fixo dos cards */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden; /* Garante que o efeito não ultrapasse os limites do card */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.mini-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Começa fora do card */
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    animation: shine 1s forwards; /* Inicia a animação ao passar o mouse */
}

@keyframes shine {
    to {
        left: 100%; /* Termina do outro lado do card */
    }
}

.icon {
    background: linear-gradient(135deg, #000000, #ff0000);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 20px;
}

.text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    color: #FFF;
}

.value {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: #af4c4c;
}

/* Botão de filtro alinhado à esquerda */
.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.filter-btn {
    margin-right: auto;
    margin-left: 0;
}

/* Estilo do modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Conteúdo do modal */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
  border-radius: 8px;
  max-height: 80%;
  overflow-y: auto;
}

/* Botão de fechar */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.filter-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    background-color: rgba(0, 123, 255, 0);
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.filter-btn:hover {
    background-color: rgba(0, 87, 179, 0.6);
}

:root {
    --chart-colors: #4CAF50, #FFC300, #FF5733, #33C3FF, #9C27B0, #00ACC1, #FF9800, #607D8B, #E91E63, #795548;
}
