/* InstantConvert v3.0 — freeconvert-style tool design (light theme) */

.icf {
  font-family: inherit;
  color: #1e293b;
  max-width: 760px;
  margin: 0 auto;
}

/* ---------- Drop zone ---------- */
.icf-drop {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  padding: 52px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.icf-drop:hover,
.icf-drop.is-dragover {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .08);
}
.icf-upload-icon {
  margin-bottom: 18px;
}
.icf-drop-text {
  margin: 14px 0 6px;
  color: #475569;
  font-size: 15px;
}
.icf-drop-limits {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

/* ---------- Buttons ---------- */
.icf-btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  font-family: inherit;
  transition: background .15s ease, transform .1s ease;
}
.icf-btn:active {
  transform: translateY(1px);
}
.icf-btn-primary {
  background: #2563eb;
  color: #fff;
  padding: 14px 44px;
  font-size: 17px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .35);
}
.icf-btn-primary:hover {
  background: #1d4ed8;
  color: #fff;
}

/* ---------- File list ---------- */
.icf-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.icf-file {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  position: relative;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}
.icf-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f5f9;
  flex: none;
  border: 1px solid #e2e8f0;
}
.icf-finfo {
  flex: 1;
  min-width: 0;
}
.icf-fname {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.icf-fsize {
  color: #64748b;
  font-size: 13px;
  margin-top: 2px;
}
.icf-fto {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
  flex: none;
}
.icf-fformat {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 10px;
  font-weight: 700;
  font-size: 14px;
  color: #1d4ed8;
  background: #eff6ff;
  cursor: pointer;
  font-family: inherit;
}
.icf-fformat:hover {
  border-color: #2563eb;
}
.icf-iconbtn {
  border: none;
  background: #f1f5f9;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #64748b;
  flex: none;
  padding: 0;
}
.icf-iconbtn:hover {
  background: #fee2e2;
  color: #dc2626;
}
.icf-fresult {
  flex: none;
  display: flex;
  align-items: center;
}

/* ---------- Action bar ---------- */
.icf-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 14px;
  flex-wrap: wrap;
}
.icf-bar-left {
  display: flex;
  gap: 10px;
  align-items: center;
}
.icf-btn-ghost {
  background: #f1f5f9;
  color: #334155;
  padding: 11px 18px;
  font-size: 14px;
}
.icf-btn-ghost:hover {
  background: #e2e8f0;
}
.icf-quality-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}
.icf-quality-wrap input[type="range"] {
  width: 130px;
  accent-color: #2563eb;
  cursor: pointer;
}
.icf-quality-wrap span {
  min-width: 24px;
  text-align: right;
  color: #1e293b;
}
.icf-btn-convert {
  background: #2563eb;
  color: #fff;
  padding: 14px 46px;
  font-size: 17px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .35);
}
.icf-btn-convert:hover:not(:disabled) {
  background: #1d4ed8;
}
.icf-btn-convert:disabled {
  opacity: .6;
  cursor: wait;
}

/* ---------- Results ---------- */
.icf-btn-dl {
  background: #16a34a;
  color: #fff;
  padding: 10px 22px;
  font-size: 14px;
  white-space: nowrap;
}
.icf-btn-dl:hover {
  background: #15803d;
  color: #fff;
}
.icf-dlall {
  margin-top: 18px;
  text-align: center;
}
.icf-btn-dlall {
  background: #16a34a;
  color: #fff;
  padding: 14px 42px;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, .3);
}
.icf-btn-dlall:hover {
  background: #15803d;
  color: #fff;
}
.icf-ferr {
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Per-file progress ---------- */
.icf-fprog {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}
.icf-fprog > div {
  height: 100%;
  width: 40%;
  background: #2563eb;
  border-radius: 4px;
  animation: icf-slide 1.1s infinite ease-in-out;
}
@keyframes icf-slide {
  0% { margin-left: -40%; }
  100% { margin-left: 100%; }
}

/* ---------- Status / privacy ---------- */
.icf-status {
  text-align: center;
  color: #475569;
  font-size: 14px;
  min-height: 1.6em;
  margin: 14px 0 0;
}
.icf-privacy {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  margin: 8px 0 0;
}

/* ---------- URL import ---------- */
.icf-urlimport {
  margin-top: 14px;
  text-align: center;
}
.icf-linkbtn {
  background: none;
  border: none;
  padding: 0;
  color: #2563eb;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.icf-linkbtn:hover {
  text-decoration: underline;
}
.icf-urlrow {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.icf-urlrow input[type="url"] {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #1e293b;
  min-width: 0;
}
.icf-urlrow input[type="url"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

/* ---------- Cloud import ---------- */
.icf-cloud {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.icf-cloud-label {
  font-size: 13px;
  color: #94a3b8;
}
.icf-cloudbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.icf-cloudbtn:hover {
  border-color: #2563eb;
  color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}
.icf-cloudbtn svg {
  flex: none;
}

/* ---------- Resize tool controls (v1.3) ---------- */
.icf-resize-ctrls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: #475569;
}
.icf-resize-ctrls label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.icf-resize-ctrls input[type="number"] {
  width: 84px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  color: #1e293b;
}
.icf-resize-ctrls input[type="number"]:focus,
.icf-resize-ctrls select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.icf-resize-ctrls select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  color: #1e293b;
  background: #fff;
}
.icf-x {
  color: #94a3b8;
  font-size: 16px;
}
.icf-lock {
  white-space: nowrap;
}

/* ---------- Related tools interlinking block (v1.3) ---------- */
.icf-related {
  margin: 48px auto 0;
  max-width: 760px;
}
.icf-related-title {
  font-size: 22px;
  text-align: center;
  margin: 0 0 18px;
  color: #1e293b;
}
.icf-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.icf-related-card {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.icf-related-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .12);
  transform: translateY(-2px);
}
.icf-related-label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: #1e293b;
  margin-bottom: 4px;
}
.icf-related-desc {
  display: block;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .icf-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .icf-drop {
    padding: 40px 18px;
  }
  .icf-file {
    flex-wrap: wrap;
    gap: 10px;
  }
  .icf-finfo {
    flex: 1 1 calc(100% - 130px);
  }
  .icf-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .icf-bar-left {
    justify-content: center;
  }
  .icf-quality-wrap {
    justify-content: center;
  }
  .icf-btn-convert {
    width: 100%;
  }
}
