body {
    margin: 0;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #f8f9fa;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
}

.main-content {
    display: flex;
    flex-grow: 1;
    padding: 20px;
    justify-content: center; /* Centraliza horizontalmente */
    align-items: flex-start; /* Alinha no topo */
    gap: 20px; /* Espaço entre o chat e a sidebar */
}

.chat-container {
    max-width: 600px; /* Mantém a largura máxima */
    border: 1px solid #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 600px;
    flex: 1; /* Permite que o chat cresça e ocupe o espaço disponível */
}

.chat-messages {
    padding: 10px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 5px;
    max-width: 70%;
    word-wrap: break-word;
}

.user-message {
    background-color: #dcf8c6;
    align-self: flex-end;
}

.gemini-message {
    background-color: #f1f1f1;
    align-self: flex-start;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ccc;
    align-items: center;
}

.chat-input input[type="text"] {
    flex-grow: 1;
    padding: 8px;
    margin-right: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.chat-input button {
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.chat-input input[type="file"]{
    display: none;
}
.media-buttons{
  display: flex;
  align-items: center;
  gap: 5px;
}
.media-button {
    padding: 5px;
    cursor: pointer;
}
.sidebar {
    width: 250px;
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 1px solid #ccc;
    display: flex;
    flex-direction: column; /* Para garantir que o QR code e o texto fiquem um abaixo do outro */
    align-items: center; /* Centraliza os itens horizontalmente dentro da sidebar */
}


#qrcode {
    margin-top: 10px;
}

footer {
    background-color: #343a40;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    margin-top: auto; /* Para fixar no final da página */
}

footer h3 {
    margin-bottom: 10px;
}