.converter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.converter-tab {
  padding: 10px 20px;
  border: 2px solid #e5e6eb;
  background: #fff;
  color: #4e5969;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.converter-tab:hover {
  border-color: #165DFF;
  color: #165DFF;
}

.converter-tab.active {
  background: #165DFF;
  border-color: #165DFF;
  color: #fff;
}

.converter-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1024px) {
  .converter-layout {
    grid-template-columns: 1fr;
  }
  
  .converter-center {
    order: -1;
  }
}

.converter-left,
.converter-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.converter-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
}

.convert-btn {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  min-width: 140px;
  border-radius: 10px;
}

.convert-options {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4e5969;
}

.convert-options select {
  padding: 6px 10px;
  border: 1px solid #c9cdd4;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.input-options {
  padding: 16px;
  background: #f7f8fa;
  border-bottom: 1px solid #e5e6eb;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4e5969;
}

.option-row label {
  cursor: pointer;
  white-space: nowrap;
}

.option-row select {
  padding: 6px 10px;
  border: 1px solid #c9cdd4;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
}

.option-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #165DFF;
}

.upload-area {
  min-height: 300px;
}

.upload-zone {
  height: 100%;
  min-height: 280px;
  border: 2px dashed #c9cdd4;
  border-radius: 8px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-zone:hover {
  border-color: #165DFF;
  background: #f0f5ff;
}

.upload-zone.dragover {
  border-color: #165DFF;
  background: #e8f3ff;
  transform: scale(1.01);
}

.upload-content {
  pointer-events: none;
}

.upload-icon {
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.upload-title {
  font-size: 15px;
  font-weight: 600;
  color: #1d2129;
  margin-bottom: 8px;
}

.upload-hint {
  font-size: 12px;
  color: #86909c;
}

.textarea-container {
  display: flex;
  flex-direction: column;
  height: 350px;
}

#input-textarea,
#output-textarea {
  flex: 1;
  width: 100%;
  padding: 16px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: none;
  outline: none;
  background: #fafafa;
}

#input-textarea:focus,
#output-textarea:focus {
  border-color: #165DFF;
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
  background: #fff;
}

#output-textarea {
  background: #fff;
  color: #1d2129;
}

.textarea-info,
.output-info {
  padding: 10px 16px;
  background: #f7f8fa;
  border-top: 1px solid #e5e6eb;
  font-size: 12px;
  color: #86909c;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.output-container {
  display: flex;
  flex-direction: column;
  height: 400px;
}

.preview-section {
  margin-top: 24px;
}

.table-wrapper {
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-table th {
  background: #f7f8fa;
  font-weight: 600;
  color: #1d2129;
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table tr:hover {
  background: #f7f8fa;
}

.data-table td {
  color: #4e5969;
}

.preview-count {
  font-size: 13px;
  color: #86909c;
  background: #f7f8fa;
  padding: 4px 12px;
  border-radius: 12px;
}

.btn-tiny {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid #c9cdd4;
  background: #fff;
  color: #4e5969;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tiny:hover:not(:disabled) {
  border-color: #165DFF;
  color: #165DFF;
}

.btn-tiny:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .converter-tabs {
    gap: 6px;
  }

  .converter-tab {
    padding: 8px 14px;
    font-size: 13px;
  }

  .convert-btn {
    padding: 14px 24px;
    font-size: 15px;
    min-width: 120px;
  }

  .upload-zone {
    min-height: 220px;
    padding: 30px 16px;
  }

  .textarea-container,
  .output-container {
    height: 300px;
  }

  .input-options {
    flex-direction: column;
    gap: 12px;
  }
}