
/* IKF Photo Uploader — Clipping UI (matches screenshot style) */
.ikfpu{
  --ikfpu-accent: var(--ikfpu-accent, #008ec1);
  --ikfpu-border: rgba(17,24,39,.18);
  --ikfpu-soft: rgba(17,24,39,.06);
  --ikfpu-text: #111827;
  --ikfpu-muted: #6b7280;
  --ikfpu-shadow: 0 16px 45px rgba(0,0,0,.12);
  font-family: inherit;
  color: var(--ikfpu-text);
}

.ikfpu-card{
  max-width: 1040px;
  margin: 28px auto;
  background: #fff;
  border: 1px solid var(--ikfpu-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--ikfpu-shadow);
}

.ikfpu-header{
  background: var(--ikfpu-accent);
  color: #fff;
}
.ikfpu-header__title{
  padding: 12px 16px 4px;
  font-weight: 900;
  letter-spacing: .12em;
  font-size: 12px;
}
.ikfpu-header__subtitle{
  padding: 0 16px 12px;
  opacity: .95;
  font-size: 13px;
}

.ikfpu-body{ padding: 18px; }
.ikfpu-toolbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ikfpu-section-title{
  font-weight: 900;
  font-size: 16px;
}

.ikfpu-grid{
  display:grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  align-items:start;
}
@media (max-width: 920px){
  .ikfpu-grid{ grid-template-columns: 1fr; }
}

.ikfpu-canvas{
  border: 1px solid var(--ikfpu-border);
  border-radius: 12px;
  overflow:hidden;
  background: #f3f4f6;
}

.ikfpu-canvas__bar{
  background: rgba(0,142,193,.25);
  color: #0b1b2a;
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.ikfpu-info{ font-weight: 700; }

.ikfpu-stage{
  position: relative;
  background: #e5e7eb;
  min-height: 520px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.ikfpu-empty{
  text-align:center;
  z-index: 3;
}
.ikfpu-hint{
  margin-top: 8px;
  font-size: 13px;
  color: var(--ikfpu-muted);
}

#ikfpu-img{
  max-width: 100%;
  max-height: 560px;
  display:none;
  z-index: 2;
}

/* Guide overlay: dim + oval like the screenshots */
.ikfpu-dim{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.06);
  opacity: 0;
  pointer-events:none;
  z-index: 4;
}
.ikfpu-dim.is-on{ opacity: 1; }

.ikfpu-guide{
  position:absolute;
  width: 260px;
  height: 360px;
  border: 2px solid rgba(0,142,193,.9);
  background: transparent;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.12);
  z-index: 5;
  opacity: 0;
  pointer-events:none;
}
.ikfpu-guide.is-on{ opacity: 1; }
.ikfpu-guide__oval{
  position:absolute;
  inset: 18px 28px;
  border: 3px solid rgba(0,142,193,.85);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.9);
}

/* Controls */
.ikfpu-controls{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fff;
}

.ikfpu-zoomWrap{
  flex: 1 1 auto;
  display:flex;
  flex-direction: column;
  gap: 6px;
}
.ikfpu-zoomLabel{
  font-size: 12px;
  color: var(--ikfpu-muted);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Slider styled so you SEE the line */
#ikfpu-zoom{
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: linear-gradient(90deg, var(--ikfpu-accent) 0%, var(--ikfpu-accent) 35%, #d1d5db 35%, #d1d5db 100%);
  border-radius: 999px;
  outline: none;
}
#ikfpu-zoom::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ikfpu-accent);
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  cursor: pointer;
}
#ikfpu-zoom::-moz-range-thumb{
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ikfpu-accent);
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  cursor: pointer;
}
#ikfpu-zoom::-moz-range-track{
  height: 6px;
  background: #d1d5db;
  border-radius: 999px;
}

/* Actions */
.ikfpu-actions{
  display:flex;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.08);
  flex-wrap: wrap;
}

.ikfpu-preview{
  border: 1px solid var(--ikfpu-border);
  border-radius: 12px;
  overflow:hidden;
  background: #fff;
}
.ikfpu-preview__label{
  padding: 10px 12px;
  font-weight: 900;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: #f9fafb;
}
.ikfpu-preview__frame{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 420px;
  background: #fff;
}
#ikfpu-previewImg{
  max-width: 88%;
  max-height: 400px;
  display:none;
  border: 1px solid rgba(0,0,0,.14);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.ikfpu-row{ display:flex; gap: 10px; align-items:center; }
.ikfpu-label{
  display:block;
  font-size: 12px;
  color: var(--ikfpu-muted);
  margin-bottom: 6px;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-weight: 900;
}
.ikfpu-input{
  width: min(520px, 100%);
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.20);
  border-radius: 10px;
  outline:none;
  background:#fff;
}
.ikfpu-input:focus{
  border-color: rgba(0,142,193,.95);
  box-shadow: 0 0 0 4px rgba(0,142,193,.18);
}

.ikfpu-btn{
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  cursor:pointer;
  font-weight: 800;
}
.ikfpu-btn:hover{ box-shadow: 0 10px 22px rgba(0,0,0,.10); transform: translateY(-1px); }
.ikfpu-btn:active{ transform: translateY(0); }

.ikfpu-btn--primary{
  background: var(--ikfpu-accent);
  color:#fff;
  border-color: rgba(0,142,193,.95);
}
.ikfpu-btn--warn{
  background: #f59e0b;
  color:#111827;
  border-color: rgba(245,158,11,.95);
}

.ikfpu-msg{
  padding: 10px 12px 0;
  min-height: 22px;
  color: var(--ikfpu-muted);
}
.ikfpu-msg.is-bad{ color: #b91c1c; font-weight: 900; }
.ikfpu-msg.is-good{ color: #047857; font-weight: 900; }

.ikfpu-foot{
  margin-top: 12px;
  color: var(--ikfpu-muted);
  font-size: 13px;
  display:flex;
  align-items:center;
  gap: 10px;
}
.ikfpu-dot{
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ikfpu-accent);
}


/* Meta fields (Country + Name) */
.ikfpu-meta{
  padding: 12px 16px 0 16px;
}
.ikfpu-meta__row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 860px){
  .ikfpu-meta__row{ grid-template-columns: 1fr; }
}
.ikfpu-meta__hint{
  margin-top: 8px;
  font-size: 12px;
  color: var(--ikfpu-muted);
}
.ikfpu-meta__hint code{
  background: rgba(0,0,0,.06);
  padding: 2px 6px;
  border-radius: 8px;
}

/* Reduce confusion: hide Cropper's crop box UI; user adjusts only by drag + zoom + rotate */
.ikfpu .cropper-crop-box,
.ikfpu .cropper-view-box{
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
.ikfpu .cropper-line,
.ikfpu .cropper-point,
.ikfpu .cropper-face{
  display: none !important;
}
