/* Property Hero Onboarding Styles */

/* Minimal Onboarding Navigation - shadcn style */
.onboarding-nav {
  background: transparent;
  border-bottom: none;
}

.onboarding-nav-brand .brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

/* Minimal dropdown button */
.btn-minimal {
  background: transparent;
  border: 1px solid hsl(240 5.9% 90%);
  color: hsl(240 5.9% 10%);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
}

.btn-minimal:hover {
  background: hsl(240 4.8% 95.9%);
  border-color: hsl(240 5.9% 85%);
  color: hsl(240 5.9% 10%);
}

.btn-minimal:focus,
.btn-minimal:active {
  background: hsl(240 4.8% 95.9%);
  border-color: hsl(240 5.9% 85%);
  color: hsl(240 5.9% 10%);
  box-shadow: 0 0 0 2px hsl(240 5.9% 90%);
}

.btn-minimal.show {
  background: hsl(240 4.8% 95.9%);
  border-color: hsl(240 5.9% 85%);
  color: hsl(240 5.9% 10%);
}

/* Minimal dropdown toggle arrow */
.btn-minimal.dropdown-toggle::after {
  margin-left: 0.5rem;
  border-top-color: hsl(240 5.9% 45%);
}

/* Dropdown menu styling */
.onboarding-nav-actions .dropdown-menu {
  border: 1px solid hsl(240 5.9% 90%);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 0.25rem;
  margin-top: 0.5rem;
  min-width: 160px;
}

.onboarding-nav-actions .dropdown-item {
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  color: hsl(240 5.9% 10%);
  transition: all 0.1s ease;
}

.onboarding-nav-actions .dropdown-item:hover {
  background: hsl(240 4.8% 95.9%);
  color: hsl(240 5.9% 10%);
}

.onboarding-nav-actions .dropdown-item i {
  font-size: 0.875rem;
  color: hsl(240 5.9% 45%);
}

/* Responsive navigation */
@media (max-width: 576px) {
  .onboarding-nav-brand .brand-logo {
    height: 28px;
  }

  .btn-minimal {
    font-size: 0.8125rem;
    padding: 0.4rem 0.75rem;
  }
}

.onboarding-container {
  min-height: 100vh;
  padding: 2rem 0;
}

/* Step 1 - What you'll get sidebar */
.what-youll-get-box {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.what-youll-get-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0A1E59;
  margin-bottom: 1.5rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  padding: 0.75rem 0;
  font-size: 1rem;
  color: #2d3748;
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
}

.benefits-list li i {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .what-youll-get-box {
    margin-top: 2rem;
    position: static;
  }
}

/* Step 2 Property Details Styling */
.property-details-layout {
  gap: 2rem;
}

.property-images img {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.key-facts-card .card-body {
  padding: 1.5rem;
}

.key-facts-card .row > div {
  padding: 0.5rem;
}

.key-facts-card .text-muted.small {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d !important;
}

.key-facts-card .fw-semibold {
  font-weight: 600;
  color: #2d3748;
  font-size: 0.95rem;
}

.value-card .h4 {
  font-weight: 700;
  font-size: 1.8rem;
}

.what-we-save .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.what-we-save .fa-check-circle {
  color: #28a745 !important;
}

.property-map-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.quick-tweak-card .form-floating > label {
  color: #6c757d;
}

.quick-tweak-card .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Street View Images Styling */
.street-view-section .card {
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.street-view-section .card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
}

.street-view-section .card-header h6 {
  color: #495057;
  font-weight: 600;
}

.street-view-section img {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #dee2e6;
}

.street-view-section img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.street-view-section .text-muted {
  font-size: 0.8rem;
  font-weight: 500;
}

.progress-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.progress-lg {
  height: 8px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.2);
}

.progress-lg .progress-bar {
  border-radius: 10px;
  transition: width 0.4s ease;
}

.progress-text {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  font-size: 0.9rem;
}

.onboarding-header h1 {
  color: #2d3748;
  font-weight: 700;
  margin-bottom: 1rem;
}

.onboarding-header .lead {
  color: #718096;
  font-size: 1.1rem;
}

/* Form Styling */
.form-label {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.form-control {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.form-control.is-invalid {
  border-color: #e53e3e;
}

.form-control.is-valid {
  border-color: #38a169;
}

/* Button Styling */
.btn {
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #2E9965;
  border: none;
}

.btn-primary:hover {
  background-color: #2E9965;
  transform: translateY(-2px);
}

.btn-outline-secondary {
  border: 2px solid #e2e8f0;
  color: #718096;
}

.btn-outline-secondary:hover {
  background-color: #f7fafc;
  border-color: #cbd5e0;
  color: #4a5568;
}

/* Property Preview Card */
.property-preview {
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  background: #f7fafc;
  margin: 1.5rem 0;
}

.property-preview h5 {
  color: #2d3748;
  font-weight: 600;
  margin-bottom: 1rem;
}

.property-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.property-detail-item:last-child {
  border-bottom: none;
}

.property-detail-label {
  font-weight: 500;
  color: #4a5568;
}

.property-detail-value {
  font-weight: 600;
  color: #2d3748;
}

/* Asset Cards */
.asset-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.asset-card:hover {
  border-color: #cbd5e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.asset-card.selected {
  border-color: #667eea;
  background-color: #f0f4ff;
}

.asset-confidence {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.asset-confidence.high {
  background-color: #c6f6d5;
  color: #22543d;
}

.asset-confidence.medium {
  background-color: #fef5e7;
  color: #7d4b0b;
}

.asset-confidence.low {
  background-color: #fed7d7;
  color: #7d0a0a;
}

/* Upload Zone */
.upload-zone {
  border: 3px dashed #cbd5e0;
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.upload-zone:hover {
  border-color: #667eea;
  background-color: #f0f4ff;
}

.upload-zone.dragover {
  border-color: #667eea;
  background-color: #e6fffa;
}

.upload-icon {
  font-size: 3rem;
  color: #cbd5e0;
  margin-bottom: 1rem;
}

/* Success States */
.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #38a169 0%, #68d391 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem auto;
  font-size: 2rem;
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .onboarding-container {
    padding: 1rem 0;
  }
  
  .onboarding-navigation .col-6 {
    margin-bottom: 0.5rem;
  }
  
  .onboarding-navigation .text-end {
    text-align: start !important;
  }
}

/* Google Places Autocomplete Styling */
.pac-container {
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  margin-top: 5px;
  z-index: 1051 !important;
}

.pac-item {
  padding: 12px 16px !important;
  border-bottom: 1px solid #f0f0f0 !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease;
}

.pac-item:hover {
  background-color: #f8f9ff !important;
}

.pac-item-selected {
  background-color: #667eea !important;
  color: white !important;
}

.pac-item-query {
  font-weight: 600 !important;
  color: #2d3748;
}

.pac-item-selected .pac-item-query {
  color: white !important;
}

.pac-matched {
  font-weight: 700 !important;
}

.pac-icon {
  margin-top: 2px !important;
}

/* Address Confirmation */
.address-confirmation {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Step 3: RoomScan Upload Styles */
.upload-section {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 3rem 2rem;
  border: 2px dashed #dee2e6;
}

.qr-code-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qr-code-wrapper {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.qr-code-image {
  width: 120px;
  height: 120px;
  display: block;
}

.upload-arrow {
  font-size: 2rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.upload-button-container {
  margin-top: 1rem;
}

.upload-room-btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  background: #28a745;
  color: white;
  transition: all 0.2s ease;
}

.upload-room-btn:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.upload-room-btn:disabled {
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

/* RoomScan Samples Section */
.roomscan-samples-section {
  margin-top: 3rem;
}

.roomscan-samples-section h4 {
  color: #2d3748;
  font-weight: 700;
  margin-bottom: 2rem;
}

.sample-image-card {
  border: 1px solid #dee2e6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sample-item-card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.sample-item-card:hover {
  border-color: #28a745;
  box-shadow: 0 2px 12px rgba(40, 167, 69, 0.15);
}

.sample-item-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #dee2e6;
}

.sample-item-card .fw-semibold {
  color: #2d3748;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.sample-item-card .text-muted.small {
  font-size: 0.85rem;
  color: #6c757d !important;
  margin-bottom: 0.25rem;
}

.sample-item-card .form-check {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.sample-item-card .form-check-input {
  margin-bottom: 0.5rem;
  width: 1.2rem;
  height: 1.2rem;
}

.sample-item-card .form-check-label {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.sample-item-card .form-check-label.text-success {
  color: #28a745 !important;
}

.sample-item-card .form-check-label.text-danger {
  color: #dc3545 !important;
}

/* QR Code hover effect */
.qr-code-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

/* Upload section responsive */
@media (max-width: 768px) {
  .upload-section {
    padding: 2rem 1rem;
  }

  .qr-code-image {
    width: 100px;
    height: 100px;
  }

  .upload-room-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .sample-item-card .card-body {
    padding: 1rem 0.75rem;
  }

  .sample-item-image {
    width: 50px;
    height: 50px;
  }
}

/* Step 4: Asset Review Styles */
/* Room Image */
.room-main-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Small Asset Cards */
.asset-small-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.asset-small-card:hover {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
  transform: translateY(-1px);
}

.asset-thumbnail {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.asset-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-placeholder-icon {
  color: #adb5bd;
  font-size: 24px;
}

.asset-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.asset-info .asset-name {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  line-height: 1.3;
}

.asset-info .asset-category {
  font-size: 13px;
  color: #6c757d;
  margin: 0;
  line-height: 1.3;
}

.asset-info .asset-value {
  font-size: 13px;
  color: #28a745;
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}

/* Detail Card */
.asset-detail-card {
  background: white;
  border: 2px solid #007bff;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
  animation: slideDown 0.3s ease;
}

.detail-card-content {
  padding: 20px;
}

.detail-image-container {
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-asset-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h5 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 8px;
}

.detail-category {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 4px;
}

.detail-value {
  color: #28a745;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.detail-confidence {
  color: #17a2b8;
  font-size: 14px;
  margin-bottom: 12px;
}

.detail-description {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.detail-description p {
  color: #6c757d;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.detail-actions {
  display: flex;
  gap: 8px;
}

.detail-actions .btn {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
}

/* Active hover state styling */
.asset-small-card.active-hover {
  border-color: #007bff;
  background: rgba(0, 123, 255, 0.05);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.asset-small-card.active-hover .asset-name {
  color: #007bff;
}

/* Selected state styling */
.asset-small-card.selected {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.08);
}

.asset-small-card.selected .asset-name {
  color: #28a745;
}

/* Combined active hover and selected state */
.asset-small-card.active-hover.selected {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.08);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

/* Deselected/unselected state */
.asset-small-card:not(.selected) {
  opacity: 0.7;
}

.asset-small-card:not(.selected):hover {
  opacity: 1;
}

/* Sticky Sidebar */
.sticky-sidebar {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

/* Quick Tweak Sidebar */
.quick-tweak-sidebar .card {
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 12px;
}

.quick-tweak-sidebar .card-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}

.quick-tweak-sidebar .form-control {
  border-radius: 8px;
  border: 1px solid #e9ecef;
  padding: 8px 12px;
}

.quick-tweak-sidebar .form-control:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

#save-room-btn {
  border-radius: 8px;
  padding: 10px;
  font-weight: 600;
  background: #28a745;
  border-color: #28a745;
}

#save-room-btn:hover {
  background: #218838;
  border-color: #1e7e34;
}

/* Empty State */
.empty-state-container {
  padding: 40px 20px;
}

/* Step 4 Responsive adjustments */
@media (max-width: 768px) {
  .room-main-image {
    height: 200px;
  }

  .asset-small-card {
    padding: 10px;
  }

  .asset-thumbnail {
    width: 60px;
    height: 60px;
  }

  .asset-info .asset-name {
    font-size: 14px;
  }

  .asset-info .asset-category,
  .asset-info .asset-value {
    font-size: 12px;
  }
}