/* resources/js/components/ChatbotApp.css */
.chatbot-container {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fcfcfc;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.app-description {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95em;
}

.section {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

h2 {
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

textarea,
input[type="text"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease-in-out;
}

button:hover:not(:disabled) {
    background-color: #0056b3;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.success-message {
    color: green;
    margin-top: 10px;
    font-weight: bold;
}

.error-message {
    color: red;
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}

.chat-history {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    min-height: 250px;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fafafa;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 85%;
    word-wrap: break-word;
}

.chat-message.user {
    background-color: #e6f7ff;
    align-self: flex-end;
    margin-left: auto;
    text-align: right;
}

.chat-message.bot {
    background-color: #f0f0f0;
    align-self: flex-start;
    text-align: left;
}

.chat-message strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.chat-history .placeholder-message {
    text-align: center;
    color: #999;
    font-style: italic;
    margin-top: 100px; /* Center vertically */
}

.sources-container {
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px dashed #ccc;
}

.sources-label {
    font-size: 0.85em;
    color: #555;
    margin-bottom: 5px;
}

.sources-list {
    font-size: 0.8em;
    color: #777;
    list-style-type: disc;
    padding-left: 20px;
}
.reset-button {
    background-color: #dc3545; /* Red color for reset */
    margin-bottom: 20px;
    display: block; /* Make it take full width for better clickability */
    width: 100%;
}

.reset-button:hover:not(:disabled) {
    background-color: #c82333;
}
