/* ==========================================================================
   Slikyface Digital Signature Requests — Organizer Styles
   Slikyface.com · ATOP CREATIONS
   ========================================================================== */

:root {
  --signer-1-color: #b8ff36;
  --signer-1-bg: rgba(184, 255, 54, 0.12);
  --signer-1-border: rgba(184, 255, 54, 0.6);

  --signer-2-color: #38bdf8;
  --signer-2-bg: rgba(56, 189, 248, 0.12);
  --signer-2-border: rgba(56, 189, 248, 0.6);

  --signer-3-color: #f59e0b;
  --signer-3-bg: rgba(245, 158, 11, 0.12);
  --signer-3-border: rgba(245, 158, 11, 0.6);
}

.sigtool-hero {
  padding: 40px 0 24px;
  text-align: center;
}

.sigtool-title {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 950;
  letter-spacing: -0.04em;
  margin: 10px 0 8px;
  color: #ffffff;
}
.sigtool-title span { color: var(--lime); }

.sigtool-sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.legal-badge-card {
  background: rgba(184, 255, 54, 0.05);
  border: 1px solid rgba(184, 255, 54, 0.25);
  border-radius: 10px;
  padding: 12px 18px;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  font-size: 12px;
  color: #c7d8c3;
  line-height: 1.45;
}
.legal-badge-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.legal-badge-body strong {
  display: block;
  color: var(--lime);
  margin-bottom: 2px;
  font-size: 12.5px;
}

/* Auth Gate Banner */
.auth-gate-box {
  background: #0d170c;
  border: 1px solid #1f3319;
  border-radius: 14px;
  padding: 36px 24px;
  text-align: center;
  max-width: 540px;
  margin: 40px auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.auth-gate-icon { font-size: 44px; margin-bottom: 12px; }
.auth-gate-content h3 { font-size: 20px; color: #ffffff; margin: 0 0 8px; }
.auth-gate-content p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0 0 20px; }

/* Workspace Tabs Bar */
.workspace-tabs-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid #1a2c16;
  padding-bottom: 12px;
}

.quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: #0c150b;
  border: 1px solid #1b2f18;
  padding: 5px 12px;
  border-radius: 16px;
}
.quota-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  display: inline-block;
}

/* Dashboard Filter Pills */
.dashboard-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-pill {
  background: #0f180e;
  border: 1px solid #1f3319;
  color: #aab9a2;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-pill:hover {
  border-color: rgba(184,255,54,0.4);
  color: #ffffff;
}
.filter-pill.active {
  background: rgba(184,255,54,0.15);
  border-color: var(--lime);
  color: var(--lime);
}

/* Requests Grid & Cards */
.requests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.req-card {
  background: linear-gradient(145deg, #0e180d 0%, #080f07 100%);
  border: 1px solid #1f3319;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.req-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184,255,54,0.45);
}

.req-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}
.req-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1.35;
}
.req-card-meta {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.req-status-pill {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 12px;
  display: inline-block;
}
.status-draft { background: rgba(156,163,175,0.15); color: #9ca3af; border: 1px solid rgba(156,163,175,0.3); }
.status-pending { background: rgba(56,189,248,0.15); color: #38bdf8; border: 1px solid rgba(56,189,248,0.3); }
.status-partially_signed { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.status-completed { background: rgba(184,255,54,0.15); color: var(--lime); border: 1px solid rgba(184,255,54,0.3); }
.status-declined { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.status-canceled { background: rgba(156,163,175,0.15); color: #9ca3af; border: 1px solid rgba(156,163,175,0.3); }
.status-expired { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

.req-signers-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 12px;
  color: #c7d8c3;
}
.progress-bar-bg {
  flex: 1;
  height: 6px;
  background: #142211;
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--lime);
  transition: width 0.3s ease;
}

.req-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid #142211;
  padding-top: 12px;
  margin-top: 6px;
}
.btn-action-small {
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #1f3319;
  background: #0f180e;
  color: #c7d8c3;
  transition: all 0.2s ease;
}
.btn-action-small:hover {
  background: #192a18;
  color: #ffffff;
  border-color: rgba(184,255,54,0.4);
}
.btn-action-primary {
  background: var(--lime);
  color: #081007;
  border-color: var(--lime);
}
.btn-action-primary:hover {
  background: #c7ff59;
}

/* Wizard Stepper */
.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 8px;
}
.step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 20px;
  background: #0c150b;
  border: 1px solid #192a18;
}
.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1a2a16;
  color: #aab9a2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.step-node.active {
  color: #ffffff;
  background: rgba(184,255,54,0.12);
  border-color: var(--lime);
}
.step-node.active .step-num {
  background: var(--lime);
  color: #081007;
  font-weight: 900;
}
.step-node.done {
  color: #aab9a2;
}
.step-node.done .step-num {
  background: #243d1f;
  color: var(--lime);
}
.step-line {
  width: 24px;
  height: 2px;
  background: #192a18;
}

/* Wizard Step Content Card */
.step-card {
  background: #0c150b;
  border: 1px solid #1f3319;
  border-radius: 14px;
  padding: 28px;
  max-width: 860px;
  margin: 0 auto;
}
.step-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
}
.step-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 20px;
}

.retention-notice {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: #fde68a;
  line-height: 1.45;
}
.notice-icon { font-size: 18px; flex-shrink: 0; }

/* Drop Zone */
.drop-zone {
  border: 2px dashed #243c1f;
  border-radius: 12px;
  padding: 44px 20px;
  text-align: center;
  cursor: pointer;
  background: #070e06;
  transition: all 0.2s ease;
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--lime);
  background: rgba(184,255,54,0.04);
}
.drop-icon { font-size: 38px; margin-bottom: 12px; }
.drop-primary { font-size: 14px; font-weight: 700; color: #ffffff; margin-bottom: 4px; }
.drop-secondary { font-size: 12px; color: var(--muted); }
.btn-link {
  background: transparent;
  border: none;
  color: var(--lime);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Signers List Builder */
.signer-row-card {
  background: #080f07;
  border: 1px solid #1a2a16;
  border-radius: 10px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr 1fr auto auto;
  gap: 12px;
  align-items: center;
}
@media (max-width: 768px) {
  .signer-row-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
.signer-tag-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
}
.signer-tag-1 { background: var(--signer-1-bg); color: var(--signer-1-color); border: 1px solid var(--signer-1-border); }
.signer-tag-2 { background: var(--signer-2-bg); color: var(--signer-2-color); border: 1px solid var(--signer-2-border); }
.signer-tag-3 { background: var(--signer-3-bg); color: var(--signer-3-color); border: 1px solid var(--signer-3-border); }

/* Field Placement Visual Editor */
.editor-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  background: #070d07;
  border: 1px solid #1a2916;
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }
}

.editor-sidebar {
  background: #0b140a;
  border-right: 1px solid #1a2916;
  padding: 18px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 900px) {
  .editor-sidebar {
    border-right: none;
    border-bottom: 1px solid #1a2916;
  }
}

.signer-switch-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.signer-switch-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #1f3319;
  background: #0f180e;
  font-size: 12px;
  font-weight: 700;
  color: #aab9a2;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}
.signer-switch-btn.active.signer-btn-1 {
  background: var(--signer-1-bg);
  border-color: var(--signer-1-color);
  color: var(--signer-1-color);
}
.signer-switch-btn.active.signer-btn-2 {
  background: var(--signer-2-bg);
  border-color: var(--signer-2-color);
  color: var(--signer-2-color);
}
.signer-switch-btn.active.signer-btn-3 {
  background: var(--signer-3-bg);
  border-color: var(--signer-3-color);
  color: var(--signer-3-color);
}

.sidebar-divider {
  height: 1px;
  background: #172614;
  margin: 16px 0;
}

.field-palette {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.palette-item {
  background: #0f1a0e;
  border: 1px solid #1e3318;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: grab;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  user-select: none;
}
.palette-item:hover {
  background: #152414;
  border-color: rgba(184,255,54,0.4);
}
.palette-icon { font-size: 18px; }
.palette-item strong { display: block; font-size: 12px; color: #ffffff; }
.palette-item small { display: block; font-size: 10.5px; color: var(--muted); }

.placed-list {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.placed-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #080f07;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: #c7d8c3;
}

/* Editor Viewport & Canvas */
.editor-viewport {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #050905;
  overflow-x: auto;
}

.viewport-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 760px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.page-nav-group, .zoom-nav-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tool-btn {
  background: #0f1a0e;
  border: 1px solid #1e3318;
  color: #c7d8c3;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tool-btn:hover {
  background: #192a18;
  border-color: var(--lime);
  color: #ffffff;
}

.pdf-canvas-wrapper {
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  border: 1px solid #233e1c;
  border-radius: 4px;
  background: #ffffff;
  display: inline-block;
}

#pdf-render-canvas {
  display: block;
  max-width: 100%;
}

.fields-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

/* Placed Field Overlay Elements */
.field-box {
  position: absolute;
  box-sizing: border-box;
  border-radius: 4px;
  cursor: move;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px;
  user-select: none;
  font-size: 10.5px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: box-shadow 0.15s ease;
}
.field-box.signer-1 {
  border: 2px solid var(--signer-1-color);
  background: var(--signer-1-bg);
  color: #081007;
}
.field-box.signer-2 {
  border: 2px solid var(--signer-2-color);
  background: var(--signer-2-bg);
  color: #0c4a6e;
}
.field-box.signer-3 {
  border: 2px solid var(--signer-3-color);
  background: var(--signer-3-bg);
  color: #78350f;
}

.field-box-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.field-type-pill {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.field-del-btn {
  pointer-events: auto;
  background: rgba(0,0,0,0.4);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.field-label-preview {
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  pointer-events: none;
  margin: auto 0;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.modal-box {
  background: #0c150b;
  border: 1px solid #233e1c;
  border-radius: 14px;
  max-width: 580px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 0 35px rgba(184,255,54,0.15);
  color: #ffffff;
  position: relative;
  margin: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}

.share-link-card {
  background: #070e06;
  border: 1px solid #1a2916;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.share-link-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.share-link-input-row {
  display: flex;
  gap: 8px;
}
.share-link-input {
  flex: 1;
  background: #0d170c;
  border: 1px solid #243d1f;
  border-radius: 6px;
  color: #d1ebd0;
  font-size: 11.5px;
  font-family: monospace;
  padding: 6px 10px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  background: #080f07;
  border: 1px solid #1a2a16;
  border-radius: 8px;
  padding: 14px;
}
.review-block label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}
.review-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review-signer-row {
  background: #080f07;
  border: 1px solid #1a2a16;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
