|
#pdf-container { |
|
margin: 0 auto; |
|
max-width: 100%; |
|
overflow-x: auto; |
|
text-align: center; |
|
padding: 20px 0; |
|
} |
|
|
|
#pdf-canvas { |
|
margin: 0 auto; |
|
display: block; |
|
max-width: 100%; |
|
box-shadow: 0 0 5px rgba(0,0,0,0.2); |
|
} |
|
|
|
#pageNum { |
|
height: 40px; |
|
font-size: 16px; |
|
padding: 10px; |
|
width: 9vh; |
|
} |
|
|
|
.page-input { |
|
width: 60px; |
|
padding: 8px; |
|
padding-right: 40px; |
|
text-align: center; |
|
border: 1px solid #ddd; |
|
border-radius: 4px; |
|
-moz-appearance: textfield; |
|
} |
|
|
|
.page-input-label { |
|
position: absolute; |
|
right: 12px; |
|
top: 50%; |
|
transform: translateY(-50%); |
|
font-size: 12px; |
|
color: #666; |
|
pointer-events: none; |
|
background-color: #fff; |
|
padding-left: 4px; |
|
} |
|
|
|
.page-input-container { |
|
position: relative; |
|
display: inline-flex; |
|
align-items: center; |
|
} |
|
|
|
|
|
.page-input::-webkit-outer-spin-button, |
|
.page-input::-webkit-inner-spin-button { |
|
-webkit-appearance: none; |
|
margin: 0; |
|
} |
|
|
|
|
|
.pagination-container { |
|
margin: 20px 0; |
|
text-align: center; |
|
} |
|
|
|
.pagination { |
|
display: inline-flex; |
|
align-items: center; |
|
} |
|
|
|
.pagination-button { |
|
padding: 8px 16px; |
|
background: #4a6fa5; |
|
color: white; |
|
border: none; |
|
border-radius: 4px; |
|
cursor: pointer; |
|
display: flex; |
|
align-items: center; |
|
gap: 5px; |
|
} |
|
|
|
.pagination-button-text:hover { |
|
background-color: #e0e0e0; |
|
transform: translateY(-1px); |
|
} |
|
|
|
.pagination-button-text:active { |
|
transform: translateY(0); |
|
} |
|
|
|
.text-viewer { |
|
overflow-y: auto; |
|
height: 100%; |
|
width: 100%; |
|
font-family: monospace; |
|
white-space: pre-wrap; |
|
background: #f8f8f8; |
|
padding: 20px; |
|
border-radius: 5px; |
|
line-height: 1.5; |
|
} |
|
|
|
.citation { |
|
background-color: rgba(0, 255, 0, 0.2); |
|
padding: 2px 0; |
|
} |
|
|
|
.no-content { |
|
color: #999; |
|
font-style: italic; |
|
} |
|
|
|
.pagination-container-text { |
|
margin: 20px 0; |
|
text-align: center; |
|
} |
|
|
|
.pagination-button-text { |
|
padding: 8px 16px; |
|
background: #4a6fa5; |
|
color: white; |
|
border: none; |
|
border-radius: 4px; |
|
cursor: pointer; |
|
} |
|
|
|
|
|
|
|
|
|
|
|
body { |
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; |
|
background-color: #f7f7f8; |
|
color: #111827; |
|
margin: 0; |
|
overflow: hidden; |
|
height: 100vh; |
|
padding: 0; |
|
display: flex; |
|
} |
|
|
|
.sidebar { |
|
width: 260px; |
|
height: 100vh; |
|
background-color: #1F2937; |
|
|
|
overflow-y: auto; |
|
padding: 8px; |
|
position: sticky; |
|
top: 0; |
|
} |
|
|
|
.chat-page { |
|
background-color: #111827; |
|
flex: 1; |
|
display: flex; |
|
flex-direction: column; |
|
height: 100vh; |
|
overflow: hidden; |
|
} |
|
|
|
.container { |
|
flex: 1; |
|
display: flex; |
|
flex-direction: column; |
|
padding: 0; |
|
max-width: 100%; |
|
height: 100%; |
|
} |
|
|
|
|
|
.chat-messages { |
|
flex: 1; |
|
overflow-y: auto; |
|
padding: 16px; |
|
display: flex; |
|
flex-direction: column; |
|
gap: 16px; |
|
} |
|
|
|
|
|
.input-group { |
|
|
|
|
|
|
|
position: sticky; |
|
bottom: 0; |
|
} |
|
|
|
|
|
|
|
|
|
|
|
.chat-group { |
|
font-weight: 500; |
|
color: #9bb8d3; |
|
text-transform: uppercase; |
|
letter-spacing: 0.5px; |
|
font-size: 12px; |
|
padding: 8px 12px; |
|
} |
|
|
|
.btn { |
|
border-radius: 10px; |
|
padding: 8px 12px; |
|
font-size: 14px; |
|
transition: all 0.2s; |
|
} |
|
|
|
.btn-success { |
|
background-color: #19c37d; |
|
border-color: #19c37d; |
|
} |
|
|
|
.btn-success:hover { |
|
background-color: #16a369; |
|
border-color: #16a369; |
|
} |
|
|
|
.btn-outline-secondary { |
|
|
|
color: #374151; |
|
background-color: transparent; |
|
} |
|
|
|
.btn-outline-secondary:hover { |
|
background-color: #273c50; |
|
border-color: #e1e4e8; |
|
} |
|
|
|
.btn-outline-light { |
|
border-color: #e1e4e8; |
|
color: #666; |
|
background-color: transparent; |
|
} |
|
|
|
.btn-outline-light:hover { |
|
background-color: #e9ecef; |
|
border-color: #e1e4e8; |
|
} |
|
|
|
|
|
|
|
.message { |
|
max-width: 80%; |
|
padding: 12px 16px; |
|
border-radius: 12px; |
|
line-height: 1.5; |
|
} |
|
|
|
.user-message { |
|
align-self: flex-end; |
|
background-color: #19c37d; |
|
color: white; |
|
border-bottom-right-radius: 4px; |
|
} |
|
|
|
.assistant-message { |
|
align-self: flex-start; |
|
background-color: #f0f4f8; |
|
border-bottom-left-radius: 4px; |
|
} |
|
|
|
.message-header { |
|
font-weight: 600; |
|
font-size: 12px; |
|
margin-bottom: 4px; |
|
color: #666; |
|
} |
|
|
|
.user-message .message-header { |
|
color: rgba(255, 255, 255, 0.8); |
|
} |
|
|
|
.message-content { |
|
font-size: 14px; |
|
} |
|
|
|
|
|
.form-control { |
|
border-radius: 6px; |
|
padding: 10px 12px; |
|
background-color: #374151; |
|
|
|
} |
|
|
|
.form-control:focus { |
|
box-shadow: none; |
|
border-color: #19c37d; |
|
} |
|
|
|
|
|
.btn-outline-secondary { |
|
position: relative; |
|
} |
|
|
|
.btn-outline-secondary input[type="file"] { |
|
position: absolute; |
|
opacity: 0; |
|
width: 100%; |
|
height: 100%; |
|
top: 0; |
|
left: 0; |
|
cursor: pointer; |
|
} |
|
|
|
|
|
::-webkit-scrollbar { |
|
width: 8px; |
|
} |
|
|
|
::-webkit-scrollbar-track { |
|
background: #f1f1f1; |
|
} |
|
|
|
::-webkit-scrollbar-thumb { |
|
background: #ccc; |
|
border-radius: 4px; |
|
} |
|
|
|
::-webkit-scrollbar-thumb:hover { |
|
background: #aaa; |
|
} |
|
|
|
|
|
@media (max-width: 768px) { |
|
.sidebar { |
|
width: 220px; |
|
} |
|
|
|
.message { |
|
max-width: 90%; |
|
} |
|
} |
|
|
|
#queryInput { |
|
background-color: #374151; |
|
color: white; |
|
} |
|
|
|
#queryInput:focus { |
|
background-color: #374151; |
|
color: white; |
|
outline: none; |
|
box-shadow: none; |
|
border-color: #19c37d; |
|
} |
|
|
|
#searchButton { |
|
background-color: #374151; |
|
} |
|
|
|
#fileInput { |
|
background-color: #374151; |
|
} |
|
|
|
|
|
|
|
#queryInput::placeholder { |
|
color: rgba(255, 255, 255, 0.7); |
|
} |
|
|
|
.auth-card { |
|
background-color: #1F2937; |
|
border: none; |
|
border-radius: 12px; |
|
} |
|
|
|
.auth-input { |
|
background-color: #374151 !important; |
|
border: none !important; |
|
color: white !important; |
|
} |
|
|
|
.auth-input-group-text { |
|
background-color: #374151 !important; |
|
border: none !important; |
|
} |