
.docoply-ir35 {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --accent: #0EA5E9;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --neutral-900: #0F172A;
  --neutral-700: #334155;
  --neutral-500: #64748B;
  --neutral-100: #F1F5F9;
  --light-bg: #F8FAFC;
  --border: #E2E8F0;
  --border-light: #93C5FD;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--neutral-700);
  line-height: 1.6;
}
.docoply-ir35 * { box-sizing: border-box; }

.docoply-ir35.dropzone-only .upload-container {
  max-width: 780px; margin: 0 auto;
  background: #fff; padding: 28px; border-radius: 16px;
  border: 2px dashed var(--border-light); text-align: center;
  transition: all .25s ease; box-shadow: 0 2px 12px rgba(15,23,42,.06);
  position: relative;
}
.docoply-ir35.dropzone-only .upload-container:hover { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.08); }
.docoply-ir35.dropzone-only .upload-icon { font-size: 44px; color: var(--primary); margin-bottom: 10px; }
.docoply-ir35.dropzone-only .upload-text { font-size: 16px; font-weight: 600; color: var(--neutral-900); margin-bottom: 6px; }
.docoply-ir35.dropzone-only .upload-subtext { font-size: 13px; color: var(--neutral-500); margin-bottom: 16px; }

.docoply-ir35 .btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:16px 32px; border-radius:999px; border:2px solid var(--primary);
  background: transparent; color: var(--primary); font-weight:600; text-decoration:none;
  cursor:pointer; transition: all .2s ease; min-height:44px;
}
.docoply-ir35 .btn:hover { background: var(--primary); color:#fff; }
.docoply-ir35 .btn[disabled] { opacity:.6; cursor:not-allowed; }

.docoply-ir35 .upload-progress {
  position: absolute; inset: 0; display: none; align-items:center; justify-content:center;
  background: rgba(255,255,255,.85); border-radius: 14px; font-weight: 600;
}
.docoply-ir35 .upload-progress::before {
  content: ''; width: 22px; height: 22px; border: 3px solid rgba(15,23,42,.15);
  border-top-color: var(--primary); border-radius: 50%; display:inline-block; margin-right:10px;
  animation: docoply-spin 1s linear infinite;
}
@keyframes docoply-spin { to { transform: rotate(360deg); } }

.docoply-ir35 .analysis-report { margin-top: 20px; }
.docoply-ir35 .analysis-card { background: #fff; padding: 24px; border-radius: 12px; border:1px solid var(--border); }
.docoply-ir35 .analysis-head { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom: 16px; }
.docoply-ir35 .file-pill { display:inline-flex; align-items:center; gap:8px; padding:6px 12px; border-radius:999px; background: var(--light-bg); color: var(--neutral-700); font-size: 13px; font-weight: 600; }
.docoply-ir35 .file-pill i { font-size: 14px; color: var(--primary); }
.docoply-ir35 .badge { display:inline-flex; align-items:center; gap:6px; padding:4px 12px; border-radius:999px; font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.4px; }
.docoply-ir35 .badge-green { background: rgba(16,185,129,0.1); color: var(--success); }
.docoply-ir35 .badge-amber { background: rgba(245,158,11,0.1); color: var(--warning); }
.docoply-ir35 .badge-red { background: rgba(239,68,68,0.1); color: var(--danger); }
.docoply-ir35 .analysis-tabs { margin-top: 16px; }
.docoply-ir35 .tab-nav { display:flex; border-bottom:1px solid var(--border); margin-bottom:16px; }
.docoply-ir35 .tab-btn { background:none; border:none; padding:12px 18px; font-size:15px; font-weight:600; color:var(--neutral-500); cursor:pointer; border-bottom:2px solid transparent; }
.docoply-ir35 .tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.docoply-ir35 .tab-content { display:none; }
.docoply-ir35 .tab-content.active { display:block; }
.docoply-ir35 .metric-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap:12px; }
.docoply-ir35 .metric { text-align:center; padding:12px; background:var(--light-bg); border-radius:8px; }
.docoply-ir35 .metric .value { font-size:22px; font-weight:800; }
.docoply-ir35 .metric .label { font-size:12px; color:var(--neutral-500); }

.docoply-ir35 .finding { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px; background:var(--light-bg); border-radius:8px; }
.docoply-ir35 .finding + .finding { margin-top: 10px; }
.docoply-ir35 .rec-list { list-style:none; padding:0; margin:0; }
.docoply-ir35 .rec { display:flex; gap:12px; align-items:flex-start; margin-bottom:12px; }
.docoply-ir35 .rec i { color: var(--warning); margin-top: 4px; }

.docoply-ir35 .wp-media-buttons,
.docoply-ir35 .media-modal,
.docoply-ir35 .uploader-inline .browser .button { display:none !important; }
/* Outline/secondary button for print */
.docoply-ir35 .btn-outline {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 18px; border-radius:999px; border:2px solid var(--border);
  background:#fff; color: var(--neutral-700); font-weight:600; text-decoration:none;
  cursor:pointer; transition: all .2s ease; min-height:40px;
}
.docoply-ir35 .btn-outline:hover {
  background: var(--neutral-100); border-color: var(--primary); color: var(--primary);
}
.docoply-ir35 .print-actions { margin-left:auto; display:flex; gap:10px; flex-wrap:wrap; }

/* Hover + drag-over feedback on dropzone */
.docoply-ir35 .upload-container{
  border:2px dashed var(--border-light);
  transition: background .2s ease, border-color .2s ease, transform .1s ease;
  cursor:pointer;
}
.docoply-ir35 .upload-container:hover{
  border-color: var(--primary);
  background: rgba(37,99,235,0.02);
}
.docoply-ir35 .upload-container.drag-over{
  border-color: var(--primary);
  background: rgba(37,99,235,0.06);
  transform: scale(0.998);
}

/* Outline button (download) */
.docoply-ir35 .btn-outline {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 18px; border-radius:999px; border:2px solid var(--border);
  background:#fff; color: var(--neutral-700); font-weight:600; text-decoration:none;
  cursor:pointer; transition: all .2s ease; min-height:40px;
}
.docoply-ir35 .btn-outline:hover {
  background: var(--neutral-100); border-color: var(--primary); color: var(--primary);
}
.docoply-ir35 .print-actions { margin-left:auto; display:flex; gap:10px; flex-wrap:wrap; }

/* --- Section spacing for the analysis card --- */
.docoply-ir35 .analysis-card { padding: 24px; }

.docoply-ir35 .analysis-head { display:flex; gap: 16px; align-items:center; margin-bottom: 24px; }

.docoply-ir35 .analysis-tabs .tab-nav { margin-bottom: 16px; }

/* Give each content panel some inner padding and separation */
.docoply-ir35 .analysis-tabs .tab-content {
  padding: 16px 14px;
  background: #fff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 10px;
}

/* Space between the sections themselves */
.docoply-ir35 .analysis-tabs .tab-content + .tab-content { margin-top: 24px; }

/* Space within sections */
.docoply-ir35 .metric-grid { margin-bottom: 16px; }
.docoply-ir35 .finding     { margin-bottom: 10px; }
.docoply-ir35 .rec-list    { margin-top: 10px; }
.docoply-ir35 .rec         { margin-bottom: 10px; }

/* Optional: tidy the disclaimer block if you keep it */
.docoply-ir35 .disclaimer {
  background: rgba(37,99,235,0.05);
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid var(--primary, #2563eb);
  margin-top: 16px;
}

/* Evidence Appendix */
.section.evidence-appendix{ margin-top:24px; }
.section.evidence-appendix h2{ font-size:16px; margin:0 0 8px 0; }
.section.evidence-appendix .subtle{ color:var(--neutral-500); font-size:12px; margin:0 0 10px 0; }
.section.evidence-appendix .table-wrap{ overflow:auto; }
.evidence-table{ width:100%; border-collapse:collapse; font-size:12px; }
.evidence-table th,.evidence-table td{ border-top:1px solid #e5e7eb; padding:6px 8px; text-align:left; vertical-align:top; }
.evidence-table thead th{ background:#f3f4f6; border-top:0; }

/* CEST Draft */
.section.cest-draft{ margin-top:24px; }
.section .btn-row{ display:flex; gap:8px; margin-top:10px; }
.section .button{ border:1px solid #e5e7eb; background:#fff; padding:8px 10px; border-radius:8px; cursor:pointer; }
.section .button.button-primary{ background:#111827; color:#fff; }
.section .button:hover{ opacity:.9; }
