/* =====================================================
   POWERZONER TABS STYLESHEET
   Consolidated Setup + Import/Export Tab Styles
   ===================================================== */

/* =====================================================
   SETUP TAB STYLES
   ===================================================== */

/* Info Banner */
#setup-tab .info-banner {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #0c4a6e;
  line-height: 1.3;
}

#setup-tab .info-banner .fas {
  color: #0284c7;
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
}

#setup-tab .info-banner a {
  color: #0284c7;
  text-decoration: underline;
  font-weight: 500;
}

#setup-tab .info-banner a:hover {
  color: #0c4a6e;
}

/* Setup Steps - Main containers */
#setup-tab .setup-step {
  background: #fafafa;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

#setup-tab .setup-step.active {
  border-color: #7c3aed;
  background: #faf5ff;
}

#setup-tab .setup-step.completed {
  border-color: #10b981;
  background: #f0fff4;
}

/* Step Headers */
#setup-tab .step-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 6px;
}

#setup-tab .step-number {
  background: #9ca3af;
  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: #7c3aed;
}

#setup-tab .setup-step.completed .step-number {
  background: #10b981;
}

#setup-tab .step-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  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 {
  border: 2px dashed #d1d5db;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  background: white;
  transition: all 0.2s ease;
  cursor: pointer;
}

#setup-tab .upload-area:hover {
  border-color: #7c3aed;
  background: #faf5ff;
}

#setup-tab .upload-area.dragover {
  border-color: #7c3aed;
  background: #f5f3ff;
}

#setup-tab .upload-icon {
  font-size: 18px;
  color: #9ca3af;
  margin-bottom: 4px;
}

#setup-tab .upload-text {
  font-size: 13px;
  color: #374151;
  margin-bottom: 3px;
}

#setup-tab .upload-hint {
  font-size: 12px;
  color: #6b7280;
}

/* Dividers */
#setup-tab .or-divider {
  display: flex;
  align-items: center;
  margin: 4px 0;
  color: #6b7280;
  font-size: 12px;
}

#setup-tab .or-divider::before,
#setup-tab .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

#setup-tab .or-divider span {
  padding: 0 12px;
  background: white;
}

/* Method Options */
#setup-tab .method-option {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 4px;
}

#setup-tab .method-option.selected {
  border-color: #7c3aed;
  background: #faf5ff;
}

/* Status Indicators */
#setup-tab .boundary-status {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: 4px;
  color: #065f46;
  font-size: 12px;
  margin-top: 6px;
}

#setup-tab .boundary-status .fas {
  margin-right: 6px;
  font-size: 12px;
}

/* =====================================================
   TOPO TAB (REFINE) - MATCHING SETUP TAB STYLES
   ===================================================== */

#topo-tab .setup-step {
  background: #fafafa;
  border: 2px solid #e5e7eb;
  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: #10b981;
  background: #f0fff4;
}

#topo-tab .step-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 6px;
}

#topo-tab .step-number {
  background: #9ca3af;
  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: #10b981;
}

#topo-tab .step-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0;
  flex: 1;
}

#topo-tab .step-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* =====================================================
   IMPORT/EXPORT TAB STYLES
   ===================================================== */

/* Export Cards - Main containers */
#import-export-tab .export-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.2s ease;
}

#import-export-tab .export-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

#import-export-tab .export-card:last-child {
  margin-bottom: 0;
}

/* Card Headers */
#import-export-tab .export-card-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

#import-export-tab .export-card-icon {
  color: #7c3aed;
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

#import-export-tab .export-card-title {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}

#import-export-tab .export-card-description {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

#import-export-tab .export-card-content {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Button Styling for Import/Export Tab */
#import-export-tab .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  min-height: 38px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#import-export-tab .btn:hover {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-color: #9ca3af;
  color: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

#import-export-tab .btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#import-export-tab .btn i {
  font-size: 14px;
}

/* Special Report Button Styling */
#import-export-tab .btn-report {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  border-color: #7c3aed;
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

#import-export-tab .btn-report:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
  border-color: #6d28d9;
  color: white;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

#import-export-tab .btn-report i {
  font-size: 15px;
}

/* Backup Button Styling */
#import-export-tab .btn-backup {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

#import-export-tab .btn-backup:hover {
  background: linear-gradient(135deg, #0ea572 0%, #047857 100%);
  border-color: #0ea572;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

#import-export-tab .btn-backup i {
  font-size: 15px;
}

/* Restore Button Styling */
#import-export-tab .btn-restore {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  border-color: #7c3aed;
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

#import-export-tab .btn-restore:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
  border-color: #6d28d9;
  color: white;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

#import-export-tab .btn-restore i {
  font-size: 15px;
}

/* Button States */
#import-export-tab .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Icon Color Coding for Different Actions */
#import-export-tab .btn i.fa-file-export,
#import-export-tab .btn i.fa-download {
  color: #10b981; /* Green for exports */
}

#import-export-tab .btn i.fa-file-import,
#import-export-tab .btn i.fa-upload {
  color: #7c3aed; /* Purple for imports */
}

#import-export-tab .btn i.fa-camera,
#import-export-tab .btn i.fa-map-marked-alt {
  color: #f59e0b; /* Orange for snapshots */
}

#import-export-tab .btn:hover i {
  color: inherit; /* On hover, match text color */
}

/* Responsive Adjustments */
@media (max-width: 400px) {
  #import-export-tab .export-card-header {
    padding: 10px 12px;
  }

  #import-export-tab .export-card-content {
    padding: 10px 12px;
  }

  #import-export-tab .btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}
