/* erp-list.css - Updated CSS */

/* ERP Solutions Section - Specific Styles */
.erp-solutions {
  padding: 4rem 0;
  background-color: #f8fafc;
}

.erp-solutions .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Header */
.erp-solutions .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.erp-solutions .section-header h1 {
  font-size: 2.25rem;
  color: #0f172a;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.erp-solutions .section-header p {
  color: #64748b;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Filters Section */
.erp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 2rem;
  align-items: center;
  background: white;
  padding: 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
  font-weight: 500;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f8fafc;
}

.search-input:focus {
  outline: none;
  border-color: #0c84c0;
  box-shadow: 0 0 0 3px rgba(12, 132, 192, 0.1);
}

#reset-filters {
  background: #f1f5f9;
  color: #0f172a;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#reset-filters:hover {
  background: #e2e8f0;
}

/* ERP Cards Grid - Updated Layout */
.erp-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.erp-card {
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  position: relative;
  display: flex;
  min-height: 180px;
}

.erp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.erp-card.highlighted {
  border: 2px solid #0c84c0;
}

.highlight-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: #0c84c0;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.erp-card a {
  display: flex;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* Card Content - Side by Side Layout */
.erp-logo-container {
  width: 240px; /* Increased from 200px */
  min-width: 240px; /* Increased from 200px */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: white;
  border-right: 1px solid #f1f5f9;
}

.erp-logo-container img {
  max-height: 150px; /* Increased from 80px */
  max-width: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
}

.erp-content {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.erp-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
  font-weight: 600;
}

.erp-description {
  color: #64748b;
  margin-bottom: 1rem;
  line-height: 1.5;
  font-size: 0.9375rem;
  flex: 1;
}

.erp-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.erp-feature {
  background: #f1f5f9;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
  color: #334155;
  font-weight: 500;
}

.erp-meta {
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #475569;
}

.meta-item i {
  margin-right: 0.5rem;
  color: #0c84c0;
  width: 1rem;
  text-align: center;
}

.erp-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.erp-price {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.9375rem;
}

.btn-primary {
  background-color: #0c84c0;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  white-space: nowrap; 
  min-width: 140px;
  justify-content: center; 
  text-align: center; 
}

.btn-primary:hover {
  background-color: #0a6ea3;
  transform: translateY(-2px);
}

/* Loading Spinner */
.loading-spinner {
  text-align: center;
  padding: 2rem;
  display: none;
}

.spinner {
  border: 4px solid rgba(12, 132, 192, 0.1);
  border-radius: 50%;
  border-top: 4px solid #0c84c0;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* No Results */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  display: none;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.no-results i {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.no-results h3 {
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.no-results p {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

/* CTA Box */
.section-cta {
  margin-top: 3rem;
}

.cta-box {
  background: #0c84c0;
  color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
}

.cta-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cta-box p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .erp-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .erp-card {
    flex-direction: column;
    min-height: auto;
  }
  
  .erp-logo-container {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem;
  }
  
  .erp-logo-container img {
    max-height: 60px;
  }
  
  .erp-meta {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .erp-solutions .section-header h1 {
    font-size: 2rem;
  }
  
  .highlight-badge {
    right: 0.5rem;
    top: 0.5rem;
  }
  
  .erp-meta {
    grid-template-columns: 1fr;
  }
}

/* Select2 Overrides */
.select2-container {
  width: 100% !important;
}

.select2-selection {
  height: 46px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.375rem !important;
  background-color: #f8fafc !important;
}

.select2-selection__rendered {
  line-height: 46px !important;
  padding-left: 1rem !important;
  color: #334155 !important;
}

.select2-selection__arrow {
  height: 46px !important;
}

.select2-dropdown {
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.375rem !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.select2-results__option {
  padding: 0.5rem 1rem !important;
}

.select2-results__option--highlighted {
  background-color: #f1f5f9 !important;
  color: #0c84c0 !important;
}

@media (max-width: 768px) {
  .erp-logo-container {
    width: 100%;
    min-width: 100%;
  }
  
  .erp-logo-container img {
    max-height: 80px;
  }
}

/* Disclaimer Banner Styles */
.disclaimer-banner {
  background-color: #f8f9fa;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
}

.disclaimer-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.disclaimer-content i {
  color: #ffc107;
  font-size: 1.5rem;
  margin-top: 2px;
}

.disclaimer-toggle {
  color: #0066cc;
  cursor: pointer;
  text-decoration: underline;
}

.disclaimer-toggle:hover {
  text-decoration: none;
}

.disclaimer-full {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

/* Vendor Submission Form Styles */
.vendor-submission {
  background-color: #f5f7fa;
  border-radius: 8px;
  padding: 30px;
  margin: 40px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.submission-header {
  text-align: center;
  margin-bottom: 25px;
}

.submission-header h3 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.submission-header i {
  color: #3498db;
  margin-right: 8px;
}

.vendor-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #34495e;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-group textarea {
  min-height: 120px;
}

.form-group input[type="file"] {
  padding: 5px;
}

.form-submit {
  grid-column: span 2;
  text-align: center;
  margin-top: 15px;
}

/* Success Message Styles */
.submission-success {
  text-align: center;
  padding: 30px;
  display: none;
}

.submission-success i {
  color: #2ecc71;
  font-size: 3rem;
  margin-bottom: 15px;
}

.submission-success h3 {
  color: #2c3e50;
  margin-bottom: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .vendor-form {
    grid-template-columns: 1fr;
  }
  
  .form-submit {
    grid-column: span 1;
  }
}

.submission-success {
  background-color: #e6ffed;
  border: 1px solid #2e7d32;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
  border-radius: 8px;
  color: #2e7d32;
}

/* Add this to your erp-list.css file */

/* Improved Checkbox Group Styles */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  margin-top: 8px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  color: #475569;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
  margin-bottom: 0;
}

.checkbox-group label:hover {
  background: #f1f5f9;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

/* Form Group Specific for Checkboxes */
.form-group.checkbox-container {
  grid-column: span 2;
}

.form-group.checkbox-container label:first-child {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #34495e;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .checkbox-group {
    grid-template-columns: 1fr;
  }
  
  .form-group.checkbox-container {
    grid-column: span 1;
  }
}

/* Update the mobile media queries in erp-list.css */

@media (max-width: 768px) {
  .erp-card {
    flex-direction: column;
    min-height: auto;
  }
  
  .erp-logo-container {
    width: 100%;
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem;
    height: auto;
  }
  
  .erp-logo-container img {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
  }
  
  .erp-content {
    padding: 1rem;
  }
  
  .erp-title {
    font-size: 1.1rem;
  }
  
  .erp-description {
    font-size: 0.9rem;
  }
  
  .erp-features {
    gap: 0.3rem;
  }
  
  .erp-feature {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  
  .erp-meta {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .meta-item {
    font-size: 0.8rem;
  }
  
  .erp-cta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .btn-primary {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .erp-cards-grid {
    grid-template-columns: 1fr;
  }

  .erp-card {
    flex-direction: column;
    min-height: auto;
    display: flex;
    width: 100%;
  }

  .erp-logo-container {
    width: 100%;
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem;
    height: auto;
    display: flex;
    justify-content: center;
  }

  .erp-logo-container img {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
  }

  .erp-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1rem;
  }

  .erp-title {
    font-size: 1.1rem;
  }

  .erp-description {
    font-size: 0.9rem;
  }

  .erp-meta {
    grid-template-columns: 1fr;
  }

  .erp-features {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .erp-cta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .erp-price,
  .btn-primary {
    width: 100%;
  }
}
