body {
    font-family: Arial, sans-serif;
    background: linear-gradient(-45deg, #2eaef8, #26a0e7, #2e7cd6, #0665d1);
    background-size: 400% 400%;
    animation: gradientAnimation 5s ease infinite;
    transition: background 0.3s, color 0.3s;
    margin: 0;
    padding: 0;
    color: #000;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 30px auto;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: background 0.3s, color 0.3s;
}

h1, h2 {
    text-align: center;
    color: #333;
}

form {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

input, select, button {
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    flex: 1;
    transition: background 0.3s, color 0.3s, border 0.3s;
}

button {
    background-color: #28a745;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}

.transacao {
    display: flex;
    justify-content: space-between;
    background: #fafafa;
    padding: 8px;
    margin-bottom: 8px;
    border-left: 5px solid #28a745;
}

.transacao.negativa {
    border-color: #dc3545;
}

.transacao button {
    background-color: #dc3545;
}

.transacao button:hover {
    background-color: #c82333;
}

.pizza-container {
    margin-top: 40px;
    text-align: center;
}

canvas#graficoPizza {
    width: 300px !important;
    height: 300px !important;
}

.grafico-centralizado {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

/* 🌙 Modo Noturno */
body.dark-mode {
    background: linear-gradient(-45deg, #4F2222, #501d1d, #813030, #6e3535);
    background-size: 400% 400%;
    animation: gradientAnimation 5s ease infinite;

    color: #e0e0e0;
}


body.dark-mode .container {
    background: #1e1e1e;
    color: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

body.dark-mode h1, 
body.dark-mode h2 {
    color: #fff;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode button {
    background-color: #2c2c2c;
    color: #fff;
    border: 1px solid #444;
}

body.dark-mode .transacao {
    background: #1c1c1c;
    border-left-color: #28a745;
}

body.dark-mode .transacao.negativa {
    border-left-color: #dc3545;
}

body.dark-mode .transacao button {
    background-color: #a12b2b;
}

body.dark-mode .transacao button:hover {
    background-color: #8e2222;
}

/* Cor do texto e placeholder nos inputs no modo escuro */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background-color: #2c2c2c;
    color: #fff;
    border: 1px solid #444;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #aaa; /* ou #ccc para mais claro */
}

/* Botão sair mais claro no modo escuro */
body.dark-mode .btn-dark {
    background-color: #444 !important;
    border-color: #666 !important;
    color: #fff !important;
}



a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer{
    display: table;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#chat-container {
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.mensagem-usuario {
    background: #007bff;
    color: white;
}

.mensagem-ia {
    background: #e9ecef;
    color: #333;
}

#chat-messages {
    display: flex;
    flex-direction: column;
}

.container_logincad {
    width: min(90%, 400px);
    margin: 30px auto;
    z-index: 10;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: background 0.3s, color 0.3s;
    backdrop-filter: blur(8px);
}

body.dark-mode .container_logincad {
    background: #1e1e1e;
    color: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.container_logincad input {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    background-color: #f0f0f0;
    font-size: 16px;
}

.container_logincad button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

body.dark-mode .container_logincad button {
    background-color: #eb2b2b;
    color: black;
}

.container_logincad button:hover {
    background-color: #0056b3;
}

body.dark-mode .container_logincad button:hover {
    background-color: #a30a0a;
}

.container_logincad a {
    color: #007bff;
    text-decoration: none;
}

.container_logincad a:hover {
    text-decoration: underline;
}

body.dark-mode .container_logincad a {
    color: #ff0000;
    text-decoration: none;
}

body.dark-mode .container_logincad a:hover {
    text-decoration: underline;
}

.container_logincad .error {
    color: red;
    margin-bottom: 10px;
}

.logo {
  position: absolute;
  top: 10%;
  left: 90%;
  transform: translate(-50%, -50%);
  max-width: 20%;
  max-height: 20%;
  pointer-events: none;
}


.container_logincad form {
  display: flex;
  flex-direction: column;
}

/* Container das bolinhas no fundo */
.bolas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1; /* Fica atrás de tudo */
}

/* Estilo das bolinhas */
.bola {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3; /* Meio transparente */
    animation: aparecerSumir 4s ease-in-out forwards;
}

/* Animação de aparecer e sumir */
@keyframes aparecerSumir {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    10% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
    90% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 0;
    }
}

