/* Chat container styling */
#chat-container {
    flex-grow: 1; /* Allows the chat container to grow and fill available space */
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 20px; /* Padding on all sides (top, left, right, bottom) */
    border-radius: 40px; /* Rounded corners */
    background-color: white; /* Default light mode */
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    margin: 10px; /* Space around the chat container */
}

/* Body and main layout for full viewport height */
html, body {
    height: 100%; /* Ensure body takes up the full height of the window */
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* The container wrapping the chat and input field */
.chat-layout {
    display: flex;
    flex-direction: column;
    height: 90vh; /* Height based on the viewport size */
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box; /* Ensure padding is included in the layout */
}

/* Chat bubbles styling */
.chat-bubble {
    font-family: "Source Sans Pro", sans-serif, "Segoe UI", "Roboto", sans-serif;
    border: 1px solid transparent;
    padding: 10px 15px;
    margin: 5px 10px;
    max-width: 70%;
    word-wrap: break-word;  /* Ensure long words don't overflow */
}

.ai-bubble {
    background: linear-gradient(135deg, rgb(0, 0, 0) 0%, rgb(61, 0, 141) 100%);
    border-radius: 10px;
    color: white;
}

.human-bubble {
    background: linear-gradient(135deg, rgb(0, 178, 255) 0%, rgb(0, 106, 255) 100%);
    color: white;
    border-radius: 20px;
}

.chat-row {
    display: flex;
    align-items: flex-start;
    margin: 10px 0;
}

.row-reverse {
    flex-direction: row-reverse;
}

.chat-icon {
    width: 74px;
    height: 74px;
    border-radius: 5px;
    transition: transform 0.3s ease;
    margin: 0 10px;
    flex-shrink: 0; /* Prevents the icon from shrinking */
}

.icon-container {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    margin: 0 10px;
}

/* Form input container at the bottom with fixed position */
.form-input-container {
    padding: 10px; /* Padding inside the form input container */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f1f1f1;
    border-radius: 30px; /* Rounded corners for input form */
    margin: 10px;
    box-sizing: border-box;
}

/* Input field inside the form input container */
#user-input {
    width: 85%; /* Reduced width so it fits inside the form container */
    padding: 10px;
    border-radius: 20px;
    background-color: #f1f1f1; /* Same color as form container */
    border: none;
    outline: none;
    font-size: 16px;
    box-sizing: border-box;
}

/* Dark mode for input field */
.dark-mode #user-input {
    background-color: #444444;
    color: white;
}

/* Send button inside form input container */
.form-input-container button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin: 0 5px;
}

.form-input-container button img {
    width: 32px;
    height: 32px;
}

.form-input-container button:hover {
    opacity: 0.8;
}

/* Hamburger menu styling */
.hamburger {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
}

.menu-content {
    display: none; /* Hidden by default */
    position: absolute;
    top: 40px;
    right: 10px;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 10px;
}

/* Dark mode styles */
.dark-mode #chat-container {
    background-color: #1c1c1e; /* Dark background for chat container */
    color: white;
}

.dark-mode {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode form input container */
.dark-mode .form-input-container {
    background-color: #333333;
}

/* Optional transition for dark mode toggle */


/* Spinner animation */
.spinner {
    animation: spin 1.5s linear infinite; /* Continuous rotation */
}

/* Define the spin animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Style for bot icon */
.bot-image {
    display: block;
    width: 64px;
    height: 64px;
}

/* User icon styles */
.user-icon {
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 50%;  /* Makes the icon circular */
}

.user-icon:hover {
    transform: scale(1.1);
}

.chat-row.row-reverse .user-icon {
    width: 64px;
    height: 64px;
}

/* Centered and beautiful font for the heading */
#botler-heading {
    font-family: 'Poppins', sans-serif;  /* Example of a clean and cool font */
    font-size: 2em;  /* Adjust size as needed */
    text-align: center;  /* Center the heading */
    margin-top: 20px;  /* Spacing from the top */
    color: #4A90E2;  /* Soft blue color */
    text-transform: uppercase;  /* Make text uppercase */
    letter-spacing: 2px;  /* Add some spacing between letters */
}

a, a:visited {
    color: white;
    text-decoration: none; /* Optional: remove underline */
}

a:hover {
    text-decoration: underline; /* Optional: add underline on hover */
}







