@cannymindstech/file-viewers 0.28.0 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-2BLHLWNN.js +299 -0
- package/dist/chunk-2BLHLWNN.js.map +1 -0
- package/dist/chunk-4HVU224A.js +2454 -0
- package/dist/chunk-4HVU224A.js.map +1 -0
- package/dist/chunk-6BRYDA3B.js +329 -0
- package/dist/chunk-6BRYDA3B.js.map +1 -0
- package/dist/chunk-6L72TJIW.mjs +2454 -0
- package/dist/chunk-6L72TJIW.mjs.map +1 -0
- package/dist/chunk-7PMZ4GN5.mjs +290 -0
- package/dist/chunk-7PMZ4GN5.mjs.map +1 -0
- package/dist/chunk-B5NNB4KD.mjs +268 -0
- package/dist/chunk-B5NNB4KD.mjs.map +1 -0
- package/dist/chunk-CIWCHSAA.js +309 -0
- package/dist/chunk-CIWCHSAA.js.map +1 -0
- package/dist/chunk-D7SDEVDM.js +268 -0
- package/dist/chunk-D7SDEVDM.js.map +1 -0
- package/dist/chunk-EKNP342T.mjs +299 -0
- package/dist/chunk-EKNP342T.mjs.map +1 -0
- package/dist/chunk-EM63H4SA.js +290 -0
- package/dist/chunk-EM63H4SA.js.map +1 -0
- package/dist/chunk-IJMNPAXX.mjs +309 -0
- package/dist/chunk-IJMNPAXX.mjs.map +1 -0
- package/dist/chunk-JKX5RSLF.mjs +871 -0
- package/dist/chunk-JKX5RSLF.mjs.map +1 -0
- package/dist/chunk-KJNOBIUZ.mjs +36 -0
- package/dist/chunk-KJNOBIUZ.mjs.map +1 -0
- package/dist/chunk-KQLIG6WK.js +871 -0
- package/dist/chunk-KQLIG6WK.js.map +1 -0
- package/dist/chunk-KWHXS7I4.mjs +615 -0
- package/dist/chunk-KWHXS7I4.mjs.map +1 -0
- package/dist/chunk-NELCZBZV.js +489 -0
- package/dist/chunk-NELCZBZV.js.map +1 -0
- package/dist/chunk-OPJOCUSL.js +36 -0
- package/dist/chunk-OPJOCUSL.js.map +1 -0
- package/dist/chunk-S5KXYKBX.js +615 -0
- package/dist/chunk-S5KXYKBX.js.map +1 -0
- package/dist/chunk-W2P6JHTQ.mjs +489 -0
- package/dist/chunk-W2P6JHTQ.mjs.map +1 -0
- package/dist/chunk-XJQ5J2UF.mjs +329 -0
- package/dist/chunk-XJQ5J2UF.mjs.map +1 -0
- package/dist/components/viewers/AudioViewer.d.mts +6 -0
- package/dist/components/viewers/AudioViewer.d.ts +6 -0
- package/dist/components/viewers/AudioViewer.js +10 -0
- package/dist/components/viewers/AudioViewer.js.map +1 -0
- package/dist/components/viewers/AudioViewer.mjs +10 -0
- package/dist/components/viewers/AudioViewer.mjs.map +1 -0
- package/dist/components/viewers/DefaultViewer.d.mts +6 -0
- package/dist/components/viewers/DefaultViewer.d.ts +6 -0
- package/dist/components/viewers/DefaultViewer.js +10 -0
- package/dist/components/viewers/DefaultViewer.js.map +1 -0
- package/dist/components/viewers/DefaultViewer.mjs +10 -0
- package/dist/components/viewers/DefaultViewer.mjs.map +1 -0
- package/dist/components/viewers/ImageViewer.d.mts +6 -0
- package/dist/components/viewers/ImageViewer.d.ts +6 -0
- package/dist/components/viewers/ImageViewer.js +10 -0
- package/dist/components/viewers/ImageViewer.js.map +1 -0
- package/dist/components/viewers/ImageViewer.mjs +10 -0
- package/dist/components/viewers/ImageViewer.mjs.map +1 -0
- package/dist/components/viewers/PDFViewer.d.mts +51 -0
- package/dist/components/viewers/PDFViewer.d.ts +51 -0
- package/dist/components/viewers/PDFViewer.js +11 -0
- package/dist/components/viewers/PDFViewer.js.map +1 -0
- package/dist/components/viewers/PDFViewer.mjs +11 -0
- package/dist/components/viewers/PDFViewer.mjs.map +1 -0
- package/dist/components/viewers/TIFFViewer.d.mts +6 -0
- package/dist/components/viewers/TIFFViewer.d.ts +6 -0
- package/dist/components/viewers/TIFFViewer.js +10 -0
- package/dist/components/viewers/TIFFViewer.js.map +1 -0
- package/dist/components/viewers/TIFFViewer.mjs +10 -0
- package/dist/components/viewers/TIFFViewer.mjs.map +1 -0
- package/dist/components/viewers/TextViewer.d.mts +6 -0
- package/dist/components/viewers/TextViewer.d.ts +6 -0
- package/dist/components/viewers/TextViewer.js +10 -0
- package/dist/components/viewers/TextViewer.js.map +1 -0
- package/dist/components/viewers/TextViewer.mjs +10 -0
- package/dist/components/viewers/TextViewer.mjs.map +1 -0
- package/dist/components/viewers/VideoViewer.d.mts +6 -0
- package/dist/components/viewers/VideoViewer.d.ts +6 -0
- package/dist/components/viewers/VideoViewer.js +10 -0
- package/dist/components/viewers/VideoViewer.js.map +1 -0
- package/dist/components/viewers/VideoViewer.mjs +10 -0
- package/dist/components/viewers/VideoViewer.mjs.map +1 -0
- package/dist/index.d.mts +75 -0
- package/dist/index.d.ts +75 -0
- package/dist/index.js +305 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +305 -0
- package/dist/index.mjs.map +1 -0
- package/dist/types-DMF9gANJ.d.mts +101 -0
- package/dist/types-DMF9gANJ.d.ts +101 -0
- package/package.json +3 -2
|
@@ -0,0 +1,615 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
|
|
3
|
+
// src/components/viewers/pdf/PDFStyles.tsx
|
|
4
|
+
var toolbarStyles = `
|
|
5
|
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
|
|
6
|
+
|
|
7
|
+
* {
|
|
8
|
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
9
|
+
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
10
|
+
'Noto Sans Tamil', 'Noto Sans Devanagari', sans-serif !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* Target PDF.js text layer */
|
|
14
|
+
.textLayer,
|
|
15
|
+
.textLayer span,
|
|
16
|
+
.textLayer div,
|
|
17
|
+
[class*="pdf"],
|
|
18
|
+
[class*="page"],
|
|
19
|
+
canvas + div,
|
|
20
|
+
.embedpdf-viewport *,
|
|
21
|
+
[data-pdf-viewer] *,
|
|
22
|
+
[role="document"] * {
|
|
23
|
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
24
|
+
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
25
|
+
'Noto Sans Tamil', 'Noto Sans Devanagari', sans-serif !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.pdf-viewer-header {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: flex-start;
|
|
32
|
+
gap: 8px;
|
|
33
|
+
padding: 2px 12px 0 12px;
|
|
34
|
+
background: #fff;
|
|
35
|
+
min-height: 32px;
|
|
36
|
+
}
|
|
37
|
+
.header-file-name {
|
|
38
|
+
font-size: 13px;
|
|
39
|
+
font-weight: 500;
|
|
40
|
+
color: #374151;
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
text-overflow: ellipsis;
|
|
44
|
+
max-width: 400px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* ========== COMPACT TOOLBAR ========== */
|
|
48
|
+
.pdf-viewer-toolbar {
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: space-between;
|
|
52
|
+
padding: 4px 8px;
|
|
53
|
+
background: #ffffff;
|
|
54
|
+
border-bottom: 1px solid #e5e7eb;
|
|
55
|
+
gap: 4px;
|
|
56
|
+
flex-wrap: wrap;
|
|
57
|
+
min-height: 44px;
|
|
58
|
+
}
|
|
59
|
+
.toolbar-left {
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
gap: 2px;
|
|
63
|
+
flex: 0 0 auto;
|
|
64
|
+
}
|
|
65
|
+
.toolbar-right {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
gap: 2px;
|
|
69
|
+
}
|
|
70
|
+
.toolbar-section {
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
gap: 2px;
|
|
74
|
+
padding: 0;
|
|
75
|
+
}
|
|
76
|
+
.toolbar-separator {
|
|
77
|
+
width: 1px;
|
|
78
|
+
height: 20px;
|
|
79
|
+
background: #e5e7eb;
|
|
80
|
+
margin: 0 8px;
|
|
81
|
+
flex-shrink: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* ========== COMPACT BUTTONS ========== */
|
|
85
|
+
.toolbar-button {
|
|
86
|
+
padding: 6px;
|
|
87
|
+
border: none;
|
|
88
|
+
background: transparent;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
border-radius: 6px;
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
transition: background-color 0.15s ease;
|
|
95
|
+
position: relative;
|
|
96
|
+
min-width: 32px;
|
|
97
|
+
min-height: 32px;
|
|
98
|
+
color: #4b5563;
|
|
99
|
+
}
|
|
100
|
+
.toolbar-button:hover:not(:disabled) {
|
|
101
|
+
background: #f3f4f6;
|
|
102
|
+
color: #111827;
|
|
103
|
+
}
|
|
104
|
+
.toolbar-button:active:not(:disabled) {
|
|
105
|
+
background: #e5e7eb;
|
|
106
|
+
}
|
|
107
|
+
.toolbar-button:disabled {
|
|
108
|
+
opacity: 0.4;
|
|
109
|
+
cursor: not-allowed;
|
|
110
|
+
}
|
|
111
|
+
.toolbar-button svg {
|
|
112
|
+
width: 18px;
|
|
113
|
+
height: 18px;
|
|
114
|
+
display: block;
|
|
115
|
+
}
|
|
116
|
+
.toolbar-button-active {
|
|
117
|
+
background: #eff6ff !important;
|
|
118
|
+
color: #2563eb !important;
|
|
119
|
+
}
|
|
120
|
+
.toolbar-button-active:hover:not(:disabled) {
|
|
121
|
+
background: #dbeafe !important;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* ========== PAGE NAVIGATION ========== */
|
|
125
|
+
.page-input {
|
|
126
|
+
width: 44px;
|
|
127
|
+
padding: 4px 6px;
|
|
128
|
+
border: 1px solid #d1d5db;
|
|
129
|
+
border-radius: 6px;
|
|
130
|
+
text-align: center;
|
|
131
|
+
font-size: 13px;
|
|
132
|
+
font-weight: 500;
|
|
133
|
+
color: #374151;
|
|
134
|
+
background: #fff;
|
|
135
|
+
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
136
|
+
}
|
|
137
|
+
.page-input:focus {
|
|
138
|
+
outline: none;
|
|
139
|
+
border-color: #3b82f6;
|
|
140
|
+
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
|
|
141
|
+
}
|
|
142
|
+
.page-info {
|
|
143
|
+
font-size: 13px;
|
|
144
|
+
color: #6b7280;
|
|
145
|
+
white-space: nowrap;
|
|
146
|
+
font-weight: 500;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* ========== ZOOM DISPLAY ========== */
|
|
150
|
+
.zoom-display {
|
|
151
|
+
min-width: 48px;
|
|
152
|
+
text-align: center;
|
|
153
|
+
font-size: 13px;
|
|
154
|
+
font-weight: 500;
|
|
155
|
+
color: #374151;
|
|
156
|
+
padding: 4px 8px;
|
|
157
|
+
background: #f9fafb;
|
|
158
|
+
border-radius: 6px;
|
|
159
|
+
border: 1px solid #e5e7eb;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.search-input {
|
|
163
|
+
padding: 6px 10px;
|
|
164
|
+
border: 1px solid #d1d5db;
|
|
165
|
+
border-radius: 6px;
|
|
166
|
+
font-size: 13px;
|
|
167
|
+
min-width: 180px;
|
|
168
|
+
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
169
|
+
}
|
|
170
|
+
.search-input:focus {
|
|
171
|
+
outline: none;
|
|
172
|
+
border-color: #3b82f6;
|
|
173
|
+
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* ========== VIEWER CONTENT ========== */
|
|
177
|
+
.pdf-viewer-content {
|
|
178
|
+
flex: 1;
|
|
179
|
+
overflow: hidden;
|
|
180
|
+
position: relative;
|
|
181
|
+
user-select: text;
|
|
182
|
+
-webkit-user-select: text;
|
|
183
|
+
-moz-user-select: text;
|
|
184
|
+
-ms-user-select: text;
|
|
185
|
+
background-color: #efefef;
|
|
186
|
+
}
|
|
187
|
+
.pdf-viewer-container {
|
|
188
|
+
display: flex;
|
|
189
|
+
flex-direction: column;
|
|
190
|
+
height: 100%;
|
|
191
|
+
width: 100%;
|
|
192
|
+
background-color: #efefef;
|
|
193
|
+
}
|
|
194
|
+
.pdf-viewer-main {
|
|
195
|
+
display: flex;
|
|
196
|
+
flex: 1;
|
|
197
|
+
overflow: hidden;
|
|
198
|
+
position: relative;
|
|
199
|
+
background-color: #efefef;
|
|
200
|
+
}
|
|
201
|
+
.pdf-viewer-viewer-area {
|
|
202
|
+
flex: 1;
|
|
203
|
+
display: flex;
|
|
204
|
+
flex-direction: column;
|
|
205
|
+
overflow: hidden;
|
|
206
|
+
position: relative;
|
|
207
|
+
background-color: #efefef; /* Ensure background matches viewer gray */
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/* Override library's inline userSelect: none */
|
|
211
|
+
.pdf-viewer-viewer-area div[style*="userSelect"] {
|
|
212
|
+
user-select: auto !important;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* ========== PRINT DROPDOWN ========== */
|
|
216
|
+
.print-dropdown-container {
|
|
217
|
+
position: relative;
|
|
218
|
+
display: inline-flex;
|
|
219
|
+
}
|
|
220
|
+
.print-dropdown-trigger {
|
|
221
|
+
display: flex;
|
|
222
|
+
align-items: center;
|
|
223
|
+
gap: 2px;
|
|
224
|
+
}
|
|
225
|
+
.print-dropdown-menu {
|
|
226
|
+
position: absolute;
|
|
227
|
+
top: 100%;
|
|
228
|
+
right: 0;
|
|
229
|
+
margin-top: 4px;
|
|
230
|
+
background: #ffffff;
|
|
231
|
+
border: 1px solid #e5e7eb;
|
|
232
|
+
border-radius: 8px;
|
|
233
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
234
|
+
min-width: 200px;
|
|
235
|
+
z-index: 1000;
|
|
236
|
+
overflow: hidden;
|
|
237
|
+
}
|
|
238
|
+
.print-dropdown-item {
|
|
239
|
+
display: block;
|
|
240
|
+
width: 100%;
|
|
241
|
+
padding: 10px 14px;
|
|
242
|
+
border: none;
|
|
243
|
+
background: transparent;
|
|
244
|
+
text-align: left;
|
|
245
|
+
font-size: 13px;
|
|
246
|
+
font-weight: 500;
|
|
247
|
+
color: #374151;
|
|
248
|
+
cursor: pointer;
|
|
249
|
+
transition: background-color 0.15s ease;
|
|
250
|
+
}
|
|
251
|
+
.print-dropdown-item:hover {
|
|
252
|
+
background: #f3f4f6;
|
|
253
|
+
}
|
|
254
|
+
.print-dropdown-item:active {
|
|
255
|
+
background: #e5e7eb;
|
|
256
|
+
}
|
|
257
|
+
.print-dropdown-item + .print-dropdown-item {
|
|
258
|
+
border-top: 1px solid #f3f4f6;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/* ========== TOOLBAR DROPDOWN (Annotation Menu) ========== */
|
|
262
|
+
.toolbar-dropdown-container {
|
|
263
|
+
position: relative;
|
|
264
|
+
display: inline-flex;
|
|
265
|
+
}
|
|
266
|
+
.toolbar-dropdown-button {
|
|
267
|
+
display: flex;
|
|
268
|
+
align-items: center;
|
|
269
|
+
gap: 2px;
|
|
270
|
+
}
|
|
271
|
+
.toolbar-dropdown-menu {
|
|
272
|
+
position: absolute;
|
|
273
|
+
top: 100%;
|
|
274
|
+
left: 0;
|
|
275
|
+
margin-top: 4px;
|
|
276
|
+
background: #ffffff;
|
|
277
|
+
border: 1px solid #e5e7eb;
|
|
278
|
+
border-radius: 8px;
|
|
279
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
280
|
+
min-width: 150px;
|
|
281
|
+
z-index: 1000;
|
|
282
|
+
overflow: hidden;
|
|
283
|
+
}
|
|
284
|
+
.toolbar-dropdown-menu-right {
|
|
285
|
+
left: auto;
|
|
286
|
+
right: 0;
|
|
287
|
+
}
|
|
288
|
+
.toolbar-dropdown-item {
|
|
289
|
+
display: flex;
|
|
290
|
+
align-items: center;
|
|
291
|
+
gap: 8px;
|
|
292
|
+
width: 100%;
|
|
293
|
+
padding: 10px 14px;
|
|
294
|
+
border: none;
|
|
295
|
+
background: transparent;
|
|
296
|
+
text-align: left;
|
|
297
|
+
font-size: 13px;
|
|
298
|
+
font-weight: 500;
|
|
299
|
+
color: #374151;
|
|
300
|
+
cursor: pointer;
|
|
301
|
+
transition: background-color 0.15s ease;
|
|
302
|
+
}
|
|
303
|
+
.toolbar-dropdown-item:hover {
|
|
304
|
+
background: #f3f4f6;
|
|
305
|
+
}
|
|
306
|
+
.toolbar-dropdown-item:active {
|
|
307
|
+
background: #e5e7eb;
|
|
308
|
+
}
|
|
309
|
+
.toolbar-dropdown-item:disabled {
|
|
310
|
+
opacity: 0.5;
|
|
311
|
+
cursor: not-allowed;
|
|
312
|
+
}
|
|
313
|
+
.toolbar-dropdown-item + .toolbar-dropdown-item {
|
|
314
|
+
border-top: 1px solid #f3f4f6;
|
|
315
|
+
}
|
|
316
|
+
.toolbar-dropdown-item svg {
|
|
317
|
+
font-size: 18px;
|
|
318
|
+
color: #6b7280;
|
|
319
|
+
}
|
|
320
|
+
.toolbar-dropdown-item-active {
|
|
321
|
+
background: #eff6ff;
|
|
322
|
+
color: #2563eb;
|
|
323
|
+
}
|
|
324
|
+
.toolbar-dropdown-item-active svg {
|
|
325
|
+
color: #2563eb;
|
|
326
|
+
}
|
|
327
|
+
.toolbar-dropdown-divider {
|
|
328
|
+
height: 1px;
|
|
329
|
+
background: #e5e7eb;
|
|
330
|
+
margin: 4px 0;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
/* ========== TOOLTIP STYLES ========== */
|
|
336
|
+
.toolbar-button[title]:hover::after {
|
|
337
|
+
content: attr(title);
|
|
338
|
+
position: absolute;
|
|
339
|
+
bottom: -32px;
|
|
340
|
+
left: 50%;
|
|
341
|
+
transform: translateX(-50%);
|
|
342
|
+
padding: 6px 10px;
|
|
343
|
+
background: #1f2937;
|
|
344
|
+
color: white;
|
|
345
|
+
font-size: 12px;
|
|
346
|
+
font-weight: 500;
|
|
347
|
+
border-radius: 6px;
|
|
348
|
+
white-space: nowrap;
|
|
349
|
+
z-index: 1000;
|
|
350
|
+
pointer-events: none;
|
|
351
|
+
opacity: 0;
|
|
352
|
+
animation: fadeIn 0.2s ease-out 0.3s forwards;
|
|
353
|
+
}
|
|
354
|
+
@keyframes fadeIn {
|
|
355
|
+
to { opacity: 1; }
|
|
356
|
+
}
|
|
357
|
+
/* ========== SECONDARY TOOLBAR & TABS ========== */
|
|
358
|
+
.pdf-viewer-toolbar-container {
|
|
359
|
+
display: flex;
|
|
360
|
+
flex-direction: column;
|
|
361
|
+
width: 100%;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.pdf-viewer-secondary-toolbar {
|
|
365
|
+
display: flex;
|
|
366
|
+
align-items: center;
|
|
367
|
+
justify-content: center;
|
|
368
|
+
padding: 8px 16px;
|
|
369
|
+
background-color: #f9fafb;
|
|
370
|
+
border-bottom: 1px solid #e5e7eb;
|
|
371
|
+
gap: 12px;
|
|
372
|
+
width: 100%;
|
|
373
|
+
box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
|
|
374
|
+
animation: slideDown 0.2s ease-out;
|
|
375
|
+
transform-origin: top;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
@keyframes slideDown {
|
|
379
|
+
from { opacity: 0; transform: scaleY(0.95); }
|
|
380
|
+
to { opacity: 1; transform: scaleY(1); }
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.toolbar-center {
|
|
384
|
+
display: flex;
|
|
385
|
+
align-items: center;
|
|
386
|
+
gap: 4px;
|
|
387
|
+
flex: 1 1 auto;
|
|
388
|
+
justify-content: center;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.toolbar-tab {
|
|
392
|
+
background: none;
|
|
393
|
+
border: none;
|
|
394
|
+
padding: 6px 12px;
|
|
395
|
+
font-size: 14px;
|
|
396
|
+
font-weight: 500;
|
|
397
|
+
color: #6b7280;
|
|
398
|
+
cursor: pointer;
|
|
399
|
+
border-radius: 6px;
|
|
400
|
+
transition: all 0.2s ease;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.toolbar-tab:hover {
|
|
404
|
+
background-color: #f3f4f6;
|
|
405
|
+
color: #374151;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.toolbar-tab-active {
|
|
409
|
+
color: #2563eb;
|
|
410
|
+
background-color: #eff6ff;
|
|
411
|
+
font-weight: 600;
|
|
412
|
+
}
|
|
413
|
+
.toolbar-dropdown-header {
|
|
414
|
+
font-size: 11px;
|
|
415
|
+
font-weight: 600;
|
|
416
|
+
color: #6b7280;
|
|
417
|
+
padding: 8px 12px 4px 12px;
|
|
418
|
+
letter-spacing: 0.5px;
|
|
419
|
+
text-transform: uppercase;
|
|
420
|
+
}
|
|
421
|
+
.pdf-viewer-thumbnail-sidebar {
|
|
422
|
+
background: #ffffff;
|
|
423
|
+
border-right: 1px solid #e5e7eb;
|
|
424
|
+
height: 100%;
|
|
425
|
+
overflow-y: auto;
|
|
426
|
+
scrollbar-width: thin;
|
|
427
|
+
transition: all 0.2s ease-in-out;
|
|
428
|
+
}
|
|
429
|
+
.pdf-viewer-thumbnail-sidebar::-webkit-scrollbar {
|
|
430
|
+
width: 6px;
|
|
431
|
+
}
|
|
432
|
+
.pdf-viewer-thumbnail-sidebar::-webkit-scrollbar-track {
|
|
433
|
+
background: #f1f1f1;
|
|
434
|
+
}
|
|
435
|
+
.pdf-viewer-thumbnail-sidebar::-webkit-scrollbar-thumb {
|
|
436
|
+
background: #c1c1c1;
|
|
437
|
+
border-radius: 3px;
|
|
438
|
+
}
|
|
439
|
+
.pdf-viewer-thumbnail-sidebar::-webkit-scrollbar-thumb:hover {
|
|
440
|
+
background: #a8a8a8;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/* ========== DARK MODE OVERRIDES ========== */
|
|
444
|
+
.dark-theme.pdf-viewer-container {
|
|
445
|
+
background-color: #0f172a;
|
|
446
|
+
color: #f8fafc;
|
|
447
|
+
--thumbnail-bg: #0f172a;
|
|
448
|
+
--thumbnail-border: #1e293b;
|
|
449
|
+
}
|
|
450
|
+
.dark-theme .pdf-viewer-header {
|
|
451
|
+
background: #0f172a;
|
|
452
|
+
border-bottom: 1px solid #1e293b;
|
|
453
|
+
}
|
|
454
|
+
.dark-theme .header-file-name {
|
|
455
|
+
color: #f1f5f9;
|
|
456
|
+
}
|
|
457
|
+
.dark-theme .pdf-viewer-toolbar {
|
|
458
|
+
background: #0f172a;
|
|
459
|
+
border-bottom: 1px solid #1e293b;
|
|
460
|
+
}
|
|
461
|
+
.dark-theme .toolbar-separator {
|
|
462
|
+
background: #1e293b;
|
|
463
|
+
}
|
|
464
|
+
.dark-theme .toolbar-button {
|
|
465
|
+
color: #94a3b8;
|
|
466
|
+
}
|
|
467
|
+
.dark-theme .toolbar-button:hover:not(:disabled) {
|
|
468
|
+
background: #1e293b;
|
|
469
|
+
color: #f8fafc;
|
|
470
|
+
}
|
|
471
|
+
.dark-theme .toolbar-button:active:not(:disabled) {
|
|
472
|
+
background: #334155;
|
|
473
|
+
}
|
|
474
|
+
.dark-theme .toolbar-button-active {
|
|
475
|
+
background: #1e3a8a !important;
|
|
476
|
+
color: #3b82f6 !important;
|
|
477
|
+
}
|
|
478
|
+
.dark-theme .toolbar-button-active:hover:not(:disabled) {
|
|
479
|
+
background: #1e40af !important;
|
|
480
|
+
}
|
|
481
|
+
.dark-theme .page-input {
|
|
482
|
+
border-color: #334155;
|
|
483
|
+
color: #f8fafc;
|
|
484
|
+
background: #0f172a;
|
|
485
|
+
}
|
|
486
|
+
.dark-theme .page-input:focus {
|
|
487
|
+
border-color: #3b82f6;
|
|
488
|
+
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
|
|
489
|
+
}
|
|
490
|
+
.dark-theme .page-info {
|
|
491
|
+
color: #94a3b8;
|
|
492
|
+
}
|
|
493
|
+
.dark-theme .zoom-display {
|
|
494
|
+
color: #f8fafc;
|
|
495
|
+
background: #1e293b;
|
|
496
|
+
border-color: #334155;
|
|
497
|
+
}
|
|
498
|
+
.dark-theme .search-input {
|
|
499
|
+
border-color: #334155;
|
|
500
|
+
background: #0f172a;
|
|
501
|
+
color: #f8fafc;
|
|
502
|
+
}
|
|
503
|
+
.dark-theme .search-input:focus {
|
|
504
|
+
border-color: #3b82f6;
|
|
505
|
+
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
|
|
506
|
+
}
|
|
507
|
+
.dark-theme .pdf-viewer-content,
|
|
508
|
+
.dark-theme .pdf-viewer-main,
|
|
509
|
+
.dark-theme .pdf-viewer-viewer-area {
|
|
510
|
+
background-color: #020617;
|
|
511
|
+
}
|
|
512
|
+
.dark-theme .pdf-viewer-thumbnail-sidebar {
|
|
513
|
+
background: #0f172a;
|
|
514
|
+
border-right: 1px solid #1e293b;
|
|
515
|
+
}
|
|
516
|
+
.dark-theme .pdf-viewer-thumbnail-sidebar::-webkit-scrollbar-track {
|
|
517
|
+
background: #0f172a;
|
|
518
|
+
}
|
|
519
|
+
.dark-theme .pdf-viewer-thumbnail-sidebar::-webkit-scrollbar-thumb {
|
|
520
|
+
background: #334155;
|
|
521
|
+
}
|
|
522
|
+
.dark-theme .pdf-viewer-thumbnail-sidebar::-webkit-scrollbar-thumb:hover {
|
|
523
|
+
background: #475569;
|
|
524
|
+
}
|
|
525
|
+
.dark-theme .pdf-viewer-secondary-toolbar {
|
|
526
|
+
background-color: #0f172a;
|
|
527
|
+
border-bottom: 1px solid #1e293b;
|
|
528
|
+
}
|
|
529
|
+
.dark-theme .toolbar-tab {
|
|
530
|
+
color: #94a3b8;
|
|
531
|
+
}
|
|
532
|
+
.dark-theme .toolbar-tab:hover {
|
|
533
|
+
background-color: #1e293b;
|
|
534
|
+
color: #f1f5f9;
|
|
535
|
+
}
|
|
536
|
+
.dark-theme .toolbar-tab-active {
|
|
537
|
+
color: #60a5fa;
|
|
538
|
+
background-color: #1e3a8a;
|
|
539
|
+
}
|
|
540
|
+
.dark-theme .toolbar-dropdown-menu,
|
|
541
|
+
.dark-theme .print-dropdown-menu {
|
|
542
|
+
background: #0f172a;
|
|
543
|
+
border-color: #1e293b;
|
|
544
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
|
|
545
|
+
}
|
|
546
|
+
.dark-theme .toolbar-dropdown-item,
|
|
547
|
+
.dark-theme .print-dropdown-item {
|
|
548
|
+
color: #cbd5e1;
|
|
549
|
+
}
|
|
550
|
+
.dark-theme .toolbar-dropdown-item:hover,
|
|
551
|
+
.dark-theme .print-dropdown-item:hover {
|
|
552
|
+
background: #1e293b;
|
|
553
|
+
}
|
|
554
|
+
.dark-theme .toolbar-dropdown-item:active,
|
|
555
|
+
.dark-theme .print-dropdown-item:active {
|
|
556
|
+
background: #334155;
|
|
557
|
+
}
|
|
558
|
+
.dark-theme .toolbar-dropdown-item + .toolbar-dropdown-item,
|
|
559
|
+
.dark-theme .print-dropdown-item + .print-dropdown-item {
|
|
560
|
+
border-top: 1px solid #1e293b;
|
|
561
|
+
}
|
|
562
|
+
.dark-theme .toolbar-dropdown-divider {
|
|
563
|
+
background: #1e293b;
|
|
564
|
+
}
|
|
565
|
+
.dark-theme .toolbar-dropdown-header {
|
|
566
|
+
color: #94a3b8;
|
|
567
|
+
}
|
|
568
|
+
.dark-theme .toolbar-dropdown-item svg {
|
|
569
|
+
color: #94a3b8;
|
|
570
|
+
}
|
|
571
|
+
.dark-theme .toolbar-dropdown-item-active {
|
|
572
|
+
background: #1e3a8a;
|
|
573
|
+
color: #60a5fa;
|
|
574
|
+
}
|
|
575
|
+
.dark-theme .toolbar-dropdown-item-active svg {
|
|
576
|
+
color: #60a5fa;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
/* ========== THUMBNAIL SIDEBAR DARK THEME ELEMENTS ========== */
|
|
580
|
+
.dark-theme .pdf-viewer-thumbnail-title {
|
|
581
|
+
color: #f1f5f9 !important;
|
|
582
|
+
}
|
|
583
|
+
.dark-theme .pdf-viewer-thumbnail-close-btn {
|
|
584
|
+
color: #94a3b8 !important;
|
|
585
|
+
}
|
|
586
|
+
.dark-theme .pdf-viewer-thumbnail-close-btn:hover {
|
|
587
|
+
background-color: #1e293b !important;
|
|
588
|
+
color: #f8fafc !important;
|
|
589
|
+
}
|
|
590
|
+
.dark-theme .pdf-viewer-thumbnail-page:not(.active) .pdf-viewer-thumbnail-label {
|
|
591
|
+
color: #94a3b8 !important;
|
|
592
|
+
}
|
|
593
|
+
.dark-theme .pdf-viewer-thumbnail-page:not(.active):hover .pdf-viewer-thumbnail-label {
|
|
594
|
+
color: #f1f5f9 !important;
|
|
595
|
+
}
|
|
596
|
+
.dark-theme .pdf-viewer-thumbnail-page:not(.active) .pdf-viewer-thumbnail-canvas-wrapper {
|
|
597
|
+
border-color: #334155 !important;
|
|
598
|
+
background-color: #1e293b !important;
|
|
599
|
+
}
|
|
600
|
+
.dark-theme .pdf-viewer-thumbnail-page:not(.active):hover .pdf-viewer-thumbnail-canvas-wrapper {
|
|
601
|
+
border-color: #475569 !important;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/* ========== VIEWPORT BACKGROUND OVERRIDE ========== */
|
|
605
|
+
.dark-theme .pdf-viewer-viewer-area div[style*="background-color"],
|
|
606
|
+
.dark-theme [class*="viewport"],
|
|
607
|
+
.dark-theme .embedpdf-viewport {
|
|
608
|
+
background-color: #020617 !important;
|
|
609
|
+
}
|
|
610
|
+
`;
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
exports.toolbarStyles = toolbarStyles;
|
|
615
|
+
//# sourceMappingURL=chunk-S5KXYKBX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/premkumar/Documents/GitHub/DMS-File-Viewers/packages/lib/dist/chunk-S5KXYKBX.js","../src/components/viewers/pdf/PDFStyles.tsx"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACA;ACFO,IAAM,cAAA,EAAgB,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;ADkmB7B;AACA;AACE;AACF,sCAAC","file":"/home/premkumar/Documents/GitHub/DMS-File-Viewers/packages/lib/dist/chunk-S5KXYKBX.js","sourcesContent":[null,"export const toolbarStyles = `\n @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');\n\n * {\n font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n 'Noto Sans Tamil', 'Noto Sans Devanagari', sans-serif !important;\n }\n\n /* Target PDF.js text layer */\n .textLayer,\n .textLayer span,\n .textLayer div,\n [class*=\"pdf\"],\n [class*=\"page\"],\n canvas + div,\n .embedpdf-viewport *,\n [data-pdf-viewer] *,\n [role=\"document\"] * {\n font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n 'Noto Sans Tamil', 'Noto Sans Devanagari', sans-serif !important;\n }\n\n .pdf-viewer-header {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 8px;\n padding: 2px 12px 0 12px;\n background: #fff;\n min-height: 32px;\n }\n .header-file-name {\n font-size: 13px;\n font-weight: 500;\n color: #374151;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 400px;\n }\n\n /* ========== COMPACT TOOLBAR ========== */\n .pdf-viewer-toolbar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 4px 8px;\n background: #ffffff;\n border-bottom: 1px solid #e5e7eb;\n gap: 4px;\n flex-wrap: wrap;\n min-height: 44px;\n }\n .toolbar-left {\n display: flex;\n align-items: center;\n gap: 2px;\n flex: 0 0 auto;\n }\n .toolbar-right {\n display: flex;\n align-items: center;\n gap: 2px;\n }\n .toolbar-section {\n display: flex;\n align-items: center;\n gap: 2px;\n padding: 0;\n }\n .toolbar-separator {\n width: 1px;\n height: 20px;\n background: #e5e7eb;\n margin: 0 8px;\n flex-shrink: 0;\n }\n\n /* ========== COMPACT BUTTONS ========== */\n .toolbar-button {\n padding: 6px;\n border: none;\n background: transparent;\n cursor: pointer;\n border-radius: 6px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background-color 0.15s ease;\n position: relative;\n min-width: 32px;\n min-height: 32px;\n color: #4b5563;\n }\n .toolbar-button:hover:not(:disabled) {\n background: #f3f4f6;\n color: #111827;\n }\n .toolbar-button:active:not(:disabled) {\n background: #e5e7eb;\n }\n .toolbar-button:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n }\n .toolbar-button svg {\n width: 18px;\n height: 18px;\n display: block;\n }\n .toolbar-button-active {\n background: #eff6ff !important;\n color: #2563eb !important;\n }\n .toolbar-button-active:hover:not(:disabled) {\n background: #dbeafe !important;\n }\n\n /* ========== PAGE NAVIGATION ========== */\n .page-input {\n width: 44px;\n padding: 4px 6px;\n border: 1px solid #d1d5db;\n border-radius: 6px;\n text-align: center;\n font-size: 13px;\n font-weight: 500;\n color: #374151;\n background: #fff;\n transition: border-color 0.15s ease, box-shadow 0.15s ease;\n }\n .page-input:focus {\n outline: none;\n border-color: #3b82f6;\n box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);\n }\n .page-info {\n font-size: 13px;\n color: #6b7280;\n white-space: nowrap;\n font-weight: 500;\n }\n\n /* ========== ZOOM DISPLAY ========== */\n .zoom-display {\n min-width: 48px;\n text-align: center;\n font-size: 13px;\n font-weight: 500;\n color: #374151;\n padding: 4px 8px;\n background: #f9fafb;\n border-radius: 6px;\n border: 1px solid #e5e7eb;\n }\n\n .search-input {\n padding: 6px 10px;\n border: 1px solid #d1d5db;\n border-radius: 6px;\n font-size: 13px;\n min-width: 180px;\n transition: border-color 0.15s ease, box-shadow 0.15s ease;\n }\n .search-input:focus {\n outline: none;\n border-color: #3b82f6;\n box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);\n }\n\n /* ========== VIEWER CONTENT ========== */\n .pdf-viewer-content {\n flex: 1;\n overflow: hidden;\n position: relative;\n user-select: text;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n background-color: #efefef;\n }\n .pdf-viewer-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n background-color: #efefef;\n }\n .pdf-viewer-main {\n display: flex;\n flex: 1;\n overflow: hidden;\n position: relative;\n background-color: #efefef;\n }\n .pdf-viewer-viewer-area {\n flex: 1;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n position: relative;\n background-color: #efefef; /* Ensure background matches viewer gray */\n }\n \n /* Override library's inline userSelect: none */\n .pdf-viewer-viewer-area div[style*=\"userSelect\"] {\n user-select: auto !important;\n }\n\n /* ========== PRINT DROPDOWN ========== */\n .print-dropdown-container {\n position: relative;\n display: inline-flex;\n }\n .print-dropdown-trigger {\n display: flex;\n align-items: center;\n gap: 2px;\n }\n .print-dropdown-menu {\n position: absolute;\n top: 100%;\n right: 0;\n margin-top: 4px;\n background: #ffffff;\n border: 1px solid #e5e7eb;\n border-radius: 8px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n min-width: 200px;\n z-index: 1000;\n overflow: hidden;\n }\n .print-dropdown-item {\n display: block;\n width: 100%;\n padding: 10px 14px;\n border: none;\n background: transparent;\n text-align: left;\n font-size: 13px;\n font-weight: 500;\n color: #374151;\n cursor: pointer;\n transition: background-color 0.15s ease;\n }\n .print-dropdown-item:hover {\n background: #f3f4f6;\n }\n .print-dropdown-item:active {\n background: #e5e7eb;\n }\n .print-dropdown-item + .print-dropdown-item {\n border-top: 1px solid #f3f4f6;\n }\n\n /* ========== TOOLBAR DROPDOWN (Annotation Menu) ========== */\n .toolbar-dropdown-container {\n position: relative;\n display: inline-flex;\n }\n .toolbar-dropdown-button {\n display: flex;\n align-items: center;\n gap: 2px;\n }\n .toolbar-dropdown-menu {\n position: absolute;\n top: 100%;\n left: 0;\n margin-top: 4px;\n background: #ffffff;\n border: 1px solid #e5e7eb;\n border-radius: 8px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n min-width: 150px;\n z-index: 1000;\n overflow: hidden;\n }\n .toolbar-dropdown-menu-right {\n left: auto;\n right: 0;\n }\n .toolbar-dropdown-item {\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 14px;\n border: none;\n background: transparent;\n text-align: left;\n font-size: 13px;\n font-weight: 500;\n color: #374151;\n cursor: pointer;\n transition: background-color 0.15s ease;\n }\n .toolbar-dropdown-item:hover {\n background: #f3f4f6;\n }\n .toolbar-dropdown-item:active {\n background: #e5e7eb;\n }\n .toolbar-dropdown-item:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n .toolbar-dropdown-item + .toolbar-dropdown-item {\n border-top: 1px solid #f3f4f6;\n }\n .toolbar-dropdown-item svg {\n font-size: 18px;\n color: #6b7280;\n }\n .toolbar-dropdown-item-active {\n background: #eff6ff;\n color: #2563eb;\n }\n .toolbar-dropdown-item-active svg {\n color: #2563eb;\n }\n .toolbar-dropdown-divider {\n height: 1px;\n background: #e5e7eb;\n margin: 4px 0;\n }\n\n\n\n /* ========== TOOLTIP STYLES ========== */\n .toolbar-button[title]:hover::after {\n content: attr(title);\n position: absolute;\n bottom: -32px;\n left: 50%;\n transform: translateX(-50%);\n padding: 6px 10px;\n background: #1f2937;\n color: white;\n font-size: 12px;\n font-weight: 500;\n border-radius: 6px;\n white-space: nowrap;\n z-index: 1000;\n pointer-events: none;\n opacity: 0;\n animation: fadeIn 0.2s ease-out 0.3s forwards;\n }\n @keyframes fadeIn {\n to { opacity: 1; }\n }\n /* ========== SECONDARY TOOLBAR & TABS ========== */\n .pdf-viewer-toolbar-container {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n .pdf-viewer-secondary-toolbar {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 16px;\n background-color: #f9fafb;\n border-bottom: 1px solid #e5e7eb;\n gap: 12px;\n width: 100%;\n box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);\n animation: slideDown 0.2s ease-out;\n transform-origin: top;\n }\n\n @keyframes slideDown {\n from { opacity: 0; transform: scaleY(0.95); }\n to { opacity: 1; transform: scaleY(1); }\n }\n\n .toolbar-center {\n display: flex;\n align-items: center;\n gap: 4px;\n flex: 1 1 auto;\n justify-content: center;\n }\n\n .toolbar-tab {\n background: none;\n border: none;\n padding: 6px 12px;\n font-size: 14px;\n font-weight: 500;\n color: #6b7280;\n cursor: pointer;\n border-radius: 6px;\n transition: all 0.2s ease;\n }\n\n .toolbar-tab:hover {\n background-color: #f3f4f6;\n color: #374151;\n }\n\n .toolbar-tab-active {\n color: #2563eb;\n background-color: #eff6ff;\n font-weight: 600;\n }\n .toolbar-dropdown-header {\n font-size: 11px;\n font-weight: 600;\n color: #6b7280;\n padding: 8px 12px 4px 12px;\n letter-spacing: 0.5px;\n text-transform: uppercase;\n }\n .pdf-viewer-thumbnail-sidebar {\n background: #ffffff;\n border-right: 1px solid #e5e7eb;\n height: 100%;\n overflow-y: auto;\n scrollbar-width: thin;\n transition: all 0.2s ease-in-out;\n }\n .pdf-viewer-thumbnail-sidebar::-webkit-scrollbar {\n width: 6px;\n }\n .pdf-viewer-thumbnail-sidebar::-webkit-scrollbar-track {\n background: #f1f1f1;\n }\n .pdf-viewer-thumbnail-sidebar::-webkit-scrollbar-thumb {\n background: #c1c1c1;\n border-radius: 3px;\n }\n .pdf-viewer-thumbnail-sidebar::-webkit-scrollbar-thumb:hover {\n background: #a8a8a8;\n }\n\n /* ========== DARK MODE OVERRIDES ========== */\n .dark-theme.pdf-viewer-container {\n background-color: #0f172a;\n color: #f8fafc;\n --thumbnail-bg: #0f172a;\n --thumbnail-border: #1e293b;\n }\n .dark-theme .pdf-viewer-header {\n background: #0f172a;\n border-bottom: 1px solid #1e293b;\n }\n .dark-theme .header-file-name {\n color: #f1f5f9;\n }\n .dark-theme .pdf-viewer-toolbar {\n background: #0f172a;\n border-bottom: 1px solid #1e293b;\n }\n .dark-theme .toolbar-separator {\n background: #1e293b;\n }\n .dark-theme .toolbar-button {\n color: #94a3b8;\n }\n .dark-theme .toolbar-button:hover:not(:disabled) {\n background: #1e293b;\n color: #f8fafc;\n }\n .dark-theme .toolbar-button:active:not(:disabled) {\n background: #334155;\n }\n .dark-theme .toolbar-button-active {\n background: #1e3a8a !important;\n color: #3b82f6 !important;\n }\n .dark-theme .toolbar-button-active:hover:not(:disabled) {\n background: #1e40af !important;\n }\n .dark-theme .page-input {\n border-color: #334155;\n color: #f8fafc;\n background: #0f172a;\n }\n .dark-theme .page-input:focus {\n border-color: #3b82f6;\n box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);\n }\n .dark-theme .page-info {\n color: #94a3b8;\n }\n .dark-theme .zoom-display {\n color: #f8fafc;\n background: #1e293b;\n border-color: #334155;\n }\n .dark-theme .search-input {\n border-color: #334155;\n background: #0f172a;\n color: #f8fafc;\n }\n .dark-theme .search-input:focus {\n border-color: #3b82f6;\n box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);\n }\n .dark-theme .pdf-viewer-content,\n .dark-theme .pdf-viewer-main,\n .dark-theme .pdf-viewer-viewer-area {\n background-color: #020617;\n }\n .dark-theme .pdf-viewer-thumbnail-sidebar {\n background: #0f172a;\n border-right: 1px solid #1e293b;\n }\n .dark-theme .pdf-viewer-thumbnail-sidebar::-webkit-scrollbar-track {\n background: #0f172a;\n }\n .dark-theme .pdf-viewer-thumbnail-sidebar::-webkit-scrollbar-thumb {\n background: #334155;\n }\n .dark-theme .pdf-viewer-thumbnail-sidebar::-webkit-scrollbar-thumb:hover {\n background: #475569;\n }\n .dark-theme .pdf-viewer-secondary-toolbar {\n background-color: #0f172a;\n border-bottom: 1px solid #1e293b;\n }\n .dark-theme .toolbar-tab {\n color: #94a3b8;\n }\n .dark-theme .toolbar-tab:hover {\n background-color: #1e293b;\n color: #f1f5f9;\n }\n .dark-theme .toolbar-tab-active {\n color: #60a5fa;\n background-color: #1e3a8a;\n }\n .dark-theme .toolbar-dropdown-menu,\n .dark-theme .print-dropdown-menu {\n background: #0f172a;\n border-color: #1e293b;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);\n }\n .dark-theme .toolbar-dropdown-item,\n .dark-theme .print-dropdown-item {\n color: #cbd5e1;\n }\n .dark-theme .toolbar-dropdown-item:hover,\n .dark-theme .print-dropdown-item:hover {\n background: #1e293b;\n }\n .dark-theme .toolbar-dropdown-item:active,\n .dark-theme .print-dropdown-item:active {\n background: #334155;\n }\n .dark-theme .toolbar-dropdown-item + .toolbar-dropdown-item,\n .dark-theme .print-dropdown-item + .print-dropdown-item {\n border-top: 1px solid #1e293b;\n }\n .dark-theme .toolbar-dropdown-divider {\n background: #1e293b;\n }\n .dark-theme .toolbar-dropdown-header {\n color: #94a3b8;\n }\n .dark-theme .toolbar-dropdown-item svg {\n color: #94a3b8;\n }\n .dark-theme .toolbar-dropdown-item-active {\n background: #1e3a8a;\n color: #60a5fa;\n }\n .dark-theme .toolbar-dropdown-item-active svg {\n color: #60a5fa;\n }\n\n /* ========== THUMBNAIL SIDEBAR DARK THEME ELEMENTS ========== */\n .dark-theme .pdf-viewer-thumbnail-title {\n color: #f1f5f9 !important;\n }\n .dark-theme .pdf-viewer-thumbnail-close-btn {\n color: #94a3b8 !important;\n }\n .dark-theme .pdf-viewer-thumbnail-close-btn:hover {\n background-color: #1e293b !important;\n color: #f8fafc !important;\n }\n .dark-theme .pdf-viewer-thumbnail-page:not(.active) .pdf-viewer-thumbnail-label {\n color: #94a3b8 !important;\n }\n .dark-theme .pdf-viewer-thumbnail-page:not(.active):hover .pdf-viewer-thumbnail-label {\n color: #f1f5f9 !important;\n }\n .dark-theme .pdf-viewer-thumbnail-page:not(.active) .pdf-viewer-thumbnail-canvas-wrapper {\n border-color: #334155 !important;\n background-color: #1e293b !important;\n }\n .dark-theme .pdf-viewer-thumbnail-page:not(.active):hover .pdf-viewer-thumbnail-canvas-wrapper {\n border-color: #475569 !important;\n }\n\n /* ========== VIEWPORT BACKGROUND OVERRIDE ========== */\n .dark-theme .pdf-viewer-viewer-area div[style*=\"background-color\"],\n .dark-theme [class*=\"viewport\"],\n .dark-theme .embedpdf-viewport {\n background-color: #020617 !important;\n }\n`;"]}
|