body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  margin: 0;
  padding: 20px;
  background: #f6f6f7;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 30px;
}

h1 {
  color: #202223;
  margin-bottom: 10px;
}

.subtitle {
  color: #6d7175;
  margin-bottom: 30px;
}

.section {
  margin-bottom: 40px;
  position: relative;
}

.section.locked {
  opacity: 0.75;
}

.section-content {
  transition: filter 0.2s ease;
}

.section.locked .section-content {
  filter: blur(1.5px);
  pointer-events: none;
  user-select: none;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #202223;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-number {
  background: #008060;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.lock-notice {
  display: none;
  background: #fff8e1;
  border: 1px solid #f5e0a3;
  color: #8b6d1c;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 15px;
}

.section.locked .lock-notice {
  display: block;
}

.upload-area {
  border: 2px dashed #c4cdd5;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.upload-area:hover {
  border-color: #008060;
  background: #f9fafb;
}

.upload-area.dragover {
  border-color: #008060;
  background: #f1f8f5;
}

input[type="file"] {
  display: none;
}

.btn {
  background: #008060;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover:not(:disabled) {
  background: #006e52;
}

.btn:disabled {
  background: #c4cdd5;
  cursor: not-allowed;
}

.btn-secondary {
  background: #f6f6f7;
  color: #202223;
  border: 1px solid #c4cdd5;
}

.btn-secondary:hover:not(:disabled) {
  background: #f1f2f3;
}

.mapping-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.mapping-table th,
.mapping-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e1e3e5;
}

.mapping-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #202223;
}

.mapping-table select,
.mapping-table input {
  width: 100%;
  padding: 8px;
  border: 1px solid #c4cdd5;
  border-radius: 4px;
  font-size: 14px;
}

.add-mapping-btn {
  margin-top: 10px;
  background: #f6f6f7;
  color: #202223;
  border: 1px dashed #c4cdd5;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.add-mapping-btn:hover {
  border-color: #008060;
  color: #008060;
}

.delete-btn {
  background: #d72c0d;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.delete-btn:hover {
  background: #bf2600;
}

.file-info {
  background: #f1f8f5;
  border: 1px solid #9fc9ba;
  padding: 15px;
  border-radius: 6px;
  margin-top: 15px;
}

.status-message {
  padding: 12px;
  border-radius: 6px;
  margin-top: 15px;
}

.status-success {
  background: #f1f8f5;
  border: 1px solid #9fc9ba;
  color: #008060;
}

.status-error {
  background: #fef2f2;
  border: 1px solid #f4a9a9;
  color: #d72c0d;
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.loading {
  display: none;
  text-align: center;
  padding: 20px;
}

.loading.active {
  display: block;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #008060;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.progress-wrapper {
  margin-top: 15px;
  display: none;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #e1e3e5;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #008060;
  width: 0%;
  transition: width 0.2s ease;
}

.progress-text {
  margin-top: 6px;
  font-size: 13px;
  color: #6d7175;
  text-align: right;
}

.output-column-custom {
  width: calc(100% - 80px);
  padding: 8px 12px;
  border: 1px solid #c9cccf;
  border-radius: 4px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Hebrew', Arial, sans-serif;
  transition: border-color 0.2s;
  margin-right: 8px;
  vertical-align: middle;
}

.output-column-custom:focus {
  outline: none;
  border-color: #5c6ac4;
  box-shadow: 0 0 0 1px #5c6ac4;
}

.output-column-custom::placeholder {
  color: #919eab;
}

.back-to-select-btn {
  display: inline-block;
  padding: 8px 12px;
  background-color: #f4f6f8;
  border: 1px solid #c9cccf;
  border-radius: 4px;
  color: #202223;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  vertical-align: middle;
}

.back-to-select-btn:hover {
  background-color: #e4e5e7;
  border-color: #babfc3;
}

.back-to-select-btn:active {
  background-color: #d3d5d7;
}

.mapping-table td {
  vertical-align: middle;
}

.output-column option[value="__CUSTOM__"] {
  color: #5c6ac4;
  font-weight: 600;
}
