/* Main layout - side by side containers within #viewer */
#viewer {
display: flex;
height: 100%;
width: 100%;
}
/* Side Panel Styles */
.viewer-wrapper {
display: flex;
height: 100vh;
width: 100%;
}
.side-panel {
width: 300px;
min-width: 250px;
max-width: 400px;
background-color: #f5f5f5;
border-right: 1px solid #ddd;
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
z-index: 1000;
display: flex;
flex-direction: column;
}
.side-panel.collapsed {
transform: translateX(-100%);
}
.side-panel-header {
background-color: #e9ecef;
padding: 15px 20px;
border-bottom: 1px solid #ddd;
flex-shrink: 0;
}
.side-panel-header h3 {
margin: 0;
font-size: 18px;
font-weight: 600;
color: #333;
}
.side-panel-content {
flex: 1;
padding: 20px;
overflow-y: auto;
}
.panel-section {
margin-bottom: 25px;
}
.panel-section h4 {
margin: 0 0 12px 0;
font-size: 14px;
font-weight: 600;
color: #555;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.panel-button {
display: block;
width: 100%;
padding: 10px 15px;
margin-bottom: 8px;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s ease;
font-size: 14px;
}
.panel-button:hover {
background-color: #007bff;
color: white;
border-color: #007bff;
}
.panel-button:active {
transform: translateY(1px);
}
/* Text Extraction UI Styles */
#page-info {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 15px;
flex-wrap: wrap;
}
.page-label {
font-size: 14px;
font-weight: 600;
color: #333;
white-space: nowrap;
}
.page-input {
width: 60px;
padding: 4px 8px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
text-align: center;
}
.page-input:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
.page-count-label {
font-size: 12px;
color: #666;
white-space: nowrap;
}
.text-section-label {
display: block;
font-size: 12px;
font-weight: 600;
color: #555;
margin-bottom: 5px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.text-display {
width: 100%;
height: 120px;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 12px;
font-family: 'Courier New', monospace;
line-height: 1.4;
resize: vertical;
background-color: #f9f9f9;
color: #333;
white-space: pre-wrap;
word-wrap: break-word;
overflow-y: auto;
overflow-x: hidden;
}
.text-display:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
.text-display::placeholder {
color: #999;
font-style: italic;
}
#page-text-all {
margin-bottom: 20px;
}
#page-text-annotations {
margin-bottom: 15px;
}
.setting-item {
margin-bottom: 15px;
}
.setting-item label {
display: flex;
align-items: center;
font-size: 14px;
color: #555;
cursor: pointer;
}
.setting-item input[type="checkbox"] {
margin-right: 10px;
}
.setting-item input[type="range"] {
margin-left: 10px;
flex: 1;
}
.viewer-with-panel {
flex: 1;
height: 100vh;
}
/* Dark mode styles */
@media (prefers-color-scheme: dark) {
.side-panel {
background-color: #2d3748;
border-right-color: #4a5568;
}
.side-panel-header {
background-color: #1a202c;
border-bottom-color: #4a5568;
}
.side-panel-header h3 {
color: #e2e8f0;
}
.panel-section h4 {
color: #a0aec0;
}
.panel-button {
background-color: #4a5568;
border-color: #718096;
color: #e2e8f0;
}
.panel-button:hover {
background-color: #007bff;
border-color: #007bff;
}
.setting-item label {
color: #a0aec0;
}
/* Text extraction dark mode styles */
.page-label {
color: #e2e8f0;
}
.page-input {
background-color: #4a5568;
border-color: #718096;
color: #e2e8f0;
}
.page-input:focus {
border-color: #007bff;
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.4);
}
.page-count-label {
color: #a0aec0;
}
.text-section-label {
color: #a0aec0;
}
.text-display {
background-color: #4a5568;
border-color: #718096;
color: #e2e8f0;
}
.text-display:focus {
border-color: #007bff;
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.4);
}
.text-display::placeholder {
color: #718096;
}
}
/* Responsive design */
@media (max-width: 768px) {
.side-panel {
position: absolute;
left: 0;
top: 0;
height: 100%;
z-index: 1001;
}
.viewer-wrapper {
position: relative;
}
.side-panel.collapsed {
transform: translateX(-100%);
}
}
/* Toggle button for mobile */
.side-panel-toggle {
position: fixed;
top: 20px;
left: 20px;
z-index: 1002;
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
padding: 10px;
cursor: pointer;
display: none;
}
@media (max-width: 768px) {
.side-panel-toggle {
display: block;
}
/* Text extraction responsive styles */
#page-info {
flex-direction: column;
align-items: flex-start;
gap: 5px;
}
.page-input {
width: 80px;
}
.text-display {
height: 100px;
font-size: 11px;
}
.page-count-label {
font-size: 11px;
}
}
/* Theme Switch Styles */
.theme-switch-container {
display: flex;
justify-content: center;
margin-top: 15px;
}
.theme-switch {
position: relative;
display: flex;
background-color: #e9ecef;
border-radius: 25px;
padding: 4px;
border: 2px solid #dee2e6;
width: 200px;
height: 50px;
overflow: hidden;
}
.theme-switch input[type="radio"] {
display: none;
}
.switch-option {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: pointer;
position: relative;
z-index: 2;
transition: color 0.3s ease;
padding: 5px;
}
.switch-option.left {
border-radius: 20px 0 0 20px;
}
.switch-option.right {
border-radius: 0 20px 20px 0;
}
.switch-icon {
font-size: 16px;
margin-bottom: 2px;
}
.switch-label {
font-size: 12px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.switch-slider {
position: absolute;
top: 4px;
left: 4px;
width: calc(50% - 4px);
height: calc(100% - 8px);
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 20px;
transition: transform 0.3s ease, background 0.3s ease;
z-index: 1;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
/* Dark mode selected */
#dark-mode:checked ~ .switch-slider {
transform: translateX(0);
background: linear-gradient(135deg, #2c3e50 0%, #5a5c5e 100%);
}
/* Light mode selected */
#light-mode:checked ~ .switch-slider {
transform: translateX(100%);
background: linear-gradient(135deg, #e4ce85 0%, #e9ca1d 100%);
}
/* Text color changes */
#dark-mode:checked ~ .switch-option.left {
color: white;
}
#light-mode:checked ~ .switch-option.right {
color: white;
}
.switch-option {
color: #6c757d;
}
/* Dark mode theme styles */
@media (prefers-color-scheme: dark) {
.theme-switch {
background-color: #4a5568;
border-color: #718096;
}
.switch-option {
color: #a0aec0;
}
#dark-mode:checked ~ .switch-option.left {
color: white;
}
#light-mode:checked ~ .switch-option.right {
color: white;
}
}