 :root {
     --primary: #153d6f;
     --primary-dark: #0e2d52;
     --primary-light: #e8eef5;
     --accent: #b69964;
     --accent-dark: #9e7d4a;
     --accent-light: #f5efe6;
     --gray-100: #f8f9fa;
     --gray-200: #e9ecef;
     --gray-300: #dee2e6;
     --gray-400: #ced4da;
     --gray-500: #adb5bd;
     --gray-600: #6c757d;
 }

 .bg-ropa-primary {
     background-color: var(--primary);
 }

 .text-ropa-primary {
     color: var(--primary);
 }

 .bg-ropa-accent {
     background-color: var(--accent);
 }

 .text-ropa-accent {
     color: var(--accent);
 }

 .btn-ropa-primary {
     background-color: var(--primary);
     color: white;
     border: none;
 }

 .btn-ropa-primary:hover {
     background-color: var(--primary-dark);
     color: white;
 }

 .btn-ropa-accent {
     background-color: var(--accent);
     color: white;
     border: none;
 }

 .btn-ropa-accent:hover {
     background-color: var(--accent-dark);
     color: white;
 }

 .searchable-dropdown {
     background-image: url("data:image/svg+xml,...");
     /* custom dropdown arrow */
 }


 body {
     font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
     background: linear-gradient(135deg, var(--gray-100) 0%, #ffffff 100%);
     min-height: 100vh;
 }

 /* Navbar */

 /* Navbar Hover Effects */
 .navbar .nav-link {
     position: relative;
     transition: all 0.3s ease;
 }

 .navbar .nav-link:not(.dropdown-toggle):hover {
     background: rgba(255, 255, 255, 0.08);
     transform: translateY(-2px);
 }

 .navbar .nav-link:hover .nav-indicator {
     width: 80%;
 }

 /* Dropdown Animation */
 @keyframes slideDown {
     from {
         opacity: 0;
         transform: translateY(-10px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .dropdown-menu {
     animation: slideDown 0.3s ease;
 }

 /* Dropdown Item Hover */
 .dropdown-item {
     transition: all 0.3s ease;
     border-radius: 8px;
     margin: 4px 8px;
 }

 .dropdown-item:hover {
     background: #f8f9fa;
     transform: translateX(5px);
     padding-left: 20px !important;
 }

 /* Brand Hover */
 .navbar-brand:hover .brand-icon {
     background: rgba(255, 255, 255, 0.25);
     transform: scale(1.05);
 }

 .navbar-brand {
     transition: transform 0.3s ease;
 }

 .navbar-brand:hover {
     transform: translateY(-2px);
 }

 /* Mobile Responsive */
 @media (max-width: 768px) {
     .navbar .nav-link {
         margin: 8px 0;
         text-align: center;
         justify-content: center;
     }

     .navbar .nav-link .nav-indicator {
         display: none;
     }

     .dropdown-menu {
         width: 100%;
     }

     .navbar-brand .brand-icon {
         padding: 6px 10px;
     }

     .navbar-brand span {
         font-size: 1.1rem;
     }
 }

 /* Active Page Indicator */
 .navbar .nav-link.active {
     background: rgba(255, 255, 255, 0.12);
     font-weight: 600;
 }

 .navbar .nav-link.active .nav-indicator {
     width: 80%;
 }

 /* Custom Scrollbar for Dropdown */
 .dropdown-menu {
     max-height: 80vh;
     overflow-y: auto;
 }

 .dropdown-menu::-webkit-scrollbar {
     width: 6px;
 }

 .dropdown-menu::-webkit-scrollbar-track {
     background: #f1f1f1;
     border-radius: 3px;
 }

 .dropdown-menu::-webkit-scrollbar-thumb {
     background: #b69964;
     border-radius: 3px;
 }

 /* Ripple Effect for Buttons */
 .nav-link,
 .dropdown-item {
     position: relative;
     overflow: hidden;
 }

 .nav-link:after,
 .dropdown-item:after {
     content: '';
     position: absolute;
     top: 50%;
     left: 50%;
     width: 0;
     height: 0;
     border-radius: 50%;
     background: rgba(255, 255, 255, 0.2);
     transform: translate(-50%, -50%);
     transition: width 0.6s, height 0.6s;
 }

 .nav-link:active:after,
 .dropdown-item:active:after {
     width: 300px;
     height: 300px;
 }

 /* Cards */
 .card {
     border: none;
     border-radius: 20px;
     box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
    
 }

 .card:hover {
     transform: translateY(-5px);
     box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
 }

 .card-header {
     background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
     color: white;
     border: none;
     padding: 1.5rem;
 }

 /* Buttons */
 .btn {
     border-radius: 12px;
     padding: 0.625rem 1.5rem;
     font-weight: 600;
     transition: all 0.3s ease;
     position: relative;
     overflow: hidden;
 }

 .btn::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
     transition: left 0.5s ease;
 }

 .btn:hover::before {
     left: 100%;
 }

 .btn-primary {
     background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
     border: none;
 }

 .btn-primary:hover {
     background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
     transform: translateY(-2px);
     box-shadow: 0 5px 15px rgba(21, 61, 111, 0.3);
 }

 .btn-accent {
     background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
     color: white;
     border: none;
 }

 .btn-accent:hover {
     background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
     transform: translateY(-2px);
     box-shadow: 0 5px 15px rgba(182, 153, 100, 0.3);
     color: white;
 }

 .btn-outline-primary {
     border: 2px solid var(--primary);
     color: var(--primary);
 }

 .btn-outline-primary:hover {
     background: var(--primary);
     border-color: var(--primary);
 }

 .btn-outline-accent {
     border: 2px solid var(--accent);
     color: var(--accent);
 }

 .btn-outline-accent:hover {
     background: var(--accent);
     border-color: var(--accent);
     color: white;
 }

 /* Enhanced Step 6 Styling */
 .form-section .card {
     transition: all 0.3s ease;
     border-radius: 16px !important;
 }

 .form-section .card:hover {
     transform: translateY(-2px);
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
 }

 .tag-chip {
     background: linear-gradient(135deg, #e8eef5 0%, #ffffff 100%);
     border: 1px solid rgba(21, 61, 111, 0.1);
     transition: all 0.2s ease;
 }

 .tag-chip:hover {
     background: #ffffff;
     transform: scale(1.02);
 }

 .form-check-input:checked {
     background-color: #153d6f;
     border-color: #153d6f;
 }

 .form-select:focus,
 .form-control:focus {
     border-color: #b69964;
     box-shadow: 0 0 0 0.2rem rgba(182, 153, 100, 0.25);
 }

 /* Badge animations */
 .badge {
     transition: all 0.2s ease;
 }

 .badge:hover {
     transform: translateY(-1px);
 }

 /* Form Controls */
 .form-control,
 .form-select {
     border-radius: 12px;
     border: 2px solid var(--gray-200);
     padding: 0.75rem 1rem;
     transition: all 0.3s ease;
 }

 .form-control:focus,
 .form-select:focus {
     border-color: var(--primary);
     box-shadow: 0 0 0 0.2rem rgba(21, 61, 111, 0.15);
 }

 .form-label {
     font-weight: 600;
     color: var(--primary);
     margin-bottom: 0.5rem;
 }

 /* Progress Stepper */
 .step-wrapper {
     background: white;
     border-radius: 100px;
     padding: 0.5rem;
     box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
     margin-bottom: 2rem;
 }

 .progress-stepper {
     display: flex;
     justify-content: space-between;
     position: relative;
     background: transparent;
     border-radius: 100px;
     padding: 0.5rem;
 }

 .progress-stepper::before {
     content: '';
     position: absolute;
     top: 50%;
     left: 0;
     right: 0;
     height: 3px;
     background: var(--gray-200);
     transform: translateY(-50%);
     z-index: 1;
 }

 /* Step Navigation Styles */
 .step-item {
     position: relative;
     z-index: 2;
     background: white;
     border-radius: 50%;
     width: 50px;
     height: 50px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-weight: bold;
     border: 3px solid var(--gray-200);
     transition: all 0.3s ease;
     cursor: pointer;
 }

 .step-item.completed {
     background: var(--primary);
     border-color: var(--primary);
     color: white;
     cursor: pointer;
 }

 .step-item.completed:hover {
     transform: scale(1.1);
     box-shadow: 0 5px 15px rgba(21, 61, 111, 0.3);
 }

 .step-item.active {
     background: white;
     border-color: var(--accent);
     color: var(--accent);
     transform: scale(1.1);
     box-shadow: 0 0 0 5px rgba(182, 153, 100, 0.2);
     cursor: default;
 }

 .step-item.locked {
     background: var(--gray-100);
     border-color: var(--gray-300);
     color: var(--gray-500);
     cursor: not-allowed;
     opacity: 0.6;
 }

 .step-item.locked:hover {
     transform: none;
     box-shadow: none;
 }

 .step-number {
     position: relative;
     z-index: 2;
 }

 .step-lock {
     position: absolute;
     top: -5px;
     right: -5px;
     background: var(--gray-500);
     border-radius: 50%;
     width: 18px;
     height: 18px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 0.7rem;
     color: white;
     z-index: 3;
 }

 /* Tooltip for locked steps */
 .step-item.locked:hover::after {
     content: "Complete previous steps first";
     position: absolute;
     bottom: -30px;
     left: 50%;
     transform: translateX(-50%);
     background: rgba(0, 0, 0, 0.8);
     color: white;
     padding: 4px 8px;
     border-radius: 4px;
     font-size: 0.7rem;
     white-space: nowrap;
     z-index: 10;
 }

 /* Responsive adjustments */
 @media (max-width: 768px) {
     .step-item {
         width: 35px;
         height: 35px;
         font-size: 0.8rem;
     }

     .step-lock {
         width: 14px;
         height: 14px;
         font-size: 0.5rem;
         top: -3px;
         right: -3px;
     }

     .step-item.locked:hover::after {
         font-size: 0.6rem;
         bottom: -25px;
         white-space: nowrap;
     }
 }

 .step-label {
     position: absolute;
     top: 60px;
     left: 50%;
     transform: translateX(-50%);
     font-size: 0.75rem;
     font-weight: 600;
     color: var(--gray-600);
     /* white-space: nowrap; */
     text-align: center;
 }

 /* Tags/ chips */
 .tag-chip {
     background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
     color: var(--primary);
     padding: 0.5rem 1rem;
     border-radius: 50px;
     font-size: 0.875rem;
     font-weight: 500;
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
     transition: all 0.3s ease;
     border: 1px solid rgba(21, 61, 111, 0.1);
 }

 .tag-chip:hover {
     transform: translateY(-2px);
     box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
 }

 .tag-chip button {
     background: none;
     border: none;
     color: var(--primary);
     cursor: pointer;
     font-size: 1.2rem;
     line-height: 1;
     padding: 0;
     width: 20px;
     height: 20px;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     border-radius: 50%;
     transition: all 0.3s ease;
 }

 .tag-chip button:hover {
     background: rgba(21, 61, 111, 0.1);
     transform: scale(1.1);
 }

 /* Alerts */
 .alert {
     border: none;
     border-radius: 16px;
     padding: 1rem 1.5rem;
 }

 .alert-info {
     background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
     color: var(--primary);
     border-left: 4px solid var(--primary);
 }

 .alert-warning {
     background: linear-gradient(135deg, var(--accent-light) 0%, #ffffff 100%);
     color: var(--accent-dark);
     border-left: 4px solid var(--accent);
 }

 /* Animations */
 @keyframes fadeInUp {
     from {
         opacity: 0;
         transform: translateY(30px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .fade-in-up {
     animation: fadeInUp 0.6s ease-out;
 }

 /* Dashboard Cards */
 .stat-card {
     background: white;
     border-radius: 20px;
     padding: 1.5rem;
     text-align: center;
     transition: all 0.3s ease;
     cursor: pointer;
 }

 .stat-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
 }

 .stat-icon {
     width: 60px;
     height: 60px;
     background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     margin: 0 auto 1rem;
 }

 .stat-icon i {
     font-size: 2rem;
     color: var(--primary);
 }

 /* Footer */
 .footer {
     background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
     color: white;
     padding: 2rem 0;
     margin-top: 4rem;
 }

 /* Responsive */
 @media (max-width: 768px) {
     .step-item {
         width: 35px;
         height: 35px;
         font-size: 0.8rem;
     }

     .step-label {
         font-size: 0.6rem;
         top: 45px;
         white-space: normal;
         width: 70px;
         text-align: center;
     }

     .btn {
         padding: 0.5rem 1rem;
         font-size: 0.875rem;
     }
 }

/* Loading Spinner */
  .loading-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1050; /* Below SweetAlert2 modal (1070) */
      display: none;
      align-items: center;
      justify-content: center;
  }

  .spinner-border-custom {
      width: 3rem;
      height: 3rem;
      border-width: 0.3rem;
      border-color: var(--primary);
      border-right-color: transparent;
  }


  /* Responsive styles */
  @media (max-width: 768px) {
      .step-label {
          font-size: 0.5rem;
          max-width: 50px;
      }

      .step {
          width: 30px;
          height: 30px;
          font-size: 0.8rem;
      }

      .card-header-custom h3 {
          font-size: 1.2rem;
      }
  }

  /* Multi-select with autocomplete */
  .multi-select-container {
      position: relative;
      z-index: 99999;
  }

  .chips-container {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
  }

  .suggestions-dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: #ffffff;
      border: 1px solid var(--gray-200);
      border-radius: 0.5rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      max-height: 200px;
      overflow-y: auto;
      z-index: 99999;
      margin-top: 4px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-4px);
      transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
      pointer-events: none;
      will-change: transform, opacity;
  }

  .suggestions-dropdown.active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
  }

  .suggestion-item {
      padding: 0.5rem 0.75rem;
      cursor: pointer;
      font-size: 0.875rem;
      transition: background 0.15s ease;
      border-bottom: 1px solid var(--gray-100);
  }

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

  .suggestion-item:hover,
  .suggestion-item.custom {
      background: var(--primary-light);
      color: var(--primary);
  }
