/* ========================================
   CV Import Wizard - Styles
   ======================================== */

/* Wizard Stepper */
.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0 2rem;
}

.wizard-step {
  flex: 1;
  text-align: center;
  padding: 1rem;
  position: relative;
  color: #999;
  font-weight: 500;
}

.wizard-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -50%;
  width: 100%;
  height: 2px;
  background: #ddd;
  z-index: -1;
}

.wizard-step.active {
  color: #2196F3;
  font-weight: 600;
}

.wizard-step.active::after {
  background: #2196F3;
}

.wizard-step.completed {
  color: #4CAF50;
}

.wizard-step.completed::after {
  background: #4CAF50;
}

/* Wizard Content */
.wizard-content {
  background: #fff;
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* File Upload Step */
.file-upload-zone {
  border: 2px dashed #ccc;
  border-radius: 4px;
  padding: 3rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.file-upload-zone:hover {
  border-color: #2196F3;
  background: #f5f5f5;
}

.file-upload-zone.has-file {
  border-color: #4CAF50;
  background: #f1f8f4;
}

.file-upload-zone i {
  font-size: 3rem;
  color: #999;
  margin-bottom: 1rem;
}

.file-upload-zone.has-file i {
  color: #4CAF50;
}

/* Analysis Step */
.analysis-progress {
  text-align: center;
  padding: 3rem;
}

.analysis-progress i {
  font-size: 4rem;
  color: #2196F3;
  margin-bottom: 1rem;
}

.analysis-progress h4 {
  color: #666;
  margin-bottom: 0.5rem;
}

.analysis-progress p {
  color: #999;
  font-size: 0.9rem;
}

/* Property Validation Step */
.property-tabs {
  margin-bottom: 1.5rem;
}

.property-tabs .nav-tabs {
  border-bottom: 2px solid #e0e0e0;
}

.property-tabs .nav-tabs > li > a {
  color: #666;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.75rem 1.5rem;
}

.property-tabs .nav-tabs > li.active > a,
.property-tabs .nav-tabs > li.active > a:hover,
.property-tabs .nav-tabs > li.active > a:focus {
  color: #2196F3;
  background: transparent;
  border: none;
  border-bottom: 3px solid #2196F3;
}

.property-tabs .nav-tabs > li > a .badge {
  margin-left: 0.5rem;
  background: #e0e0e0;
  color: #666;
}

.property-tabs .nav-tabs > li.active > a .badge {
  background: #2196F3;
  color: #fff;
}

/* Property Item */
.property-item {
  margin-bottom: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.property-item.completed {
  border-color: #4CAF50;
  background: #f1f8f4;
}

.property-detected {
  padding: 1rem;
  background: #fafafa;
  border-bottom: 1px solid #e0e0e0;
}

.property-detected strong {
  color: #333;
  margin-right: 0.5rem;
}

.property-detected-value {
  font-size: 1.1rem;
  color: #2196F3;
  font-weight: 500;
}

.property-detected-details {
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Suggestions */
.property-suggestions {
  padding: 1rem;
}

.suggestions-header {
  font-weight: 600;
  color: #666;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.suggestion-item {
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.suggestion-item:hover {
  background: #f5f5f5;
  border-color: #2196F3;
}

.suggestion-item.selected {
  background: #e3f2fd;
  border-color: #2196F3;
  border-width: 2px;
}

.suggestion-label {
  font-weight: 500;
  color: #333;
}

.suggestion-details {
  color: #666;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.suggestion-match {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.match-score {
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.match-score.exact {
  background: #4CAF50;
  color: #fff;
}

.match-score.very_high {
  background: #8BC34A;
  color: #fff;
}

.match-score.high {
  background: #FFC107;
  color: #333;
}

.match-score.medium {
  background: #FF9800;
  color: #fff;
}

.match-type {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
}

/* Property Actions */
.property-actions {
  padding: 1rem;
  background: #fafafa;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.property-actions .btn {
  min-width: 120px;
}

.property-completed-marker {
  padding: 1rem;
  background: #4CAF50;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.property-completed-marker i {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.property-completed-marker .btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
}

.property-completed-marker .btn:hover {
  background: rgba(255,255,255,0.3);
}

/* Progress Indicator */
.validation-progress {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.validation-progress-text {
  font-weight: 600;
  color: #333;
}

.validation-progress-count {
  color: #2196F3;
  font-size: 1.2rem;
}

.validation-progress-bar {
  flex: 1;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  margin: 0 1rem;
  overflow: hidden;
}

.validation-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2196F3 0%, #4CAF50 100%);
  transition: width 0.3s ease;
}

/* All Suggestions Modal */
.all-suggestions-modal .modal-dialog {
  max-width: 700px;
}

.all-suggestions-list {
  max-height: 400px;
  overflow-y: auto;
}

/* Creation Step */
.creation-progress {
  text-align: center;
  padding: 3rem;
}

.creation-progress i {
  font-size: 4rem;
  color: #2196F3;
  margin-bottom: 1rem;
}

.creation-success {
  text-align: center;
  padding: 2rem;
}

.creation-success i {
  font-size: 5rem;
  color: #4CAF50;
  margin-bottom: 1rem;
}

.creation-success h3 {
  color: #4CAF50;
  margin-bottom: 1rem;
}

/* Import Report */
.import-report {
  margin-top: 2rem;
}

.import-report-section {
  margin-bottom: 1.5rem;
}

.import-report-section h4 {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0e0e0;
}

.import-report-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.import-stat {
  flex: 1;
  min-width: 150px;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 4px;
  text-align: center;
}

.import-stat-value {
  font-size: 2rem;
  font-weight: 600;
  color: #2196F3;
}

.import-stat-label {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

.import-report-list {
  list-style: none;
  padding: 0;
}

.import-report-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.import-report-list li:last-child {
  border-bottom: none;
}

.import-report-list li i {
  margin-right: 0.5rem;
  color: #4CAF50;
}

/* Navigation Buttons */
.wizard-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.wizard-navigation .btn {
  min-width: 120px;
}

/* Loading States */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-spinner {
  text-align: center;
}

.loading-spinner i {
  font-size: 3rem;
  color: #2196F3;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: #999;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state p {
  font-size: 1.1rem;
}

/* ========================================
   UX Improvements - New Styles
   ======================================== */

/* Enhanced Wizard Steps */
.wizard-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #666;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: all 0.3s;
}

.wizard-step--active .wizard-step-number {
  background: #2196F3;
  color: #fff;
  transform: scale(1.1);
}

.wizard-step--completed .wizard-step-number {
  background: #4CAF50;
  color: #fff;
}

.wizard-step-label {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Help Panel */
.wizard-help-panel {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s;
  background: #f8f9fa;
}

.wizard-help-panel--collapsed {
  background: transparent;
}

.wizard-help-header {
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.wizard-help-header:hover {
  background: #e9ecef;
}

.wizard-help-header h5 {
  margin: 0;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.wizard-help-header i {
  font-size: 1.2rem;
}

.wizard-help-content {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.wizard-help-section {
  margin-bottom: 1rem;
}

.wizard-help-section:last-child {
  margin-bottom: 0;
}

.wizard-help-section h6 {
  color: #495057;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wizard-help-section p {
  color: #6c757d;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.wizard-help-section ul {
  margin: 0.5rem 0 0 0;
  color: #6c757d;
  font-size: 0.85rem;
}

.wizard-help-section ul li {
  margin-bottom: 0.25rem;
}

/* Progress Bar */
.wizard-progress-container {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1rem 1.5rem;
}

.wizard-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.wizard-progress-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
}

.wizard-progress-count {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 500;
}

/* Tab Status Indicators */
.nav-tabs > li.tab--completed > a {
  color: #4CAF50 !important;
}

.nav-tabs > li.tab--in-progress > a {
  color: #FFC107 !important;
}

.nav-tabs > li.tab--pending > a {
  color: #999 !important;
}

.tab-status-icon {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.nav-tabs > li.tab--completed .tab-status-icon {
  color: #4CAF50;
}

.nav-tabs > li.tab--in-progress .tab-status-icon {
  color: #FFC107;
}

.nav-tabs > li.tab--pending .tab-status-icon {
  color: #ccc;
}

/* Property Status Bar */
.property-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.property-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-status-indicator i {
  font-size: 1.2rem;
}

.property-number {
  font-size: 0.75rem;
  color: #999;
  background: #e9ecef;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
}

/* Property Review States */
.property-item--pending {
  border-left: 4px solid #FFC107;
}

.property-item--pending .property-status-indicator {
  color: #FFC107;
}

.property-item--reviewed {
  border-left: 4px solid #4CAF50;
}

.property-item--reviewed .property-status-indicator {
  color: #4CAF50;
}

.property-item--skipped {
  border-left: 4px solid #999;
  opacity: 0.8;
}

.property-item--skipped .property-status-indicator {
  color: #999;
}

.property-item--highlight {
  animation: highlightPulse 1s ease-in-out;
  border: 2px solid #2196F3;
}

@keyframes highlightPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(33, 150, 243, 0);
  }
}

/* Recommendation Banner */
.property-recommendation {
  padding: 0.75rem 1rem;
  background: #e3f2fd;
  border-left: 3px solid #2196F3;
  border-radius: 3px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #1565c0;
}

.property-recommendation i {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.property-recommendation strong {
  color: #0d47a1;
}

/* Suggestions List Enhancement */
.suggestions-list {
  padding: 1rem;
}

.suggestion-content {
  flex: 1;
  min-width: 0;
}

.suggestion-score {
  flex-shrink: 0;
  margin-left: 1rem;
}

.suggestion-item--selected {
  background: #e3f2fd !important;
  border-color: #2196F3 !important;
}

/* Review Step Styles */
.review-item {
  padding: 0.75rem 0;
}

.review-item-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f8f9fa;
  flex-shrink: 0;
}

.review-item-icon i {
  font-size: 1.2rem;
}

/* Floating Action Button */
.wizard-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 28px;
  background: #2196F3;
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 1000;
  overflow: hidden;
}

.wizard-fab:hover {
  background: #1976D2;
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.5);
  width: auto;
  padding: 0 1.5rem;
}

.wizard-fab i {
  font-size: 1.5rem;
}

.wizard-fab-label {
  display: none;
  margin-left: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.wizard-fab:hover .wizard-fab-label {
  display: inline;
}

.wizard-fab:hover i {
  margin-right: 0;
}

/* Match Score Variants */
.match-score--exact {
  background: #4CAF50;
  color: #fff;
}

.match-score--very_high {
  background: #8BC34A;
  color: #fff;
}

.match-score--high {
  background: #FFC107;
  color: #333;
}

.match-score--medium {
  background: #FF9800;
  color: #fff;
}

.match-score--low {
  background: #FF5722;
  color: #fff;
}

/* Enhanced Completed Property Display */
.property-item--completed {
  background: #f1f8f4;
  border-color: #4CAF50;
}

/* Skip Modal Styles */
.ds-modal-dialog {
  max-width: 500px;
}

.ds-form-control {
  resize: vertical;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .wizard-steps {
    padding: 0;
  }

  .wizard-step {
    font-size: 0.85rem;
    padding: 0.5rem;
  }

  .wizard-step-number {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .wizard-help-header h5 {
    font-size: 0.9rem;
  }

  .wizard-help-section {
    font-size: 0.8rem;
  }

  .wizard-progress-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .property-status-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .property-actions {
    flex-direction: column;
  }

  .property-actions .btn {
    width: 100%;
  }

  .wizard-fab {
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
  }

  .wizard-fab:hover {
    width: 48px;
    padding: 0;
  }

  .wizard-fab-label {
    display: none !important;
  }

  .import-report-stats {
    flex-direction: column;
  }

  .validation-progress {
    flex-direction: column;
    gap: 1rem;
  }

  .validation-progress-bar {
    width: 100%;
    margin: 0;
  }

  .nav-tabs > li {
    flex: 1;
    min-width: 0;
  }

  .nav-tabs > li > a {
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  .tab-status-icon {
    display: none;
  }

  .review-item {
    font-size: 0.85rem;
  }

  .review-item-icon {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .wizard-fab {
    bottom: 0.5rem;
    right: 0.5rem;
  }

  .property-recommendation {
    font-size: 0.8rem;
  }

  .suggestion-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .suggestion-score {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}
