/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #e9ecef; /* Light gray background for modern feel */
}

.chat-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    max-width: 500px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Subtle shadow for depth */
    overflow: hidden;
}

.chat-display {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(135deg, #f7f8fa, #e9ecef); /* Smooth gradient background */
    color: #333; /* Darker text for better readability */
}

.chat-display p {
    margin: 10px 0;
    line-height: 1.5;
}

.chat-display p strong {
    font-weight: bold;
    color: #4CAF50; /* Green for bot responses */
}

.input-container {
    display: flex;
    align-items: center;
    border-top: 1px solid #ddd;
    padding: 10px;
    background-color: #fff;
}

#user-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
    transition: border-color 0.3s ease;
}

#user-input:focus {
    outline: none;
    border-color: #4CAF50; /* Green border on focus */
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-left: 10px;
}

button:hover {
    background-color: #45a049;
    transform: translateY(-2px); /* Lift button slightly */
}

button:active {
    background-color: #3e8e41;
    transform: translateY(0); /* Reset lift effect */
}

/* Scrollbar Styling */
.chat-display::-webkit-scrollbar {
    width: 8px;
}

.chat-display::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.chat-display::-webkit-scrollbar-thumb:hover {
    background-color: #bbb;
}

/* Smooth scrolling */
.chat-display {
    scroll-behavior: smooth;
}

.chat-header {
    text-align: center;
    padding: 15px 20px;
    background-color: #4CAF50;
    color: white;
    border-bottom: 1px solid #ddd;
}

.chat-header h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.chat-header p {
    font-size: 14px;
    margin: 0;
    font-style: italic;
    opacity: 0.9; /* Slightly lighter for contrast */
}
