/* Sample Requests Page Styles */
.sample-requests-page {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 2rem;
  text-align: center;
}

.page-header h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.sample-requests-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--secondary-color1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Sample requests use inquiries styling from profile.css */

.sample-request-item {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sample-request-product {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.product-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-link:hover .product-image {
  transform: scale(1.05);
}

.product-link {
  text-decoration: none;
}

.product-title-link {
  text-decoration: none;
  color: var(--text-primary);
}

.product-title-link:hover {
  color: var(--primary-color);
}

.sample-request-details h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.sample-request-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.sample-request-status {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  text-transform: capitalize;
}

.sample-request-date {
  background: var(--gray-light);
  color: var(--text-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Progress Line */
.progress-container {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.progress-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 0rem 0;
}

.progress-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border-color);
  z-index: 1;
  transform: translateY(-50%);
}

.progress-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 3px;
  background: var(--secondary-color2);
  z-index: 2;
  transform: translateY(-50%);
  transition: width 0.8s ease;
}

.progress-line.pending::after {
  width: 20%;
}
.progress-line.approved::after {
  width: 40%;
}
.progress-line.payment::after {
  width: 60%;
}
.progress-line.shipped::after {
  width: 80%;
}
.progress-line.delivered::after {
  width: 100%;
}
.progress-line.cancelled::after {
  width: 0%;
  background: var(--error);
}

.progress-line.cancelled .step-icon:not(.cancelled) {
  border-color: var(--border-color);
  background: var(--white);
  color: var(--text-secondary);
  transform: none;
}

.progress-line.cancelled .step-label:not(.cancelled) {
  color: var(--text-secondary);
  font-weight: 500;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
  /* background: var(--white); */
  padding: 0.5rem;
  padding-top: 26px;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  border: 3px solid var(--border-color);
  background: var(--white);
  color: var(--text-secondary);
}

.step-icon.active {
  border-color: var(--secondary-color2);
  background: var(--secondary-color2);
  color: var(--white);
  transform: scale(1.1);
}

.step-icon.completed {
  border-color: var(--secondary-color2);
  background: var(--secondary-color2);
  color: var(--white);
}

.step-icon.cancelled {
  border-color: var(--error);
  background: var(--error);
  color: var(--white);
}

.step-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 500;
}

.step-label.active {
  color: var(--secondary-color2);
  font-weight: 600;
}

.step-label.completed {
  color: var(--secondary-color2);
}

.step-label.cancelled {
  color: var(--error);
}

.step-date {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  text-align: center;
}

.request-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  color: var(--text-primary);
  font-weight: 500;
}

.no-requests {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.no-requests i {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--border-color);
}

/* Step Modal Styles */
.step-modal {
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.step-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.step-progress .step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border-color);
  color: var(--text-secondary);
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
}

.step-progress .step.active {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

.step-progress .step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 30px;
  height: 2px;
  background: var(--border-color);
  transform: translateY(-50%);
}

.step-progress .step.active:not(:last-child)::after {
  background: var(--primary-color);
}

#sample-request-modal .step-content {
  display: none !important;
}

#sample-request-modal .step-content.active {
  display: block !important;
}

.step-content .form-group {
  display: block !important;
  margin-bottom: 1rem;
}

.step-content .input-wrapper {
  display: flex !important;
  align-items: center;
  position: relative;
}

.step-content .input-wrapper input,
.step-content .input-wrapper textarea {
  display: block !important;
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
}

.step-content .input-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--text-secondary);
  z-index: 2;
}

/* Error styling handled by error.css */

.step-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.step-navigation button {
  flex: 1;
  max-width: 150px;
}

.step-navigation .btn-secondary,
.step-navigation .btn-primary {
  padding: 12px 24px;
  font-size: 1rem;
  min-width: 120px;
  height: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .sample-requests-page {
    padding: 1rem;
  }

  .request-header {
    flex-direction: column;
    text-align: center;
  }

  .progress-line {
    flex-wrap: nowrap;
    min-width: 500px;
  }

  .progress-container {
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .step-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .step-label {
    font-size: 0.7rem;
  }

  .request-details {
    grid-template-columns: 1fr;
  }

  .step-modal {
    width: 95%;
    max-height: 95vh;
  }

  .step-progress {
    gap: 0.5rem;
  }

  .step-progress .step {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .step-progress .step:not(:last-child)::after {
    width: 20px;
  }

  .step-navigation {
    flex-direction: column;
  }

  .step-navigation button {
    max-width: none;
  }
}
