/* ==========================================================================
   AUXILIARY CMS & DASHBOARD - FORMS, TEMPLATES & DOCUMENT READER STYLES
   Universal Document Reader for PDF, Office (Excel/CSV/Word), and Images
   ========================================================================== */

/* --- 1. FORMS & TEMPLATES GRID (CMS & Main Dashboard) --- */
.forms-management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.form-card-rich {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: var(--radius-lg, 14px);
  padding: 22px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.22s ease-in-out;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.form-card-rich:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.1), 0 4px 8px -4px rgba(15, 23, 42, 0.06);
  border-color: #cbd5e1;
}

.form-card-rich::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7ec31e, #16a34a);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.form-card-rich:hover::before {
  opacity: 1;
}

/* Format Accent Strips */
.form-card-rich[data-filetype="pdf"]::before { background: linear-gradient(90deg, #ef4444, #dc2626); }
.form-card-rich[data-filetype="office"]::before { background: linear-gradient(90deg, #10b981, #059669); }
.form-card-rich[data-filetype="image"]::before { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
.form-card-rich[data-filetype="interactive"]::before { background: linear-gradient(90deg, #f59e0b, #d97706); }

/* Card Header */
.form-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.form-type-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.form-card-rich[data-filetype="pdf"] .form-type-icon-wrapper {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
}
.form-card-rich[data-filetype="office"] .form-type-icon-wrapper {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #d1fae5;
}
.form-card-rich[data-filetype="image"] .form-type-icon-wrapper {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ede9fe;
}
.form-card-rich[data-filetype="interactive"] .form-type-icon-wrapper {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fef3c7;
}

.form-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.form-badge-format {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-pdf { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.badge-office { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.badge-image { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.badge-interactive { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.badge-code { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; font-family: monospace; font-weight: 700; }
.badge-category { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }

/* Card Content */
.form-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 6px 0;
}

.form-card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

/* Meta Pill Box */
.form-meta-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.form-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-meta-filename {
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

/* Card Actions */
.form-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.btn-form-read {
  flex: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-form-read:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-form-edit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-form-edit:hover {
  background: #dbeafe;
}

.btn-form-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-form-fill:hover {
  background: #dcfce7;
}

.btn-form-icon-action {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.btn-form-icon-action:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.btn-form-icon-action.danger:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

/* --- 2. STATS & TOOLBAR STRIP --- */
.forms-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.forms-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.forms-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.forms-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.forms-stat-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

/* Toolbar */
.forms-toolbar {
  position: relative;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.forms-toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.forms-search-box {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 360px;
  z-index: 5;
}

.forms-search-box input {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 9px 12px 9px 34px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 13.5px;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}

.forms-search-box input:focus {
  background: #ffffff;
  border-color: #7ec31e;
  box-shadow: 0 0 0 3px rgba(126, 195, 30, 0.15);
}

.forms-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
}

.forms-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.forms-pill-btn {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.forms-pill-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.forms-pill-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.forms-pill-btn.active.primary {
  background: #166534;
  color: #ffffff;
  border-color: #166534;
}

/* ==================== 3. UNIVERSAL DOCUMENT READER MODAL ==================== */
.doc-reader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.doc-reader-overlay.active {
  display: flex;
}

.doc-reader-dialog {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.doc-reader-dialog.fullscreen {
  max-width: 100vw;
  height: 100vh;
  border-radius: 0;
}

/* Reader Top Header */
.doc-reader-header {
  padding: 14px 20px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.doc-reader-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.doc-reader-icon {
  font-size: 24px;
}

.doc-reader-title-text h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}

.doc-reader-title-text p {
  font-size: 11.5px;
  color: #94a3b8;
  margin: 2px 0 0 0;
}

/* Reader Toolbar */
.doc-reader-toolbar {
  padding: 8px 18px;
  background: #1e293b;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  border-bottom: 1px solid #334155;
  flex-shrink: 0;
}

.doc-toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.doc-tool-btn {
  background: #334155;
  color: #f8fafc;
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.doc-tool-btn:hover {
  background: #475569;
  color: #ffffff;
}

.doc-tool-btn.active {
  background: #7ec31e;
  color: #0f172a;
  border-color: #7ec31e;
}

/* Reader Main Viewport */
.doc-reader-viewport {
  flex: 1;
  overflow: auto;
  position: relative;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
}

/* --- A. PDF Frame View --- */
.doc-pdf-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.doc-pdf-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #525659;
}

/* --- B. Office Excel / CSV Spreadsheet View --- */
.doc-sheet-container {
  padding: 20px;
  overflow: auto;
  flex: 1;
}

.doc-sheet-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.doc-sheet-searchbar {
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.doc-sheet-searchbar input {
  max-width: 320px;
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.doc-sheet-table-wrap {
  overflow-x: auto;
  max-height: calc(90vh - 200px);
}

.doc-spreadsheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.doc-spreadsheet-table th {
  background: #0f172a;
  color: #f8fafc;
  padding: 10px 14px;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 2;
  border-right: 1px solid #1e293b;
  white-space: nowrap;
}

.doc-spreadsheet-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  color: #1e293b;
  white-space: nowrap;
}

.doc-spreadsheet-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.doc-spreadsheet-table tbody tr:hover {
  background: #f0fdf4;
}

.doc-spreadsheet-table td.row-num {
  background: #f1f5f9;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  width: 45px;
  font-family: monospace;
}

/* --- C. Office Word Document View --- */
.doc-word-container {
  padding: 40px 20px;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  background: #e2e8f0;
  flex: 1;
}

.doc-word-page {
  background: #ffffff;
  width: 100%;
  max-width: 820px;
  min-height: 980px;
  padding: 50px 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  color: #1e293b;
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
}

.doc-word-page h1 {
  color: #166534;
  font-size: 20px;
  border-bottom: 2px solid #22c55e;
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.doc-word-page .doc-header-meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
}

.doc-word-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 13.5px;
}

.doc-word-page th,
.doc-word-page td {
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  text-align: left;
}

.doc-word-page th {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
}

/* --- D. Image / Diagram Canvas Pan & Zoom --- */
.doc-image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: #0b1120;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  cursor: grab;
}

.doc-image-container.grabbing {
  cursor: grabbing;
}

.doc-image-container.theme-light {
  background: #f8fafc;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 20px 20px;
}

.doc-image-stage {
  transition: transform 0.08s ease-out;
  transform-origin: center center;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-image-stage img,
.doc-image-stage svg {
  max-width: 90vw;
  max-height: 80vh;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  pointer-events: none;
}

.doc-image-zoom-pill {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

/* ==================== 4. FORM CUSTOMIZER & BUILDER MODAL ==================== */
.form-customizer-dialog {
  max-width: 960px;
  width: 95%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.form-customizer-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0 20px;
}

.form-customizer-tab-btn {
  padding: 12px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  font-size: 13.5px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-customizer-tab-btn:hover {
  color: #0f172a;
}

.form-customizer-tab-btn.active {
  color: #166534;
  border-bottom-color: #22c55e;
  background: #ffffff;
}

.form-customizer-pane {
  display: none;
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.form-customizer-pane.active {
  display: block;
}

/* Field Builder Card Rows */
.field-builder-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.field-builder-row {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.field-builder-row:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.field-drag-handle {
  cursor: grab;
  color: #94a3b8;
  font-size: 16px;
}

.field-info-group {
  flex: 1;
  min-width: 0;
}

.field-label-text {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-meta-tags {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  font-size: 11.5px;
}

.tag-field-type {
  background: #f1f5f9;
  color: #475569;
  padding: 1px 7px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 600;
}

.tag-field-required {
  background: #fef2f2;
  color: #dc2626;
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 600;
}

/* File Drop Zone */
.form-file-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-file-dropzone:hover,
.form-file-dropzone.dragover {
  border-color: #7ec31e;
  background: #f0fdf4;
}

.form-file-dropzone-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

/* ==================== 5. FORM FILLER MODAL ==================== */
.form-filler-dialog {
  max-width: 680px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.form-filler-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-filler-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-filler-field label {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.form-filler-field .required-star {
  color: #dc2626;
  margin-left: 2px;
}

.form-filler-field input[type="text"],
.form-filler-field input[type="number"],
.form-filler-field input[type="date"],
.form-filler-field input[type="time"],
.form-filler-field select,
.form-filler-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.form-filler-field input:focus,
.form-filler-field select:focus,
.form-filler-field textarea:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.form-filler-field textarea {
  min-height: 80px;
  resize: vertical;
}

.form-filler-field .field-help {
  font-size: 11.5px;
  color: #64748b;
}

/* ==================== 6. SUBMISSIONS MODAL & LOG ==================== */
.submissions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.submissions-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 10px 14px;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}

.submissions-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.submission-status-badge {
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
}
.status-approved { background: #dcfce7; color: #15803d; }
.status-pending { background: #fef9c3; color: #854d0e; }
.status-active { background: #eff6ff; color: #1d4ed8; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .forms-management-grid {
    grid-template-columns: 1fr;
  }
  .doc-reader-dialog {
    max-width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
  .doc-reader-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .forms-bulk-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .forms-bulk-right {
    justify-content: flex-end;
  }
  .btn-bulk-delete {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   FORMS & TEMPLATES CMS BULK MULTI-SELECT & BATCH DELETION
   ========================================================================== */
.forms-bulk-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 18px;
  margin-top: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.forms-bulk-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cms-bulk-select-all-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 13.5px;
  color: #1e293b;
}

.cms-bulk-select-all-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #dc2626;
}

.forms-bulk-counter-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  transition: all 0.15s ease;
}

.forms-bulk-counter-pill.has-selected {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
  font-weight: 700;
}

.btn-bulk-text {
  background: none;
  border: none;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.btn-bulk-text:hover {
  color: #0f172a;
}

.forms-bulk-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-bulk-delete {
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #b91c1c;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.2);
  transition: all 0.15s ease;
}

.btn-bulk-delete:hover:not(:disabled) {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.28);
}

.btn-bulk-delete:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Card Selection Wrapper & Checkbox */
.form-card-select-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0;
  padding: 2px;
}

.cms-form-select-cb {
  width: 19px;
  height: 19px;
  cursor: pointer;
  accent-color: #dc2626;
  border-radius: 4px;
  transition: transform 0.15s ease;
}

.cms-form-select-cb:hover {
  transform: scale(1.15);
}

/* Form Card Selected State */
.form-card-rich.selected-for-bulk {
  border-color: #f43f5e !important;
  background-color: #fff8f8 !important;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.3), 0 6px 16px rgba(244, 63, 94, 0.1) !important;
}

.form-card-rich.selected-for-bulk::before {
  opacity: 1 !important;
  background: linear-gradient(90deg, #f43f5e, #dc2626) !important;
}
