.condition-old {
  @apply bg-red-900 text-red-200;
}

->

.condition-old {
  @apply bg-red-900 text-red-200;
}

/* Collapsible Section Transitions */
.transition-all {
    transition: all 0.3s ease-in-out;
}

.duration-300 {
    transition-duration: 300ms;
}

/* Smooth height transitions for collapsible sections */
.collapsible-content {
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.collapsible-content[v-show="false"] {
    max-height: 0;
    opacity: 0;
}

.collapsible-content[v-show="true"] {
    max-height: 2000px; /* Large enough to accommodate content */
    opacity: 1;
}

/* Loading spinner animation */
.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
  }
  .tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: #222;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 8px 10px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 12px;
    pointer-events: none;
  }
  .tooltip:hover .tooltiptext,
  .tooltip:focus .tooltiptext {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
  }



  .fas {
      transition: transform 0.2s ease;
  }

  .fa-chevron-up {
      transform: rotate(0deg);
  }

  .fa-chevron-down {
      transform: rotate(180deg);
  }

  .cursor-pointer {
      cursor: pointer;
  }


  /* Core Variables */
  :root {
      --primary-color: #4F46E5;
      --blue-gradient: linear-gradient(to right, #4F46E5, #7C3AED);
      --purple-gradient: linear-gradient(to right, #7C3AED, #9333EA);
  }
  .loading-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgb(0,0,0,0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
  }

  .loader {
      width: 50px;
      height: 50px;
      border: 5px solid var(--text-color);
      border-top: 5px solid var(--primary-color);
      border-radius: 50%;
      animation: spin 1s linear infinite;
  }

  @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
  }

  /* Background Patterns */
  .min-h-screen {
      background: 
          linear-gradient(to bottom right, 
              rgba(255, 255, 255, 1),
              rgba(219, 234, 254, 0.3)
          ),
          radial-gradient(
              circle at 70% 50%,
              rgba(139, 92, 246, 0.15),
              rgba(255, 255, 255, 0) 60%
          ),
          radial-gradient(
              circle at 30% 50%,
              rgba(219, 39, 119, 0.1),
              rgba(255, 255, 255, 0) 60%
          );
  }

  /* Navigation Glass Effect */
  .nav-glass {
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Animation Utilities */
  .animate-gradient-text {
      background-image: linear-gradient(to right, #4F46E5, #7C3AED, #9333EA);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      background-size: 200% 100%;
      animation: gradientMove 6s linear infinite;
  }

  .animate-gradient-text-subtle {
      background-image: linear-gradient(to right, #374151, #4B5563, #6B7280);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      background-size: 200% 100%;
      animation: gradientMove 6s linear infinite;
  }

  @keyframes gradientMove {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
  }

  /* Blob Animation */
  .animate-blob {
      animation: blob 7s infinite;
  }

  .animation-delay-2000 {
      animation-delay: 2s;
  }

  .animation-delay-4000 {
      animation-delay: 4s;
  }

  @keyframes blob {
      0% {
          transform: translate(0px, 0px) scale(1);
      }
      33% {
          transform: translate(30px, -50px) scale(1.1);
      }
      66% {
          transform: translate(-20px, 20px) scale(0.9);
      }
      100% {
          transform: translate(0px, 0px) scale(1);
      }
  }

  /* Shadow Effects */
  .shadow-glass {
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                  0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }

  /* Feature Card Hover */
  .feature-card {
      transition: all 0.3s ease;
  }

  .feature-card:hover {
      transform: translateY(-5px);
  }

  /* Custom Animation for Elements */
  .animate-fade-in-up {
      animation: fadeInUp 0.5s ease-out forwards;
  }

  .animate-fade-in-down {
      animation: fadeInDown 0.5s ease-out forwards;
  }

  .animate-fade-in {
      animation: fadeIn 0.5s ease-out forwards;
  }

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

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

  @keyframes fadeIn {
      from {
          opacity: 0;
      }
      to {
          opacity: 1;
      }
  }

  /* Gradient Animation for Backgrounds */
  .animate-gradient-x {
      background-size: 200% 200%;
      animation: gradientBG 15s ease infinite;
  }

  @keyframes gradientBG {
      0% {
          background-position: 0% 50%;
      }
      50% {
          background-position: 100% 50%;
      }
      100% {
          background-position: 0% 50%;
      }
  }

  /* Modern Components Styles for New Design */

  /* Card Component Styles */
  .card {
      @apply bg-white rounded-lg shadow-md overflow-hidden;
      transition: box-shadow 0.3s ease, transform 0.3s ease;
  }

  .card:hover {
      @apply shadow-lg;
      transform: translateY(-2px);
  }

  .card-header {
      @apply p-4 border-b border-gray-200;
  }

  .card-body {
      @apply p-4;
  }

  /* Dashboard Layout */
  .dashboard-content {
      @apply pb-10;
  }

  /* Property Details */
  .property-image-gallery {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: auto;
      gap: 0.5rem;
  }

  .property-image-gallery .main-image {
      grid-column: span 3;
      aspect-ratio: 16/9;
  }

  .property-image-gallery .gallery-item {
      aspect-ratio: 1/1;
      overflow: hidden;
  }

  /* Similarity Score Badges */
  .similarity-badge {
      @apply inline-flex items-center justify-center px-2 py-1 rounded-full text-xs font-medium;
  }

  .similarity-high {
      @apply bg-green-100 text-green-800;
  }

  .similarity-medium {
      @apply bg-yellow-100 text-yellow-800;
  }

  .similarity-low {
      @apply bg-red-100 text-red-800;
  }

  /* Analytics Charts */
  .chart-container {
      position: relative;
      height: 300px;
      width: 100%;
  }

  .bar-chart {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      height: 200px;
  }

  .bar-chart-column {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  .bar-chart-bar {
      width: 20px;
      background-color: #3b82f6;
      border-radius: 4px 4px 0 0;
  }

  .bar-chart-label {
      margin-top: 8px;
      font-size: 12px;
      color: #6b7280;
  }

  /* Property Comparison Table */
  .comparison-table th {
      @apply px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider bg-gray-50;
  }

  .comparison-table td {
      @apply px-4 py-4 whitespace-nowrap border-b border-gray-200;
  }

  .comparison-table tr:last-child td {
      @apply border-b-0;
  }

  .comparison-table tr:hover {
      @apply bg-gray-50;
  }

  /* Property Details Cards */
  .details-card {
      @apply border rounded-lg p-4 bg-white transition-all duration-200;
  }

  .details-card:hover {
      @apply shadow-md;
  }

  /* Animation for loading states */
  @keyframes pulse {
      0%, 100% {
          opacity: 1;
      }
      50% {
          opacity: 0.5;
      }
  }

  .animate-pulse {
      animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
      .property-image-gallery {
          grid-template-columns: 1fr;
      }

      .property-image-gallery .main-image {
          grid-column: span 1;
      }

      .property-image-gallery .gallery-item {
          display: none;
      }

      .property-image-gallery .gallery-item:first-child {
          display: block;
      }
  }

  /* Sidebar Layout Styles */
  .sidebar {
      background-color: #ffffff;
      border-right: 1px solid #e5e7eb;
      width: 320px;
      height: 100vh;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 20;
      overflow-y: auto;
      transition: transform 0.3s ease;
      /* Fix for Firefox and other browsers */
      display: flex;
      flex-direction: column;
  }

  .sidebar-layout {
      display: flex;
      min-height: 100vh;
  }

  .main-content-with-sidebar {
      margin-left: 320px;
      width: calc(100% - 320px);
      transition: margin-left 0.3s ease;
  }

  /* Responsive adjustments */
  @media (max-width: 1024px) {
      .sidebar {
          transform: translateX(-100%);
      }

      .sidebar.open {
          transform: translateX(0);
      }

      .main-content-with-sidebar {
          margin-left: 0;
          width: 100%;
      }
  }

  /* Custom scrollbar for sidebar */
  .sidebar::-webkit-scrollbar {
      width: 6px;
  }

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

  .sidebar::-webkit-scrollbar-thumb {
      background: #d1d5db;
      border-radius: 3px;
  }

  .sidebar::-webkit-scrollbar-thumb:hover {
      background: #9ca3af;
  }

  /* Welcome Component Styles */
  .welcome-container {
      animation: fadeIn 0.8s ease-out;
  }

  .welcome-container .w-20 {
      animation: pulse 2s infinite;
  }

  @keyframes pulse {
      0% {
          transform: scale(1);
          box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
      }
      70% {
          transform: scale(1.05);
          box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
      }
      100% {
          transform: scale(1);
          box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
      }
  }

  .welcome-container .grid > div {
      transition: all 0.3s ease;
  }

  .welcome-container .grid > div:hover {
      transform: translateY(-5px);
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }

  /* Example search box highlight effect */
  .welcome-container .bg-blue-50 {
      position: relative;
      overflow: hidden;
  }

  .welcome-container .bg-blue-50::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(
          90deg, 
          rgba(255, 255, 255, 0) 0%, 
          rgba(255, 255, 255, 0.3) 50%,
          rgba(255, 255, 255, 0) 100%
      );
      animation: shine 3s infinite;
  }

  @keyframes shine {
      0% {
          left: -100%;
      }
      20% {
          left: 100%;
      }
      100% {
          left: 100%;
      }
  } 




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

  .animate-pulse-right {
      animation: pulseRight 2s ease-in-out infinite;
  }

  /* Background Process Indicator */
  .bg-process-indicator {
      position: fixed;
      bottom: 20px;
      right: 20px;
      padding: 10px 16px;
      background: rgba(59, 130, 246, 0.95);
      color: white;
      border-radius: 8px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      z-index: 40;
      transition: all 0.3s ease;
      backdrop-filter: blur(4px);
      max-width: 320px;
  }

  .progress-pulse {
      animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.7; }
  }

  /* Debug modal specific styles */
  .score-gauge {
      position: relative;
      width: 80px;
      height: 40px;
      overflow: hidden;
      display: inline-flex;
      align-items: flex-end;
      justify-content: center;
  }

  .score-gauge-bg {
      position: absolute;
      width: 80px;
      height: 80px;
      border-radius: 40px 40px 0 0;
      background: #f3f4f6;
      bottom: 0;
  }

  .score-gauge-fill {
      position: absolute;
      width: 80px;
      height: 80px;
      border-radius: 40px 40px 0 0;
      bottom: 0;
      transform-origin: bottom center;
  }

  .score-gauge-text {
      position: relative;
      z-index: 10;
      font-weight: 600;
      font-size: 12px;
      color: #1f2937;
  }

  .property-card {
      transition: all 0.2s ease;
  }

  .property-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }

  .image-highlight {
      position: relative;
      overflow: hidden;
  }

  .image-highlight::after {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
      animation: sweep 2s ease-in-out infinite;
  }

  @keyframes sweep {
      0% { left: -100%; }
      50% { left: 100%; }
      100% { left: 100%; }
  }

  .debug-toolbar {
      position: sticky;
      top: 0;
      z-index: 10;
      background-color: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(5px);
      border-bottom: 1px solid #e5e7eb;
  }

  .score-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      display: inline-block;
      margin-right: 2px;
  }

  /* Enhanced Loading Overlay Styles */
  .loading-overlay-enhanced {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      animation: fadeInOverlay 0.5s ease-out;
  }

  .loading-backdrop {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(
          135deg,
          rgba(30, 41, 59, 0.95) 0%,
          rgba(37, 99, 235, 0.9) 50%,
          rgba(30, 64, 175, 0.95) 100%
      );
      backdrop-filter: blur(10px);
      animation: gradientShift 8s ease-in-out infinite;
  }

  .loading-container-enhanced {
      position: relative;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px);
      border-radius: 24px;
      padding: 40px;
      min-width: 520px;
      max-width: 700px;
      width: 90vw;
      box-shadow: 
          0 25px 50px -12px rgba(0, 0, 0, 0.25),
          0 0 0 1px rgba(255, 255, 255, 0.2);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 32px;
      animation: slideInUp 0.6s ease-out;
  }

  /* Logo Section */
  .loading-logo {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
  }

  .logo-icon {
      width: 64px;
      height: 64px;
      background: linear-gradient(135deg, #4F46E5, #7C3AED);
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 28px;
      animation: logoFloat 3s ease-in-out infinite;
      box-shadow: 0 8px 32px rgba(79, 70, 229, 0.3);
  }

  .logo-text {
      font-size: 24px;
      font-weight: 700;
      background: linear-gradient(135deg, #4F46E5, #7C3AED);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      letter-spacing: 2px;
  }

  /* Progress Steps */
  .progress-steps {
      display: flex;
      align-items: center;
      gap: 20px;
      width: 100%;
      justify-content: center;
      flex-wrap: wrap;
  }

  .progress-step {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      min-width: 80px;
      transition: all 0.3s ease;
  }

  .step-circle {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 14px;
      transition: all 0.3s ease;
      position: relative;
  }

  .step-completed .step-circle {
      background: linear-gradient(135deg, #10B981, #059669);
      color: white;
      box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  }

  .step-active .step-circle {
      background: linear-gradient(135deg, #3B82F6, #2563EB);
      color: white;
      box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
      animation: pulseActive 2s ease-in-out infinite;
  }

  .step-pending .step-circle {
      background: #F3F4F6;
      color: #9CA3AF;
      border: 2px solid #E5E7EB;
  }

  .step-label {
      font-size: 12px;
      font-weight: 500;
      text-align: center;
      color: #6B7280;
      transition: color 0.3s ease;
  }

  .step-active .step-label {
      color: #3B82F6;
      font-weight: 600;
  }

  .step-completed .step-label {
      color: #10B981;
      font-weight: 600;
  }

  .step-spinner {
      width: 20px;
      height: 20px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-top: 2px solid white;
      border-radius: 50%;
      animation: spin 1s linear infinite;
  }

  /* Main Loading Animation */
  .main-loading-animation {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 24px;
  }

  .loading-spinner-container {
      position: relative;
  }

  .loading-spinner-primary {
      position: relative;
      width: 120px;
      height: 120px;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .spinner-ring {
      position: absolute;
      width: 100%;
      height: 100%;
      border: 3px solid transparent;
      border-radius: 50%;
      animation: spinRing 2s linear infinite;
  }

  .spinner-ring:nth-child(1) {
      border-top-color: #4F46E5;
      animation-duration: 2s;
  }

  .spinner-ring:nth-child(2) {
      border-right-color: #7C3AED;
      animation-duration: 3s;
      animation-direction: reverse;
      width: 80%;
      height: 80%;
  }

  .spinner-ring:nth-child(3) {
      border-bottom-color: #EC4899;
      animation-duration: 4s;
      width: 60%;
      height: 60%;
  }

  .center-icon {
      width: 40px;
      height: 40px;
      background: linear-gradient(135deg, #4F46E5, #7C3AED);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 18px;
      z-index: 10;
      animation: iconPulse 2s ease-in-out infinite;
  }

  /* Progress Bar */
  .progress-bar-container {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 8px;
      align-items: center;
  }

  .progress-bar {
      width: 100%;
      height: 8px;
      background: #F3F4F6;
      border-radius: 8px;
      overflow: hidden;
      position: relative;
  }

  .progress-fill {
      height: 100%;
      background: linear-gradient(90deg, #4F46E5, #7C3AED, #EC4899);
      border-radius: 8px;
      transition: width 0.3s ease;
      animation: progressShimmer 2s ease-in-out infinite;
      position: relative;
  }

  .progress-fill::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.4),
          transparent
      );
      animation: progressGlow 1.5s ease-in-out infinite;
  }

  .progress-percentage {
      font-size: 14px;
      font-weight: 600;
      color: #4F46E5;
  }

  /* Loading Messages */
  .loading-message-container {
      text-align: center;
      display: flex;
      flex-direction: column;
      gap: 8px;
  }

  .main-message {
      font-size: 20px;
      font-weight: 600;
      color: #1F2937;
      display: flex;
      align-items: center;
      gap: 8px;
  }

  .animated-dots {
      display: flex;
      gap: 4px;
  }

  .animated-dots .dot {
      width: 6px;
      height: 6px;
      background: #4F46E5;
      border-radius: 50%;
      animation: dotBounce 1.4s ease-in-out infinite;
  }

  .animated-dots .dot:nth-child(2) {
      animation-delay: 0.2s;
  }

  .animated-dots .dot:nth-child(3) {
      animation-delay: 0.4s;
  }

  .sub-message {
      font-size: 14px;
      color: #6B7280;
      animation: fadeInOut 3s ease-in-out infinite;
  }

  /* Loading Tips */
  .loading-tips {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px;
      background: rgba(79, 70, 229, 0.1);
      border-radius: 12px;
      border: 1px solid rgba(79, 70, 229, 0.2);
      animation: tipFloat 4s ease-in-out infinite;
  }

  .tip-icon {
      color: #F59E0B;
      font-size: 20px;
      animation: tipIconGlow 2s ease-in-out infinite;
  }

  .tip-text {
      font-size: 14px;
      color: #4F46E5;
      font-weight: 500;
  }

  /* Search Details */
  .search-details {
      display: flex;
      flex-direction: column;
      gap: 8px;
      width: 100%;
  }

  .search-detail-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 8px 16px;
      background: rgba(59, 130, 246, 0.1);
      border-radius: 8px;
      font-size: 14px;
      color: #1F2937;
  }

  .search-detail-item i {
      color: #3B82F6;
      width: 16px;
  }

  /* Floating Elements */
  .floating-elements {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      overflow: hidden;
      border-radius: 24px;
  }

  .floating-element {
      position: absolute;
      color: rgba(79, 70, 229, 0.1);
      font-size: 24px;
      animation: floatUp 8s linear infinite;
  }

  /* Animations */
  @keyframes fadeInOverlay {
      from {
          opacity: 0;
      }
      to {
          opacity: 1;
      }
  }

  @keyframes slideInUp {
      from {
          opacity: 0;
          transform: translateY(40px) scale(0.9);
      }
      to {
          opacity: 1;
          transform: translateY(0) scale(1);
      }
  }

  @keyframes gradientShift {
      0%, 100% {
          background: linear-gradient(
              135deg,
              rgba(30, 41, 59, 0.95) 0%,
              rgba(37, 99, 235, 0.9) 50%,
              rgba(30, 64, 175, 0.95) 100%
          );
      }
      50% {
          background: linear-gradient(
              135deg,
              rgba(30, 64, 175, 0.95) 0%,
              rgba(124, 58, 237, 0.9) 50%,
              rgba(30, 41, 59, 0.95) 100%
          );
      }
  }

  @keyframes logoFloat {
      0%, 100% {
          transform: translateY(0) rotate(0deg);
      }
      50% {
          transform: translateY(-8px) rotate(2deg);
      }
  }

  @keyframes pulseActive {
      0%, 100% {
          transform: scale(1);
          box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
      }
      50% {
          transform: scale(1.1);
          box-shadow: 0 8px 24px rgba(59, 130, 246, 0.6);
      }
  }

  @keyframes spinRing {
      from {
          transform: rotate(0deg);
      }
      to {
          transform: rotate(360deg);
      }
  }

  @keyframes iconPulse {
      0%, 100% {
          transform: scale(1);
      }
      50% {
          transform: scale(1.2);
      }
  }

  @keyframes progressShimmer {
      0%, 100% {
          opacity: 1;
      }
      50% {
          opacity: 0.8;
      }
  }

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

  @keyframes dotBounce {
      0%, 80%, 100% {
          transform: scale(0.8);
          opacity: 0.5;
      }
      40% {
          transform: scale(1.2);
          opacity: 1;
      }
  }

  @keyframes fadeInOut {
      0%, 100% {
          opacity: 0.7;
      }
      50% {
          opacity: 1;
      }
  }

  @keyframes tipFloat {
      0%, 100% {
          transform: translateY(0);
      }
      50% {
          transform: translateY(-4px);
      }
  }

  @keyframes tipIconGlow {
      0%, 100% {
          filter: brightness(1);
      }
      50% {
          filter: brightness(1.3);
      }
  }

  @keyframes floatUp {
      from {
          transform: translateY(100vh) rotate(0deg);
          opacity: 0;
      }
      10% {
          opacity: 0.3;
      }
      90% {
          opacity: 0.3;
      }
      to {
          transform: translateY(-100px) rotate(360deg);
          opacity: 0;
      }
  }

  /* Responsive Design */
  @media (max-width: 640px) {
      .loading-container-enhanced {
          min-width: 280px;
          max-width: 95vw;
          width: 95vw;
          padding: 24px;
          gap: 20px;
      }

      .progress-steps {
          gap: 12px;
      }

      .progress-step {
          min-width: 60px;
      }

      .step-circle {
          width: 36px;
          height: 36px;
          font-size: 12px;
      }

      .loading-spinner-primary {
          width: 80px;
          height: 80px;
      }

      .main-message {
          font-size: 18px;
      }

      .logo-text {
          font-size: 20px;
      }
  }

  /* Missing styles from original loading overlay */
  .dot-ellipsis::after {
      content: '';
      display: inline-block;
      width: 0;
      animation: ellipsis 1.5s infinite;
  }

  @keyframes ellipsis {
      0% {
          content: '';
      }
      25% {
          content: '.';
      }
      50% {
          content: '..';
      }
      75%, 100% {
          content: '...';
      }
  }

  .glow-spinner {
      box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  }
