body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.chat-container {
    width: 60%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chat-header {
    background-color: #007bff;
    color: #fff;
    padding: 10px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    align-items: center;
}

.chat-header img {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.chat-body {
    padding: 20px;
    height: 200px;
    overflow-y: auto;
}

.chat-message {
    margin: 10px 0;
}

.question {
    color: #007bff;
}

.answer {
    color: #333;
}

/* Adiciona uma media query para telas até 768px de largura */
@media (max-width: 768px) {
    body {
        padding: 10px; /* Reduz o padding para economizar espaço */
    }

    .chat-container {
        width: 100%; /* Faz a caixa ocupar 100% da largura */
        border-radius: 0; /* Remove o border-radius para um visual mais integrado */
    }
}

/* Chat Header Styles */
.chat-header {
    background-color: #007bff;         /* Blue background in light mode */
    color: #fff;                       /* White text in light mode */
    padding: 10px;
    border-radius: 8px;                /* Rounded corners at the top */
    display: flex;
    align-items: center;
    justify-content: space-between;    /* Logo on the left, dark mode toggle on the right */
}

/* Dark Mode Toggle Button Styles */
#darkModeToggle {
    background: none;                  /* Transparent background */
    border: none;                      /* No border */
    cursor: pointer;                   /* Pointer cursor on hover */
}

#darkModeToggle img {
    width: 24px;                       /* Set width of the toggle icon */
    height: auto;                      /* Maintain aspect ratio */
}

/* Dark Mode Specific Styles */
body.dark-mode {
    background-color: #333;            /* Dark background for the whole page */
    color: #ccc;                       /* Light text for the whole page */
}

body.dark-mode .chat-container {
    background-color: #444;            /* Darker background for chat container */
}

body.dark-mode .chat-header {
    background-color: #666;            /* Even darker background for the header */
}

body.dark-mode .question {
    color: #add8e6;                    /* Light blue for questions in dark mode */
}

body.dark-mode .answer {
    color: #f8f8f8;                    /* Off-white for answers in dark mode */
}
