/* =========================================================
   DOCUMENT PROPERTIES & PDF VERIFICATION MODULE STYLES
   ========================================================= */

.divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  margin: 50px auto;
  max-width: 85%;
}

.doc-properties-section {
  position: relative;
  max-width: 1100px;
  margin: 10px auto 20px;
  padding: 0 20px;
  z-index: 10;
}

.doc-prop-header {
  text-align: center;
  margin-bottom: 20px;
}

.doc-prop-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 198, 251, 0.12);
  border: 1px solid rgba(0, 198, 251, 0.35);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #00c6fb;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 0 15px rgba(0, 198, 251, 0.2);
}

.doc-prop-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-family: 'Poppins', sans-serif;
}

.doc-prop-title span {
  background: linear-gradient(135deg, #00c6fb, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.doc-prop-subtitle {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* SEARCH & ACTION CONTROL BAR */
.doc-inspector-control-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 820px;
  margin: 25px auto 20px;
}

.doc-search-wrapper {
  position: relative;
  min-width: 280px;
  flex: 1;
}

.doc-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.doc-search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.doc-search-clear:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.doc-search-input {
  width: 100%;
  padding: 15px 45px 15px 50px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  font-size: 15px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  font-family: 'Poppins', sans-serif;
}

.doc-search-input:focus {
  border-color: rgba(0, 198, 251, 0.7);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 25px rgba(0, 198, 251, 0.35), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.doc-search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* ALL LIST BUTTON */
.doc-all-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.8), rgba(99, 102, 241, 0.8));
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
  user-select: none;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
}

.doc-all-list-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(168, 85, 247, 1), rgba(99, 102, 241, 1));
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
  border-color: rgba(216, 180, 254, 0.8);
}

.doc-all-list-btn:active {
  transform: scale(0.97);
}

.doc-count-pill {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

/* SEARCH RESULTS BOX */
.doc-search-results-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(0, 198, 251, 0.3);
  border-radius: 20px;
  padding: 20px;
  margin: 15px auto 30px;
  max-width: 820px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
  animation: fadeInDown 0.3s ease-out forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.doc-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.doc-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  .doc-results-grid {
    grid-template-columns: 1fr;
  }
}

/* RESULT CARD */
.doc-result-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.doc-result-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 198, 251, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), 0 0 15px rgba(0, 198, 251, 0.2);
}

.doc-result-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.doc-result-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
  padding: 4px;
}

.doc-result-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.doc-result-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.35;
}

.doc-result-institution {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.doc-category-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.badge-bank {
  background: rgba(0, 198, 251, 0.15);
  color: #00c6fb;
  border: 1px solid rgba(0, 198, 251, 0.3);
}

.badge-utility {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-salary {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-govt {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Result Meta Table */
.doc-result-meta {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.doc-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.doc-meta-label {
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.doc-meta-val {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Courier New', monospace;
  font-size: 11.5px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.doc-match-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #34d399;
  font-size: 11px;
  font-weight: 600;
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-view-btn {
  width: 100%;
  padding: 9px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #005bea, #00c6fb);
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 91, 234, 0.35);
  font-family: 'Poppins', sans-serif;
}

.doc-view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 198, 251, 0.5);
}

/* LIVE PDF CHECKER DROPZONE */
.live-pdf-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed rgba(0, 198, 251, 0.35);
  border-radius: 20px;
  padding: 22px;
  margin: 25px auto 10px;
  max-width: 820px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
  text-align: center;
}

.live-pdf-box:hover,
.live-pdf-box.drag-over {
  border-color: #00c6fb;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 25px rgba(0, 198, 251, 0.25);
}

.live-pdf-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.live-pdf-icon {
  font-size: 32px;
}

.live-pdf-title {
  font-size: 16.5px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.live-pdf-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 580px;
  margin: 0;
  line-height: 1.5;
}

.live-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(52, 211, 153, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.live-pdf-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* =========================================================
   ALL LIST DIRECTORY MODAL
   ========================================================= */
.doc-all-list-modal-window {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  width: 100%;
  max-width: 780px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  transform: scale(0.95);
  transition: all 0.25s ease;
}

.doc-modal-overlay.open .doc-all-list-modal-window {
  transform: scale(1);
}

.doc-all-list-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.doc-all-list-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-all-list-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.doc-all-list-search-row {
  margin-bottom: 16px;
}

.doc-all-list-filter-input {
  width: 100%;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
}

.doc-all-list-filter-input:focus {
  border-color: #00c6fb;
}

.doc-all-list-items-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-all-list-item-row {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.doc-all-list-item-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 198, 251, 0.35);
  transform: translateX(4px);
}

.doc-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #00c6fb;
  border-radius: 50%;
  animation: doc-spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes doc-spin {
  to { transform: rotate(360deg); }
}

.doc-all-list-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.doc-all-list-item-info {
  flex: 1;
  min-width: 0;
}

.doc-all-list-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-all-list-item-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   AUTHENTIC DOCUMENT PROPERTIES MODAL (EXACT MATCH TO REF)
   ========================================================= */

.doc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#docAllListModal {
  z-index: 9999;
}

#docPropertiesModal {
  z-index: 10001;
}

.doc-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Clean, Modern, Highly-Readable Document Properties Modal */
.doc-modal-window {
  background: #ffffff;
  color: #0f172a;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 28px 22px;
  transform: scale(0.95) translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.doc-modal-overlay.open .doc-modal-window {
  transform: scale(1) translateY(0);
}

/* Header with Document Name & Badge */
.doc-modal-header {
  margin-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.doc-modal-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.doc-modal-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.doc-modal-category-badge {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 6px;
}

.doc-modal-badge-dot {
  color: #cbd5e1;
  font-size: 10px;
}

.doc-modal-badge-type {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.doc-modal-title {
  font-size: 21px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
  word-break: break-word;
}

.doc-modal-title-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.doc-modal-title-text {
  flex: 1;
}

.doc-modal-institution {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}

.doc-modal-close-icon {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 16px;
  cursor: pointer;
  color: #64748b;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.doc-modal-close-icon:hover {
  background: #fee2e2;
  border-color: #fecaca;
  color: #ef4444;
  transform: rotate(90deg);
}

/* Properties List Table */
.doc-props-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 20px;
  font-size: 13.5px;
}

.doc-props-table tr {
  transition: background-color 0.15s ease;
}

.doc-props-table tr:hover {
  background: #f8fafc;
}

.doc-props-table tr.separator-row td {
  border-bottom: 2px solid #e2e8f0;
}

.doc-props-table td {
  padding: 8px 10px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

.doc-props-table tr:last-child td {
  border-bottom: none;
}

.doc-props-table .prop-name {
  color: #64748b;
  width: 135px;
  font-weight: 500;
  font-size: 13px;
  padding-left: 4px;
}

.doc-props-table .prop-value {
  color: #0f172a;
  font-weight: 550;
  font-size: 13.5px;
  word-break: break-word;
  line-height: 1.5;
}

/* Specific Badge and Highlight styles */
.doc-props-table .producer-badge {
  display: inline-block;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.doc-props-table .doc-time-note-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}

/* Extra Verification / Anti-Tamper Notice Card */
.doc-verify-notice {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 12.5px;
  color: #166534;
  line-height: 1.5;
}

.doc-verify-notice.alert-tamper {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.doc-verify-notice-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

/* Modal Footer */
.doc-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 18px;
}

.doc-modal-copy-btn {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.doc-modal-copy-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.doc-modal-close-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  padding: 9px 26px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.18s ease;
}

.doc-modal-close-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* Empty State */
.doc-empty-state {
  text-align: center;
  padding: 30px 20px;
  color: rgba(255, 255, 255, 0.6);
  grid-column: 1 / -1;
}

.doc-empty-state svg {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  stroke: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 640px) {
  .doc-prop-title {
    font-size: 24px;
  }

  .doc-modal-window {
    padding: 20px 18px;
  }

  .doc-props-table .prop-name {
    width: 110px;
    font-size: 12.5px;
  }

  .doc-props-table .prop-value {
    font-size: 12.5px;
  }

  .doc-inspector-control-box {
    flex-direction: column;
  }

  .doc-search-wrapper,
  .doc-all-list-btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   DOCUMENT VISUAL PREVIEW & LIGHTBOX VIEWER
   ========================================================= */

.doc-sample-preview-box {
  margin-top: 18px;
  margin-bottom: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
}

.doc-sample-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-sample-preview-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.doc-sample-preview-tip {
  font-size: 11.5px;
  color: #2563eb;
  font-weight: 500;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 2px 8px;
  border-radius: 6px;
}

.doc-sample-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.doc-sample-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.doc-sample-card:hover {
  transform: translateY(-3px);
  border-color: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.doc-sample-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #f1f5f9;
  overflow: hidden;
}

.doc-sample-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.doc-sample-card:hover .doc-sample-img-wrap img {
  transform: scale(1.05);
}

.doc-sample-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.doc-sample-card:hover .doc-sample-overlay {
  opacity: 1;
}

.doc-sample-card-footer {
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.doc-sample-zoom-tag {
  color: #2563eb;
  font-size: 10px;
}

.doc-sample-preview-empty {
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  margin-top: 14px;
  margin-bottom: 16px;
  text-align: center;
}

/* FULLSCREEN IMAGE LIGHTBOX MODAL */
.doc-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.doc-lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.doc-lightbox-dialog {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 900px;
  max-height: 94vh;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  color: #ffffff;
}

.doc-lightbox-top-bar {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.doc-lightbox-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.doc-lightbox-doc-name {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-lightbox-page-indicator {
  font-size: 11.5px;
  background: rgba(0, 198, 251, 0.2);
  color: #00c6fb;
  border: 1px solid rgba(0, 198, 251, 0.4);
  padding: 2px 8px;
  border-radius: 999px;
  font-family: monospace;
}

.doc-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-lightbox-btn-icon {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 16px;
  text-decoration: none;
}

.doc-lightbox-btn-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #00c6fb;
}

.doc-lightbox-btn-icon.doc-lightbox-close:hover {
  background: #ef4444;
  color: #ffffff;
}

.doc-lightbox-img-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #020617;
  overflow: auto;
  min-height: 300px;
  max-height: 68vh;
}

.doc-lightbox-main-img {
  max-width: 100%;
  max-height: 64vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.doc-lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.doc-lightbox-nav-btn:hover {
  background: #00c6fb;
  color: #000000;
  transform: translateY(-50%) scale(1.1);
}

.doc-lightbox-nav-btn.prev {
  left: 20px;
}

.doc-lightbox-nav-btn.next {
  right: 20px;
}

.doc-lightbox-thumbnails-strip {
  display: flex;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  justify-content: center;
}

.doc-lightbox-strip-thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.doc-lightbox-strip-thumb:hover,
.doc-lightbox-strip-thumb.active {
  opacity: 1;
  border-color: #00c6fb;
  transform: scale(1.05);
}

.doc-lightbox-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
