/* Chat Container Styles */
body {
    background-color: #121212;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chat-container {
    margin: 50px auto;
    max-width: 1200px;
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 85vh;
}

.chat-header {
    background-color: #2c2c2c;
    color: #ffffff;
    padding: 20px;
    text-align: center;
    font-size: 2.5rem;
    border-bottom: 1px solid #444;
}

.chatbot {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a192f 100%);
    color: black;
    font-size: 15px;
    z-index: -999;
}

.chat-container h1 {
    color: #fff;
    padding: 20px;
    text-align: center;
    margin: 0;
    font-size: 3.5rem;
}

/* Chatbox Styles */
#chatbox {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #1e1e1e;
}

#messages {
    display: flex;
    flex-direction: column;
}

/* Message Styles */
.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    max-width: 70%;
    position: relative;
}

.message.user {
    align-self: flex-end;
    background-color: #24dfad;
    color: #ffffff;
}

.message.bot {
    align-self: flex-start;
    background-color: #3a3a3a;
    color: #ffffff;
}

/* Input Styles */
input[type="text"] {
    width: calc(100% - 40px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin: 20px;
    font-size: 18px;
}

input[type="text"]:focus {
    border-color: #24dfad;
    outline: none;
}

/* Button Styles */
button {
    margin-bottom: 10px;
    margin-left: 20px;
    background-color: #24dfad;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 15px;
}

button:hover {
    background-color: #20c69b;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav .nav {
        flex-direction: column;
        gap: 10px;
    }

    .chat-container {
        width: 90%;
    }
}

.chat-input {
    display: flex;
    padding: 20px;
    border-top: 1px solid #444;
    background-color: #2c2c2c;
}

.chat-input input {
    flex: 1;
    padding: 15px;
    border: 1px solid #444;
    border-radius: 5px;
    margin-right: 10px;
    background-color: #1e1e1e;
    color: #ffffff;
    font-size: 1.2rem;
    height: 50px; /* Ensure consistent height */
}

.chat-input button {
    background-color: #24dfad;
    color: #ffffff;
    border: none;
    padding: 0 20px; /* Adjust padding to match input height */
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.2rem;
    margin-top: 20px;
    height: 50px; /* Match the height of the input box */
}

.chat-input button:hover {
    background-color: #12b3d7;
}