491 lines
7.8 KiB
CSS
491 lines
7.8 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
background: white;
|
|
border-radius: 20px;
|
|
padding: 30px;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.header {
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
h1 {
|
|
color: #1e3c72;
|
|
margin-bottom: 10px;
|
|
font-size: 32px;
|
|
}
|
|
|
|
.subtitle {
|
|
color: #666;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.main-content {
|
|
display: grid;
|
|
grid-template-columns: 380px 1fr;
|
|
gap: 25px;
|
|
}
|
|
|
|
.left-panel,
|
|
.right-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.panel-section {
|
|
background: #f8f9fa;
|
|
border-radius: 15px;
|
|
padding: 25px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.panel-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.panel-header h2 {
|
|
font-size: 20px;
|
|
color: #1e3c72;
|
|
margin: 0;
|
|
}
|
|
|
|
.doc-count {
|
|
background: #1e3c72;
|
|
color: white;
|
|
padding: 5px 12px;
|
|
border-radius: 20px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.upload-area {
|
|
border: 3px dashed #cbd5e0;
|
|
border-radius: 15px;
|
|
padding: 50px 30px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
background: white;
|
|
}
|
|
|
|
.upload-area:hover {
|
|
border-color: #1e3c72;
|
|
background: #e8f0fe;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(30, 60, 114, 0.15);
|
|
}
|
|
|
|
.upload-icon {
|
|
font-size: 56px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.upload-text {
|
|
color: #333;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.upload-hint {
|
|
font-size: 13px;
|
|
color: #666;
|
|
}
|
|
|
|
.document-list {
|
|
max-height: 450px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.document-item {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 18px;
|
|
margin-bottom: 12px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.document-item:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.document-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.document-name {
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin-bottom: 8px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.document-status {
|
|
font-size: 13px;
|
|
color: #666;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.document-status.processing {
|
|
color: #f59e0b;
|
|
}
|
|
|
|
.document-status.completed {
|
|
color: #10b981;
|
|
}
|
|
|
|
.delete-btn {
|
|
background: #ef4444;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 8px;
|
|
padding: 8px 16px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.delete-btn:hover {
|
|
background: #dc2626;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
color: #999;
|
|
padding: 60px 30px;
|
|
}
|
|
|
|
.empty-icon {
|
|
font-size: 64px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.empty-state p {
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.empty-hint {
|
|
font-size: 13px;
|
|
color: #bbb;
|
|
}
|
|
|
|
.chat-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 650px;
|
|
}
|
|
|
|
.chat-messages {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 25px;
|
|
background: white;
|
|
border-radius: 15px;
|
|
margin-bottom: 20px;
|
|
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.message {
|
|
margin-bottom: 25px;
|
|
animation: fadeIn 0.3s ease-in;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.message.user {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.message.bot {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.message-content {
|
|
max-width: 80%;
|
|
padding: 18px;
|
|
border-radius: 15px;
|
|
line-height: 1.7;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.message.user .message-content {
|
|
background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
|
|
color: white;
|
|
box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
|
|
}
|
|
|
|
.message.bot .message-content {
|
|
background: #f0f0f0;
|
|
color: #333;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.sources {
|
|
margin-top: 15px;
|
|
padding-top: 15px;
|
|
border-top: 2px solid #e0e0e0;
|
|
}
|
|
|
|
.sources-title {
|
|
font-size: 13px;
|
|
color: #666;
|
|
margin-bottom: 8px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.source-item {
|
|
font-size: 13px;
|
|
color: #1e3c72;
|
|
margin-bottom: 5px;
|
|
padding: 5px 10px;
|
|
background: #e8f0fe;
|
|
border-radius: 6px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.chat-input {
|
|
display: flex;
|
|
gap: 15px;
|
|
}
|
|
|
|
.input-wrapper {
|
|
flex: 1;
|
|
position: relative;
|
|
}
|
|
|
|
.chat-input textarea {
|
|
width: 100%;
|
|
padding: 18px;
|
|
padding-right: 100px;
|
|
border: 2px solid #e0e0e0;
|
|
border-radius: 15px;
|
|
resize: none;
|
|
font-size: 15px;
|
|
font-family: inherit;
|
|
min-height: 80px;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.chat-input textarea:focus {
|
|
outline: none;
|
|
border-color: #1e3c72;
|
|
box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
|
|
}
|
|
|
|
.char-count {
|
|
position: absolute;
|
|
bottom: 10px;
|
|
right: 15px;
|
|
font-size: 12px;
|
|
color: #999;
|
|
background: white;
|
|
padding: 3px 8px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.send-btn {
|
|
padding: 18px 35px;
|
|
background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 15px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
transition: all 0.3s;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
|
|
}
|
|
|
|
.send-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 16px rgba(30, 60, 114, 0.4);
|
|
}
|
|
|
|
.send-btn:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.send-btn:disabled {
|
|
background: #ccc;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.btn-icon {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.clear-btn {
|
|
background: #f59e0b;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 8px;
|
|
padding: 8px 16px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.clear-btn:hover {
|
|
background: #d97706;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.toast {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
padding: 15px 25px;
|
|
background: #333;
|
|
color: white;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
transform: translateX(400px);
|
|
transition: transform 0.3s ease-out;
|
|
z-index: 1000;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.toast.show {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.toast.success {
|
|
background: #10b981;
|
|
}
|
|
|
|
.toast.error {
|
|
background: #ef4444;
|
|
}
|
|
|
|
.toast.info {
|
|
background: #3b82f6;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.main-content {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.chat-container {
|
|
height: 550px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 28px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
body {
|
|
padding: 10px;
|
|
}
|
|
|
|
.container {
|
|
padding: 20px;
|
|
border-radius: 15px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.subtitle {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.panel-section {
|
|
padding: 20px;
|
|
}
|
|
|
|
.chat-container {
|
|
height: 500px;
|
|
}
|
|
|
|
.chat-input {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.send-btn {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.upload-area {
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
.upload-icon {
|
|
font-size: 48px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.container {
|
|
padding: 15px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.panel-section {
|
|
padding: 15px;
|
|
}
|
|
|
|
.message-content {
|
|
max-width: 90%;
|
|
font-size: 14px;
|
|
padding: 15px;
|
|
}
|
|
|
|
.chat-messages {
|
|
padding: 15px;
|
|
}
|
|
}
|