/* =====================================================
   MODERN SETUP TAB LAYOUT - DEDICATED STYLESHEET
   ===================================================== */

/* Info Banner */
#setup-tab .info-banner {
  background: #e7f3ff;
  border: 1px solid #b3d9ff;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #004085;
  line-height: 1.3;
}

#setup-tab .info-banner .fas {
  color: #0066cc;
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
}

#setup-tab .info-banner a {
  color: #0066cc;
  text-decoration: underline;
  font-weight: 500;
}

#setup-tab .info-banner a:hover {
  color: #004085;
}

/* Setup Steps - Main containers */
#setup-tab .setup-step {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

#setup-tab .setup-step.active {
  border-color: #007bff;
  background: #f0f8ff;
}

#setup-tab .setup-step.completed {
  border-color: #28a745;
  background: #f0fff4;
}

/* Step Headers */
#setup-tab .step-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 6px;
}

#setup-tab .step-number {
  background: #6c757d;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

#setup-tab .setup-step.active .step-number {
  background: #007bff;
}

#setup-tab .setup-step.completed .step-number {
  background: #28a745;
}

#setup-tab .step-title {
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  margin: 0;
  flex: 1;
}

/* Hide step descriptions - now in tooltips */
#setup-tab .step-description {
  display: none;
}

#setup-tab .step-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Upload Areas */
#setup-tab .upload-area {
  display: block;
  width: 100%;
  border: 2px dashed #dee2e6;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  background: white;
  color: inherit;
  font: inherit;
  transition: all 0.2s ease;
  cursor: pointer;
}

#setup-tab .upload-area .upload-icon,
#setup-tab .upload-area .upload-text,
#setup-tab .upload-area .upload-hint {
  display: block;
}

#setup-tab .upload-area:focus-visible {
  outline: 3px solid rgba(0, 123, 255, 0.35);
  outline-offset: 2px;
  border-color: #007bff;
}

#setup-tab .upload-area:hover {
  border-color: #007bff;
  background: #f8f9fa;
}

#setup-tab .upload-area.dragover {
  border-color: #007bff;
  background: #e7f3ff;
}

#setup-tab .upload-icon {
  font-size: 18px;
  color: #6c757d;
  margin-bottom: 4px;
}

#setup-tab .upload-text {
  font-size: 13px;
  color: #495057;
  margin-bottom: 3px;
}

#setup-tab .upload-hint {
  font-size: 12px;
  color: #6c757d;
}

/* Dividers */
#setup-tab .or-divider {
  display: flex;
  align-items: center;
  margin: 4px 0;
  color: #6c757d;
  font-size: 12px;
}

#setup-tab .or-divider::before,
#setup-tab .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dee2e6;
}

#setup-tab .or-divider span {
  padding: 0 12px;
  background: white;
}

/* Method Options */
#setup-tab .method-option {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 4px;
}

#setup-tab .method-option.selected {
  border-color: #007bff;
  background: #f0f8ff;
}

/* Status Indicators */
#setup-tab .boundary-status {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  color: #155724;
  font-size: 12px;
  margin-top: 6px;
}

#setup-tab .boundary-status .fas {
  margin-right: 6px;
  font-size: 12px;
}
/* =====================================================
   TOPO TAB (REFINE) - MATCHING SETUP TAB STYLES
   ===================================================== */

/* Setup Steps - Main containers */
#topo-tab .setup-step {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

#topo-tab .setup-step.active {
  border-color: #7c3aed;
  background: #faf5ff;
}

#topo-tab .setup-step.completed {
  border-color: #28a745;
  background: #f0fff4;
}

/* Step Headers */
#topo-tab .step-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 6px;
}

#topo-tab .step-number {
  background: #6c757d;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

#topo-tab .setup-step.active .step-number {
  background: #7c3aed;
}

#topo-tab .setup-step.completed .step-number {
  background: #28a745;
}

#topo-tab .step-title {
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  margin: 0;
  flex: 1;
}

#topo-tab .step-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Collapsible accordion + badge (boundary editor, culvert panel).
   drain-pro also carries these inline; demos rely on this copy. */
.be-accordion { border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; }
.be-accordion-header { display: flex; align-items: center; padding: 10px 14px; background: #f9fafb; cursor: pointer; font-size: 13px; font-weight: 600; color: #374151; border-bottom: 1px solid transparent; list-style: none; user-select: none; }
.be-accordion-header::-webkit-details-marker { display: none; }
.be-accordion-header::after { content: '\f078'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 10px; margin-left: auto; color: #9ca3af; transition: transform 0.2s; }
.be-accordion[open] > .be-accordion-header { border-bottom-color: #e5e7eb; }
.be-accordion[open] > .be-accordion-header::after { transform: rotate(180deg); }
.be-accordion-body { padding: 10px 14px 14px; background: #f0fdfa; }
.be-badge { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; background: #0891b2; color: #fff; padding: 2px 6px; border-radius: 4px; margin-left: 8px; }
