/* Modal Workflow Tabs Styling */

/* Nav Pills Custom Styling */
#workflowTabs .nav-link {
  min-width: 120px;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: white;
  color: #64748B;
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
  transition: none;
}

#workflowTabs .nav-link:hover {
  background: #F8FAFC;
  border-color: #0A2540;
}

#workflowTabs .nav-link.active {
  border: 1px solid #1E4C7A;
  background: linear-gradient(135deg, #0A2540 0%, #1E4C7A 100%);
  color: white;
}

#workflowTabs .nav-link.active i {
  color: white;
}

#workflowTabs .nav-link i {
  font-size: 1rem;
  display: block;
  margin-bottom: 0.125rem;
}

/* Tab Content Styling */
#workflowTabContent {
  height: 615px;
  max-height: 78vh;
  overflow: hidden !important;
  scroll-behavior: smooth;
  padding: 1.5rem 2rem 0 !important;
  position: relative;
}

#workflowTabContent .tab-pane {
  height: 540px;
  overflow-y: auto;
  padding-bottom: 0 !important;
  transition: none !important;
  animation: none !important;
}

/* Fixed CTA at bottom */
#workflowTabContent .text-center.mt-4 {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  padding: 1rem 2rem 2rem !important;
  background: linear-gradient(to top, white 80%, transparent) !important;
  z-index: 10 !important;
}

/* Remove all Bootstrap fade transitions */
.tab-pane.fade {
  transition: none !important;
}

.tab-pane.fade.show {
  transition: none !important;
}

/* Compact Modal Content */
.modal-workflow-step {
  padding: 1rem !important;
}

.modal-workflow-step .step-badge-modal {
  min-width: 40px !important;
  height: 40px !important;
  font-size: 1.125rem !important;
}

.modal-workflow-step h5 {
  font-size: 1.0625rem !important;
  margin-bottom: 0.375rem !important;
}

.modal-workflow-step p.text-gray-700 {
  font-size: 0.875rem !important;
  line-height: 1.45 !important;
  margin-bottom: 0.625rem !important;
}

.modal-workflow-step .row {
  row-gap: 0.375rem !important;
}

.modal-workflow-step .feature-item {
  padding: 0.625rem !important;
  min-height: 82px !important;
  display: flex !important;
  align-items: flex-start !important;
}

.modal-workflow-step .feature-item strong {
  font-size: 0.8125rem !important;
}

.modal-workflow-step .feature-item p {
  font-size: 0.78125rem !important;
  line-height: 1.35 !important;
}

.modal-workflow-step .d-flex.gap-4 {
  gap: 0.875rem !important;
}

.modal-workflow-step > div > div:last-child {
  width: 36px !important;
  height: 36px !important;
}

.modal-workflow-step > div > div:last-child i {
  font-size: 1.125rem !important;
}

/* Compact CTA */
#workflowTabContent .text-center.mt-4 {
  margin-top: 0.75rem !important;
}

#workflowTabContent .btn {
  padding: 0.5rem 1.25rem !important;
  font-size: 0.875rem !important;
}

#workflowTabContent .text-center p {
  margin-top: 0.375rem !important;
  font-size: 0.6875rem !important;
}

/* Responsive */
@media (max-width: 768px) {
  #workflowTabs {
    flex-wrap: wrap;
    gap: 0.75rem !important;
  }
  
  #workflowTabs .nav-link {
    min-width: 100px;
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
  }
  
  #workflowTabs .nav-link i {
    font-size: 1rem;
  }
  
  .modal-workflow-step {
    padding: 1rem !important;
  }
  
  .modal-workflow-step .d-flex.gap-4 {
    gap: 0.75rem !important;
  }
}
