/*
Theme Name: Twenty Twenty-Five ChatBot Child
Theme URI: https://example.com
Author: Jeff
Author URI: https://example.com
Description: A child theme for customizing the chatbot page based on Twenty Twenty-Five theme.
Template: twentytwentyfive
Version: 1.0
*/

/* Import parent theme styles */
@import url("../twentytwentyfive/style.css");

/* General Styling */
body.chatbot-page {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
}

/* Chat Wrapper */
#chat-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: #f4f4f9;
}

/* Chat Container */
#chat-container {
    max-width: 600px;
    width: 100%;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Chat Header */
#chat-header {
    display: flex;
    align-items: center;
    background-color: #D2B48C; /* Light brown */
    color: white;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.chat-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    margin-right: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.chat-header-text h2 {
    margin: 0;
    font-size: 1.5em;
}

.chat-header-text p {
    margin: 5px 0 0;
    font-size: 0.9em;
    color: #ffffff;
}

/* Chat Window */
#chat-window {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f9f9f9;
    max-height: 600px;
}

#chat-window::-webkit-scrollbar {
    width: 8px;
}

#chat-window::-webkit-scrollbar-thumb {
    background-color: #D2B48C; /* Light brown */
    border-radius: 4px;
}

#chat-window::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

/* Chat Messages */
.chat-message {
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
}

/* User Messages */
.chat-message.user {
    background-color: #f5e4d7; /* Light beige */
    align-self: flex-end;
    text-align: right;
    color: #333; /* Dark text for readability */
}

/* AIvy Messages */
.chat-message.aivy {
    background-color: #f7d9cc; /* Lighter brown */
    align-self: flex-start;
    text-align: left;
    color: #333; /* Dark text for readability */
}

/* Thinking Indicator */
.thinking-indicator {
    display: none;
    padding: 10px;
    text-align: center;
    font-style: italic;
    color: #D2B48C; /* Light brown */
}

/* Input Container */
#input-container {
    display: flex;
    padding: 10px;
    background-color: #f1f1f1;
    border-top: 1px solid #ddd;
}

#user-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: none;
    font-size: 0.9em;
}

#send-button {
    padding: 10px 20px;
    margin-left: 10px;
    background-color: #D2B48C; /* Light brown */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

#send-button:hover {
    background-color: #b2906c;
}

/* Style for the Send Chat History button */
#send-history-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 15px auto;
    background-color: #D2B48C; /* Match light brown theme */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hover effect for the button */
#send-history-button:hover {
    background-color: #b2906c; /* Slightly darker brown for hover */
    transform: translateY(-2px); /* Subtle lift effect */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Add focus styling for accessibility */
#send-history-button:focus {
    outline: 2px solid #f1e6d8; /* Light beige outline */
    outline-offset: 4px;
}
