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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    color: #1f2937;
    height: 100vh;
    display: flex;
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Sidebar */
.sidebar {
    width: 320px;
    background-color: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 600;
}

.upload-section {
    padding: 24px;
}

.upload-section h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #334155;
}

.upload-section p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 16px;
}

.file-input-wrapper {
    margin-bottom: 16px;
}

input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #2563eb;
}

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

.status-message {
    margin-top: 12px;
    font-size: 0.875rem;
    padding: 8px;
    border-radius: 6px;
}

.status-message.success {
    background-color: #dcfce7;
    color: #166534;
}

.status-message.error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Main Chat Area */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.chat-header {
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
    background: white;
}

.chat-header h3 {
    font-size: 1.125rem;
    color: #0f172a;
}

.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fafafa;
}

.message {
    display: flex;
    max-width: 80%;
}

.message.user {
    align-self: flex-end;
}

.message.bot {
    align-self: flex-start;
}

.message-content {
    padding: 16px;
    border-radius: 12px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.message.user .message-content {
    background-color: #3b82f6;
    color: white;
    border-bottom-right-radius: 4px;
}

.message.bot .message-content {
    background-color: white;
    color: #1f2937;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.message-content.loading {
    color: #64748b;
    font-style: italic;
}

.chat-input-container {
    padding: 24px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

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

#questionInput {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

#questionInput:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#sendBtn {
    width: auto;
    padding: 0 32px;
}
