/* Scoped Tool CSS */
.tf-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;
}

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

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

.tf-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 30px;
  margin-bottom: 25px;
}

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

/* Controls */
.tf-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  padding: 20px;
  border-radius: 10px;
}

.tf-group label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: bold;
  color: #334155;
  margin-bottom: 5px;
}

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

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

/* Preview */
.tf-preview-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 450px;
  background: #f1f5f9;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  perspective: 600px;
}

.tf-box {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  font-weight: bold;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

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

.transform-wrapper {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.transform-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.transform-explanation {
  color: #6b7280;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.transform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .transform-grid {
    grid-template-columns: 1fr;
  }
}
.transform-controls-panel {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.transform-slider-group {
  margin-bottom: 1rem;
}
.transform-slider-group label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.transform-slider-group input[type="range"] {
  width: 100%;
  cursor: pointer;
}
.transform-preview-container {
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  min-height: 350px;
  overflow: hidden;
  position: relative;
  border: 1px inset #cbd5e1;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 20px 20px;
}
.transform-preview-box {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #f43f5e, #8b5cf6, #3b82f6);
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  text-align: center;
  font-size: 1.2rem;
}
.transform-textarea {
  width: 100%;
  height: 80px;
  font-family: monospace;
  padding: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #1e293b;
  color: #38bdf8;
  resize: none;
  margin-bottom: 1rem;
}
.btn-custom {
  background: #4f46e5;
  color: white;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.btn-custom:hover {
  background: #4338ca;
  color: white;
}
.btn-outline {
  background: transparent;
  border: 1px solid #4f46e5;
  color: #4f46e5;
}
.btn-outline:hover {
  background: #4f46e5;
  color: white;
}
