/* Estilos Gerais */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #e0f2f7; /* Cor de fundo azul claro */
    margin: 0;
    padding: 20px;
}

.container {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
}

/* Cabeçalho */
header {
    text-align: center;
    margin-bottom: 25px;
}

/* Estilo para a imagem do logo */
.logo {
    max-width: 200px; /* Ajuste conforme necessário */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Controles */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: space-between;
}

.controls > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.controls label {
    font-weight: bold;
    color: #555;
}

#model-select,
#temperature-slider {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
}

#temperature-slider {
    width: 180px;
}

#temperature-value {
  font-size: 1em;
  color: #555;
}

/* Área de Chat */
.chat-area {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.messages {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    background-color: #fafafa;
}

.message {
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 4px;
    word-wrap: break-word; /* Quebra palavras longas */
    white-space: pre-wrap;       /* Preserva quebras de linha */
}

.user {
    color: #007bff;
    text-align: right;
    background-color: #e6f7ff;
    border: 1px solid #b3e0ff;
    margin-left: 20%;
}

.gemini {
    color: #28a745;
    text-align: left;
     background-color: #e8f5e9;
     border: 1px solid #c8e6c9;
     margin-right: 20%;
}

.input-area {
    display: flex;
    gap: 10px;
}

textarea {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical;
    font-size: 1em;
}

button {
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.loading {
    margin-top: 8px;
    font-style: italic;
    color: #888;
}

#token-info {
    margin-top: 15px;
    font-size: 0.9em;
    color: #777;
    text-align: center;
}
/* Botões de Download */
.download-buttons {
    display: flex;
    gap: 10px;        /* Espaço entre os botões */
    margin-top: 15px;   /* Espaço acima dos botões */
    justify-content: center; /* Centraliza horizontalmente */
}

.download-buttons button {
    padding: 10px 15px;
    background-color: #007bff; /* Azul */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
}

.download-buttons button:hover {
    background-color: #0056b3; /* Azul mais escuro no hover */
}
/* Footer */
footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    color: #6c757d;
    font-size: 0.9em;
}