/* styles.css */

/* Reset default margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set html and body to occupy full viewport height */
html, body {
    height: 100vh;
    font-family: Arial, sans-serif;
}

h1 {
    margin-bottom: 10px;
}

/* Container to hold all elements */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 800px;
    margin: 0 auto; /* Center the container */
    padding: 15px;
    background-color: #f0f2f5;
}

/* Chat box styling */
.chat-box {
    flex: 1;
    border: 1px solid #ccc;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 5px;
    overflow-y: auto;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

/* Message styling */
.message {
    margin-bottom: 10px;
    width:80%;
}
.message.agent {
    align-self: flex-end;
}

span.label {
    font-style: italic;
    color: #333;
    display: block;
    font-size: 14px;
    padding-bottom: 5px;
}

span.user {
}

span.agent {
}

span.error {
    color: red;
    margin-top: 10px;
}

span.system {
    color: #28a745; /* Green color for system messages */
    font-style: italic;
}

/* Input area styling */
.input-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px; /* Adjust spacing between elements as needed */
}

/* Buttons container */
.buttons {
    display: flex;
    gap: 10px;
    height: 100%;
    font-size: 16px;
    cursor: pointer;
    align-items: center;
}

/* Reset button styling */
#resetButton {
    padding: 10px 10px;
    background-color: #dc3545; /* Bootstrap danger color */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#resetButton:hover {
    background-color: #c82333;
}

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

/* Textarea styling */
#messageInput {
    flex: 1; /* Allows the textarea to expand and fill available space */
    padding: 10px;
    resize: none;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    height: 60px;
}

/* Send button styling */
#sendButton {
    padding: 10px 40px;
    background-color: #007bff; /* Bootstrap primary color */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#sendButton:hover {
    background-color: #0056b3;
}

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

/* Ensure the chat box and input area fit within the container without scrolling the page */
.chat-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.chat-box {
    flex: 1;
    overflow-y: auto;
}

.input-area {
    flex-shrink: 0;
}

/* Add these styles to your existing styles.css */

.record-box {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px 0;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.record-box p {
    margin: 5px 0;
}

.message.system .record-box {
    background-color: #e6f7ff; /* Light blue background for system messages */
}
