/* Reset some default browser styles for consistency */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* Container styling */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Header styling */
.container h1 {
    margin-bottom: 30px;
    font-size: 2em;
    color: #007bff;
}

/* Input group styling */
.input-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 20px;
}

/* Dropdown styling */
#faqDropdown {
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
    width: 100%;
    outline: none;
    transition: border-color 0.3s;
}

#faqDropdown:focus {
    border-color: #007bff;
}

/* Textarea styling */
#aiResponseOutput {
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-height: 150px;
    resize: vertical;
    margin-bottom: 15px;
    width: 100%;
    outline: none;
    transition: border-color 0.3s;
}

#aiResponseOutput:focus {
    border-color: #007bff;
}

/* Submit button styling */
#submitButton {
    padding: 12px;
    font-size: 1em;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

#submitButton:hover {
    background-color: #0056b3;
}

/* Error message styling */
#errorMessage {
    color: #ff0000;
    margin-bottom: 15px;
    display: none;
}

/* Show error message when needed */
#errorMessage.visible {
    display: block;
}

/* Response box styling */
.response-box {
    margin-top: 30px;
    text-align: left;
}

.response-box h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #007bff;
}

.response-content {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Individual response styling */
.response-item {
    background-color: #f9f9f9;
    border-left: 4px solid #007bff;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.response-item h3 {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.response-item p {
    font-size: 0.95em;
    color: #555;
}

/* Scrollbar styling for response content */
.response-content::-webkit-scrollbar {
    width: 8px;
}

.response-content::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.response-content::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

/* Media queries for responsiveness */
@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 15px;
    }

    #submitButton {
        font-size: 0.9em;
    }

    .response-box h2 {
        font-size: 1.3em;
    }
}
