/* Scoped Tool CSS */
.filt-wrapper {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  margin-bottom: 40px;
}

.filt-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 25px;
  font-weight: bold;
}

.filt-explanation {
  background: #e0f2fe;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 25px;
  border-left: 4px solid #0284c7;
  font-size: 14px;
  color: #0369a1;
}

.filt-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 30px;
  margin-bottom: 25px;
}

@media (max-width: 900px) {
  .filt-layout {
    grid-template-columns: 1fr;
  }
}

/* Controls Section */
.filt-controls {
  background: #f8fafc;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 700px;
  overflow-y: auto;
}

.filt-upload-btn {
  background: #4f46e5;
  color: white;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.filt-upload-btn:hover {
  background: #4338ca;
}

.filt-controls input[type="file"] {
  display: none;
}

.filt-range {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filt-range label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: bold;
  color: #334155;
  margin: 0;
}

.filt-range input[type="range"] {
  width: 100%;
  height: 6px;
  background: #cbd5e1;
  border-radius: 5px;
  outline: none;
  -webkit-appearance: none;
}

.filt-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4f46e5;
  cursor: pointer;
}

.filt-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -5px;
}

.filt-color-row input[type="color"] {
  height: 35px;
  width: 100%;
  padding: 2px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
}

/* Preview Section */
.filt-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.filt-image-container {
  background: #f1f5f9;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  position: relative;
  overflow: hidden;
}

.filt-preview-img {
  max-width: 100%;
  max-height: 450px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: filter 0.2s ease;
}

/* Presets & Actions */
.filt-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.filt-btn-preset {
  padding: 6px 12px;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: 0.2s;
}

.filt-btn-preset:hover {
  background: #e2e8f0;
}

.filt-btn-action {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  color: white;
  transition: 0.2s;
}

.filt-btn-compare {
  background: #64748b;
  flex: 1;
}

.filt-btn-compare:active {
  background: #475569;
}

.filt-btn-download {
  background: #10b981;
  flex: 1;
}

.filt-btn-download:hover {
  background: #059669;
}

/* Output Section */
.filt-output-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.filt-output-controls select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-weight: bold;
}

.filt-textarea {
  width: 100%;
  height: 200px;
  padding: 15px;
  font-family: monospace;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #1e293b;
  color: #10b981;
  resize: none;
}

.filt-btn-copy {
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.filt-btn-copy:hover {
  background: #1d4ed8;
}

/* SEO Content Styles */
.seo-content {
  margin-top: 40px;
  padding: 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.seo-content h2 {
  font-size: 24px;
  color: #1f2937;
  margin-bottom: 15px;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 10px;
}

.seo-content p {
  color: #4b5563;
  line-height: 1.6;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  font-weight: bold;
  color: #111827;
  margin-bottom: 5px;
}
