/* General styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f4f9;
    color: #333;
}

/* Chat container styling */
.chat-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Chat box styling */
#chat-box {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #ccc;
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

/* User and bot message styling */
.user-message {
    background: #d1e7ff;
    padding: 10px;
    margin: 10px;
    border-radius: 10px;
    border: 1px solid #b0d4f1;
    align-self: flex-end;
    max-width: 75%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: right;
}

.bot-message {
    background: #eef0f2;
    padding: 10px;
    margin: 10px;
    border-radius: 10px;
    border: 1px solid #c8cdd1;
    align-self: flex-start;
    max-width: 75%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* Navigation styling */
nav {
    background: #007bff;
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

nav a:hover {
    color: #f0a500;
}



/* Form styling */
#chat-form {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Input field styling */
#user-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

#user-input:focus {
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.1);
    outline: none;
}

/* Button styling */
button[type="submit"] {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: #007bff;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

button[type="submit"]:hover {
    background: #0056b3;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

button[type="submit"]:focus {
    outline: none;
}
