/* Modal Overlay */
.setup-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

/* Modal */
.setup-modal {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.setup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #f8f9fa;
  border-bottom: 2px solid #ddd;
  border-radius: 4px 4px 0 0;
}

.setup-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.setup-close-btn {
  background: transparent;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: all 0.2s;
}

.setup-close-btn:hover {
  background: #e9ecef;
  color: #333;
}

/* Tabs */
.setup-tabs {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #ddd;
}

.setup-tab {
  flex: 1;
  padding: 10px 15px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  transition: all 0.2s;
}

.setup-tab:hover {
  background: #e9ecef;
  color: #333;
}

.setup-tab.active {
  background: #fff;
  color: #333;
  font-weight: 600;
  border-bottom-color: #17a2b8;
}

/* Content */
.setup-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* Section */
.setup-section {
  margin-bottom: 20px;
}

.setup-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 13px;
}

.setup-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.setup-select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 13px;
  background: #fff;
}

/* Table */
.setup-table-container {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.setup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.setup-table thead {
  background: #f8f9fa;
}

.setup-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #ddd;
}

.setup-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e9ecef;
}

.setup-table tbody tr:hover {
  background: #f8f9fa;
}

.field-header {
  font-weight: 600;
  background: #e9ecef;
  color: #333;
}

.setup-checkbox {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.setup-width-input {
  width: 70px;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 13px;
}

.unit-label {
  margin-left: 5px;
  color: #666;
  font-size: 12px;
}

/* Actions */
.setup-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

/* Buttons */
.setup-btn {
  padding: 8px 20px;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.setup-btn-primary {
  background: #17a2b8;
  color: #fff;
  border-color: #17a2b8;
}

.setup-btn-primary:hover {
  background: #138496;
  border-color: #138496;
}

.setup-btn-secondary {
  background: #fff;
  color: #333;
}

.setup-btn-secondary:hover {
  background: #f8f9fa;
}

/* Scrollbar styling */
.setup-content::-webkit-scrollbar {
  width: 8px;
}

.setup-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.setup-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.setup-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}
