:root {
  --bg: #F9FAFB;
  --primary: #2563EB;
  --text: #111827;
  --accent: #10B981;
  --border: #E5E7EB;
  --radius: 18px;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.nf-container { max-width: 1000px; margin: auto; padding: 20px; }
.nf-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 8px 20px rgba(17,24,39,0.06);
}

/* Headings */
.nf-hero h1 { font-size: 2rem; color: var(--primary); margin: 0; }
.nf-hero p { color: #4b5563; }

/* Switch */
.nf-switch { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.nf-switch input { display: none; }
.nf-slider {
  width: 48px; height: 26px; border-radius: 999px;
  background: #d1d5db; position: relative; transition: background .3s;
}
.nf-slider::after {
  content: ''; width: 20px; height: 20px; background: white; border-radius: 999px;
  position: absolute; top: 3px; left: 3px; transition: left .3s;
}
.nf-switch input:checked + .nf-slider { background: var(--accent); }
.nf-switch input:checked + .nf-slider::after { left: 25px; }

/* Pills */
.nf-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nf-pill {
  border: 1px solid var(--primary); border-radius: 999px;
  padding: 6px 14px; color: var(--primary); font-weight: 600;
  background: #fff; cursor: pointer; transition: .2s;
}
.nf-pill.active { background: var(--primary); color: white; }

/* Advanced */
.nf-advanced summary { font-weight: 700; margin-top: 10px; cursor: pointer; }
.nf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.nf-field input { width: 100%; padding: 8px; border: 1px solid #d1d5db; border-radius: 10px; }
.nf-quality-display { color: var(--primary); font-weight: 600; }

/* Dropzone */
.nf-drop-inner {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  padding: 40px 20px;
  background: #f9fafb;
  transition: all .3s ease;
}
.nf-drop-inner.dragover { border-color: var(--primary); background: #eef2ff; }
.nf-drop-icon { width: 80px; opacity: 0.85; margin-bottom: 10px; }

/* Buttons */
.nf-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}
.nf-btn-primary { background: var(--primary); color: white; }
.nf-btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.nf-btn-outline:hover { background: #e0e7ff; }
.nf-btn-ghost {
  background: transparent;
  border: 1px dashed var(--border);
}

/* Progress Bar */
.nf-progress { margin-top: 16px; text-align: center; }
.nf-progress-text { font-weight: 600; margin-bottom: 6px; color: #374151; }
.nf-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 8px;
  background: #E5E7EB;
  overflow: hidden;
}
.nf-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--primary);
  transition: width .3s ease;
}

/* Success animation */
.nf-success {
  text-align: center;
  margin-top: 20px;
  animation: fadeIn .8s ease forwards;
}
.nf-checkmark {
  font-size: 2.5rem;
  color: var(--accent);
  animation: pop .5s ease forwards;
}
@keyframes fadeIn { from { opacity: 0; transform: scale(0.9);} to { opacity: 1; transform: scale(1);} }
@keyframes pop { 0%{transform:scale(0)} 80%{transform:scale(1.2)} 100%{transform:scale(1)} }

/* Result cards */
.nf-result-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.nf-result-info { display: flex; align-items: center; gap: 10px; }
.nf-result-info img {
  width: 60px; height: 60px; border-radius: 8px; object-fit: cover;
}
.nf-result-details { font-size: 14px; line-height: 1.3; }

@media (max-width: 640px) {
  .nf-grid { grid-template-columns: 1fr; }
  .nf-result-card { flex-direction: column; align-items: flex-start; }
}
