/* Custom overrides or additions to Bootstrap */
h1 {
    color: #007bff;
    text-align: center;
    margin-top: 2rem;
  }
  
  .container {
    max-width: 752px;
    width: 100%;
  }
  .logo-img-equi {
      max-width: 230px;
      margin: 0 auto;
      display: block;
      margin-top: 40px;
  }
  .card {
      border-radius: 3px;
      box-shadow: 0 4px 4px rgba(87, 100, 126, .21);
      border: none;
      margin-bottom: 50px;
  }
  .card-header {
      margin: 0px;
      padding: 2.5em 52px;
      background: #fff;
      font-size: 2em;
      font-weight: 600;
      line-height: 1.45;
      color: #2C3345;
      text-align: center;
  }
  .card-body {
      padding: 28px 38px;
  }
  .form-label {
      margin-bottom: .5rem;
      font-weight: 600;
      word-break: break-word;
      color: #2C3345;
      font-size: 14px;
  }
  ul.term-list {
      list-style: none;
      padding: 0px;
  }
  .eq-form h2 {
      font-size: 1.25em;
      margin-bottom: 4px;
      margin: 0;
      font-weight: 600;
      line-height: 1.45;
      color: #2C3345;
  }
  .sellers-guide {
      display: inline-block;
      padding: 12px 24px;
      background-color: #009671;
      color: white;
      text-decoration: none;
      border-radius: 6px;
      font-weight: bold;
      font-family: Arial, sans-serif;
      font-size: .9375em;
      line-height: 1.6;
      word-break: break-word;
  }
  .card-footer.text-body-secondary.text-center { 
      display: flex;
      -ms-flex-wrap: wrap;
      flex-wrap: wrap;
      -ms-flex-pack: center;
      justify-content: center;
      position: relative;
      margin: 0 0px 10px;
      padding: 30px 52px; 
      row-gap: .625rem;
      background: #fff;
      border-top: 1px solid #e5e7f2;
  }
  .submit {
      background-color: #18bd5b;
      border-color: #18bd5b;
      color: #fff;
      width: auto;
      min-width: 180px;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 3.2em;
      font-size: 1em;
      border-radius: 4px;
      border: 1px solid;
      font-weight: 500;
      padding: 0 .75rem;
      position: relative;
  }
  .submit:hover {
      background-color: #16aa52;
      border-color: #16aa52;
  }
  
  /* Loading state styles */
  .submit.loading .spinner-border {
      display: inline-block;
      margin-right: 8px;
  }
  
  .submit:not(.loading) .spinner-border {
      display: none;
  }
  
  .submit.loading .btn-text {
      display: none;
  }
  
  .submit.loading .btn-text-loading {
      display: inline;
  }
  
  .submit:not(.loading) .btn-text-loading {
      display: none;
  }
  
  /* Brand Autocomplete Styles */
  .brand-autocomplete-wrapper {
      position: relative;
  }
  
  .brand-input-container {
      position: relative;
  }
  
  .brand-input {
      padding-right: 60px;
      transition: all 0.3s ease;
  }
  
  .brand-input:focus {
      border-color: #18bd5b;
      box-shadow: 0 0 0 0.2rem rgba(24, 189, 91, 0.25);
  }
  
  .brand-input-icon {
      position: absolute;
      right: 15px;
      top: 50%;
      transform: translateY(-50%);
      color: #6c757d;
      pointer-events: none;
      transition: color 0.3s ease;
  }
  
  .brand-input:focus + .brand-input-icon {
      color: #18bd5b;
  }
  
  .brand-loading-spinner {
      position: absolute;
      right: 15px;
      top: 50%;
      transform: translateY(-50%);
      color: #18bd5b;
  }
  
  .brand-dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: white;
      border: 1px solid #dee2e6;
      border-top: none;
      border-radius: 0 0 8px 8px;
      max-height: 250px;
      overflow: hidden;
      z-index: 1050;
      display: none;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      animation: brandDropdownFadeIn 0.2s ease-out;
  }
  
  @keyframes brandDropdownFadeIn {
      from {
          opacity: 0;
          transform: translateY(-10px);
      }
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }
  
  .brand-dropdown.show {
      display: block;
  }
  
  .brand-dropdown-content {
      max-height: 200px;
      overflow-y: auto;
  }
  
  .brand-dropdown-content::-webkit-scrollbar {
      width: 6px;
  }
  
  .brand-dropdown-content::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 3px;
  }
  
  .brand-dropdown-content::-webkit-scrollbar-thumb {
      background: #c1c1c1;
      border-radius: 3px;
  }
  
  .brand-dropdown-content::-webkit-scrollbar-thumb:hover {
      background: #a8a8a8;
  }
  
  .brand-item {
      padding: 12px 16px;
      cursor: pointer;
      border-bottom: 1px solid #f8f9fa;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: space-between;
  }
  
  .brand-item:hover {
      background-color: #f8f9fa;
  }
  
  .brand-item.selected {
      background-color: #e3f2fd;
      border-left: 3px solid #18bd5b;
  }
  
  .brand-item:last-child {
      border-bottom: none;
  }
  
  .brand-item-name {
      font-weight: 500;
      color: #333;
  }
  
  .brand-item-count {
      font-size: 12px;
      color: #6c757d;
      background: #f8f9fa;
      padding: 2px 8px;
      border-radius: 12px;
  }
  
  .brand-dropdown-footer {
      padding: 8px 16px;
      background: #f8f9fa;
      border-top: 1px solid #dee2e6;
      text-align: center;
  }
  
  .brand-no-results {
      padding: 20px 16px;
      text-align: center;
      color: #6c757d;
      font-style: italic;
  }
  
  .brand-item.new-brand {
      background-color: #e8f5e8;
      border-left: 3px solid #28a745;
  }
  
  .brand-item.new-brand .brand-item-name {
      color: #155724;
  }

/* EquiFinds Product Upload Styles */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.logo-img-equi {
    max-width: 200px;
    height: auto;
    margin-bottom: 30px;
}

.eq-form {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.eq-form .card-header {
    background: linear-gradient(135deg, #18bd5b 0%, #0d8f3f 100%);
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
    border: none;
}

.eq-form .card-body {
    padding: 30px;
}

.eq-form .card-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 20px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #18bd5b;
    box-shadow: 0 0 0 0.2rem rgba(24, 189, 91, 0.25);
}

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

.form-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.btn-success {
    background: linear-gradient(135deg, #18bd5b 0%, #0d8f3f 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 150px;
}

.btn-success:hover {
    background: linear-gradient(135deg, #0d8f3f 0%, #18bd5b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(24, 189, 91, 0.3);
}

.btn-success:active {
    transform: translateY(0);
}

.sellers-guide {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.sellers-guide:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    color: white;
    text-decoration: none;
}

.term-list {
    list-style: none;
    padding-left: 0;
}

.term-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
}

.term-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #18bd5b;
    font-weight: bold;
}

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

.form-check-input:checked {
    background-color: #18bd5b;
    border-color: #18bd5b;
}

.form-check-input:focus {
    border-color: #18bd5b;
    box-shadow: 0 0 0 0.2rem rgba(24, 189, 91, 0.25);
}

.alert {
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.loading-spinner {
    display: none;
}

.loading .loading-spinner {
    display: inline-block;
}

.loading .btn-text {
    display: none;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #f8f9fa;
}

.upload-area:hover {
    border-color: #18bd5b;
    background-color: rgba(24, 189, 91, 0.05);
}

.upload-area.dragover {
    border-color: #18bd5b;
    background-color: rgba(24, 189, 91, 0.1);
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #dee2e6;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-item .remove-image:hover {
    background: rgba(255, 0, 0, 1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .eq-form .card-body {
        padding: 20px;
    }
    
    .logo-img-equi {
        max-width: 150px;
    }
    
    .btn-success {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .eq-form .card-body {
        padding: 15px;
    }
    
    .upload-area {
        padding: 20px;
    }
    
    .image-preview-item {
        width: 80px;
        height: 80px;
    }
}