@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    color: #1f2937;
    margin: 0;
    overflow-x: hidden; /* Added to prevent horizontal scrolling */
}

/* Chatbot Icon Styling */
#chatbot-icon {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 4rem;
    height: 4rem;
    background-color: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}
#chatbot-icon:hover {
    transform: scale(1.1);
    background-color: #059669;
}

/* Chatbot Window Styling */
#chatbot-window {
    position: fixed;
    bottom: 7rem;
    right: 1.5rem;
    width: 90vw;
    max-width: 400px;
    height: 70vh;
    max-height: 500px;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
#chatbot-window[hidden] {
    display: none;
}
@media (min-width: 768px) {
    #chatbot-window {
        width: 400px;
    }
}
.chatbot-header {
    background-color: #10b981;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}
.chatbot-header h3 {
    font-weight: 700;
}
#close-chatbot {
    cursor: pointer;
    font-size: 1.25rem;
}
#chatbot-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background-color: #f9fafb;
}
.message {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    word-wrap: break-word;
}
.user {
    background-color: #2563eb;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem;
}
.bot {
    background-color: #e5e7eb;
    color: #1f2937;
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
}
.typing {
    font-style: italic;
    opacity: 0.7;
}
.chatbot-input-container {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.5rem;
}
#chatbot-input {
    flex-grow: 1;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    outline: none;
    transition: border-color 0.2s;
}
#chatbot-input:focus {
    border-color: #10b981;
}
#chatbot-form button {
    background-color: #10b981;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}