/* Basic styles for fonts and body */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #e5d8f0; /* Light purple background */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    height: 100vh; /* Full viewport height */
}

.container {
    flex: 1; /* Allow the container to grow and fill available space */
    max-width: 800px;
    margin: auto; /* Center the container */
    background: linear-gradient(145deg, #e8d1f0, #d5b8e2); /* Gradient for 3D effect */
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(148, 87, 188, 0.5); /* Soft purple shadow */
    padding: 40px;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    color: #8e24aa; /* Vibrant purple */
    font-weight: 700;
    letter-spacing: 2px;
}

header p {
    font-size: 18px;
    color: #6a1b9a; /* Darker purple */
    margin-top: 10px;
}

main {
    flex: 1; /* Allow main to grow and take available space */
    overflow: hidden; /* Prevent overflow */
}

.chat-box {
    margin-bottom: 20px; /* Add space between the chat box and responses */
}

label {
    font-size: 20px;
    font-weight: 600;
    color: #5e35b1; /* Purple color for labels */
    display: block;
    margin-bottom: 15px;
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #8e24aa; /* Border color matching the theme */
    font-size: 18px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

input[type="text"]:focus {
    border-color: #ba68c8; /* Lighter purple on focus */
    background-color: #f3e5f5; /* Light purple background on focus */
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background-color: #8e24aa; /* Vibrant purple button */
    color: white;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #7b1fa2; /* Darker purple on hover */
}

button:disabled {
    background-color: #9e7bcd; /* Disabled state for buttons */
    cursor: not-allowed;
}

.response-box {
    margin-top: 20px;
    max-height: 300px; /* Set a max height for the response box */
    overflow-y: auto; /* Enable vertical scrolling */
}

.qa-pair {
    margin-top: 20px;
    padding: 15px;
    border: 2px solid #e8d1f0; /* Light purple border */
    border-radius: 12px;
    background-color: #ffffff; /* White background for responses */
    box-shadow: 0 5px 15px rgba(148, 87, 188, 0.2); /* Light purple shadow */
}

footer {
    margin-top: 20px;
    text-align: center;
    color: #6a1b9a; /* Darker purple */
    font-size: 14px;
}

footer span {
    font-weight: 600;
    color: #8e24aa; /* Vibrant purple for footer emphasis */
}

/* Responsive layout for smaller screens */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 32px;
    }

    button {
        font-size: 18px;
    }
}
