/* General Layout */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7fc;
    color: #333;
}

nav {
    background-color: #2d3a4b;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-size: 16px;
    text-transform: uppercase;
}

#user-info {
    display: none;
    color: white;
}

/* Chatbot Container */
#chatbot-container {
    width: 100%;
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#chatbot-body {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 6px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

/* User & Bot Messages */
.user-message, .bot-message {
    margin: 10px;
    padding: 10px;
    border-radius: 6px;
    max-width: 80%;
}

.user-message {
    background-color: #d0e7ff;
    margin-left: auto;
    text-align: right;
}

.bot-message {
    background-color: #e5e5e5;
    margin-right: auto;
}

/* Input Field */
input[type="text"] {
    width: 85%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
}

#send-btn {
    padding: 10px 15px;
    margin-left: 5px;
    background-color: #2d3a4b;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
}

#send-btn:hover {
    background-color: #7ec8d2;
}

/* Typing Animation */
.typing {
    display: flex;
    justify-content: left;
    align-items: center;
    margin: 10px;
}

.typing span {
    width: 8px;
    height: 8px;
    margin: 0 3px;
    background-color: #999;
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.5s infinite;
}

.typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.3; transform: scale(1); }
}
