/* Scoped CSS for Vector File Format Converter */
.vffc-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.vffc-main {
  padding: 1.5rem 1rem 3rem;
}

.vffc-container {
  max-width: 1100px;
  margin: 0 auto;
}

.vffc-app-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.vffc-top-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.vffc-file-dropzone {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  background: #f8fafc;
  transition: all 0.15s ease;
  cursor: pointer;
}

.vffc-file-dropzone:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.vffc-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.vffc-drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.vffc-drop-icon {
  font-size: 1.75rem;
}

.vffc-drop-hint {
  font-size: 0.8rem;
  color: #64748b;
}

.vffc-presets-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.vffc-preset-label {
  font-size: 0.825rem;
  color: #64748b;
  font-weight: 500;
}

.vffc-preset-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vffc-preset-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Workspace Grid */
.vffc-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .vffc-workspace {
    grid-template-columns: 1fr;
  }
}

.vffc-preview-panel, .vffc-config-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vffc-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vffc-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.vffc-bg-toggles {
  display: flex;
  gap: 0.3rem;
}

.vffc-bg-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  cursor: pointer;
  color: #475569;
}

.vffc-bg-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.vffc-preview-viewport {
  height: 280px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
  transition: background-color 0.2s ease;
}

.vffc-bg-grid {
  background-color: #ffffff;
  background-image: linear-gradient(45deg, #f1f5f9 25%, transparent 25%), linear-gradient(-45deg, #f1f5f9 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f1f5f9 75%), linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

.vffc-bg-white {
  background-color: #ffffff !important;
  background-image: none !important;
}

.vffc-bg-dark {
  background-color: #0f172a !important;
  background-image: none !important;
}

.vffc-svg-render {
  width: 100%;
  height: 100%;
  max-width: 240px;
  max-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vffc-svg-render svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.vffc-meta-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748b;
  padding: 0 0.25rem;
}

.vffc-code-area {
  height: 160px;
  width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.75rem;
  resize: vertical;
  line-height: 1.4;
  outline: none;
}

.vffc-code-area:focus {
  border-color: #2563eb;
  background: #ffffff;
}

.vffc-export-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.vffc-export-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.vffc-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vffc-form-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
}

.vffc-select {
  padding: 0.45rem 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.85rem;
  outline: none;
}

.vffc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  text-decoration: none;
}

.vffc-btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.vffc-btn-primary:hover {
  background: #1d4ed8;
}

.vffc-btn-outline {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.vffc-btn-outline:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.vffc-btn-sm {
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
}

.vffc-action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Guide Section */
.vffc-guide-section {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.vffc-section-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

.vffc-lead-text {
  color: #475569;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.vffc-table-wrap {
  overflow-x: auto;
}

.vffc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.vffc-table th {
  background: #f8fafc;
  color: #334155;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
}

.vffc-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.vffc-table tr:hover {
  background: #f8fafc;
}
