.inter-uniquifier {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
}

body {
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    width: 100%;
    max-width: 800px;
    margin-top: 10px;
}

h1 {
    font-size: 2rem;
    text-transform: uppercase;
    color: #2c3e50;
    text-align: center;
}

.subtitle {
    text-align: center;
    font-size: 1.5rem;
    color: #7f8c8d;
}

.upload-section, .chat-section {
    margin-bottom: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

h2 {
    color: #34495e;
    margin-bottom: 20px;
    text-align: center;
}

#uploadForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

input[type="file"] {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    width: 80%;
    max-width: 400px;
}

button {
    background-color: #26587a;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover:not(:disabled) {
    background-color: #2980b9;
}

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

.status-message {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

.status-message.success {
    color: #27ae60;
}

.status-message.error {
    color: #e74c3c;
}

.chat-history {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    background-color: #ecf0f1;
}

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

.message p {
    margin: 0;
    line-height: 1.5;
}

.message.user {
    background-color: #eaf6ff;
    align-self: flex-end;
    margin-left: auto;
    border: 1px solid #d4e7f7;
}

.message.assistant {
    background-color: #dff0d8;
    align-self: flex-start;
    margin-right: auto;
    border: 1px solid #c9e2b8;
}

.message .source-info {
    font-size: 0.85em;
    color: #555;
    margin-top: 8px;
    border-top: 1px dashed #ccc;
    padding-top: 5px;
}

.message .source-info strong {
    color: #333;
}

#chatForm {
    display: flex;
    gap: 10px;
}

#chatInput {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#chatInput:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
}