.bg-app {
  background-color: #e9ecef !important;
}

.video-demo {
  width: 100%;
  aspect-ratio: 16/9;
}

.uniprot-status-bar {
  background-color: #3950c4;
  font-size: .9em;
}

.navbar-brand img {
  width: 32px;
  height: 32px;
  margin-right: 8px;
}

nav.navbar.bg-primary {
  background-color: #4965f8 !important;
}

.card {
  border-radius: 16px !important;
}

.card-header {
  background-color: #FFFFFF !important;
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
}

.card-footer {
  background-color: #FFFFFF !important;
  border-bottom-left-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
}

.form-check-input:checked {
  background-color: #4965f8;
  border-color: #4965f8;
}

.btn-primary {
  background-color: #4965f8 !important;
  border-color: #4965f8 !important;
}

.btn-primary:hover {
  background-color: #3d54d4;
  border-color: #3d54d4;
}

.navbar-nav .nav-link.active {
  background-color: #2643ca;
  color: white;
  border-radius: 6px;
}

/* Sessions */

#sessions .card {
  width: 458px;
}

#sessions .card-body {
  padding: 32px;
}

#sessions .card-body input[type="email"], 
#sessions .card-body input[type="password"],
#sessions .card-body input[type="submit"] {
  height: 48px;
}

#sessions .card-body a {
  text-decoration: none;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  color: #adb5bd;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

fieldset legend.form-label {
  float: none;
  width: auto;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  padding: 0;
}

.peptide-sequences {
  border-top: 1px solid #dee2e6;
  overflow-x: auto;
}

.peptide-sequences-header,
.peptide-sequence-summary {
  display: grid;
  grid-template-columns: 1.5rem 2.5rem minmax(5rem, 7rem) minmax(16rem, 28rem) minmax(8rem, 1fr) minmax(7rem, auto);
  gap: 0.75rem;
  align-items: center;
}

.peptide-sequences-header {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6c757d;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.peptide-sequence-item {
  border-bottom: 1px solid #dee2e6;
}

.peptide-sequence-summary {
  width: 100%;
  padding: 0.875rem 1rem;
  background: transparent;
  color: inherit;
}

.peptide-sequence-chevron-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.peptide-sequence-chevron-btn:hover,
.peptide-sequence-chevron-btn:focus-visible {
  background-color: #f8f9fa;
  outline: none;
}

.peptide-sequence-item:has(.peptide-sequence-chevron-btn[aria-expanded="true"]) .peptide-sequence-summary {
  background-color: #f8f9fa;
}

.peptide-chevron {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #6c757d;
  border-bottom: 2px solid #6c757d;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.peptide-sequence-chevron-btn[aria-expanded="true"] .peptide-chevron {
  transform: rotate(45deg);
}

.peptide-sequence-actions {
  white-space: nowrap;
}

.peptide-sequence-id {
  font-weight: 600;
  color: #6c757d;
}

.peptide-sequence-protein {
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.35;
}

.peptide-sequence-protein-name {
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: #495057;
  white-space: nowrap;
}

.peptide-sequence-seq {
  min-width: 0;
  font-size: 0.8125rem;
  word-break: break-all;
}

.peptide-sequence-details {
  padding: 0.875rem 1rem 0.875rem 3.25rem;
  background-color: #fcfcfd;
  border-top: 1px dashed #e9ecef;
}

.processes-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6c757d;
  border-bottom-width: 1px;
}

.processes-table tbody th:first-child {
  width: 1%;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #adb5bd;
}

.process-table-meta {
  font-size: 0.8125rem;
  color: #adb5bd;
}

.processes-table th:last-child,
.processes-table td:last-child {
  padding-right: 1.25rem;
  padding-left: 1rem;
}

.processes-table .table-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.processes-table-footer {
  border-top: 1px solid #dee2e6;
}

.btn-table-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  line-height: 1;
}

.btn-table-icon svg {
  width: 1rem;
  height: 1rem;
}

.page-breadcrumb .breadcrumb {
  font-size: 0.8125rem;
  background: transparent;
  padding: 0;
}

.page-breadcrumb .breadcrumb-item a {
  color: #6c757d;
  text-decoration: none;
}

.page-breadcrumb .breadcrumb-item a:hover {
  color: #3d54d4;
}

.page-breadcrumb .breadcrumb-item.active {
  color: #495057;
}

.main-content:has(.page-heading-with-breadcrumb) {
  padding-top: 0.25rem;
}

.page-heading-with-breadcrumb {
  margin-top: 0;
  margin-bottom: 2.5rem;
}

.page-heading-layout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.page-heading-back {
  flex-shrink: 0;
}

.page-heading-content {
  flex: 1;
  min-width: 0;
}

.page-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.375rem;
  color: #495057;
  text-decoration: none;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.page-back-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #212529;
}

.page-heading-content h1 {
  min-width: 0;
}

.process-alert {
  border-radius: 0.75rem;
  border: 1px solid transparent;
  padding: 0.875rem 1rem;
}

.process-alert.process-alert-warning {
  background-color: #fff3cd;
  border-color: #ffda6a;
  color: #664d03;
}

.process-alert.process-alert-danger {
  background-color: #f8d7da;
  border-color: #ea868f;
  color: #58151c;
}

.badge-status-processing {
  background-color: #4965f8;
  color: #fff;
}

.badge-status-stalled {
  background-color: #e67e22;
  color: #fff;
}

.badge-status-completed {
  background-color: #198754;
  color: #fff;
}

.badge-status-failed {
  background-color: #dc3545;
  color: #fff;
}

.badge-status-cancelled {
  background-color: #6c757d;
  color: #fff;
}

.badge-status-draft,
.badge-status-queued {
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  color: #495057;
}

.progress-bar.bg-processing {
  background-color: #4965f8;
}

.progress-bar.bg-stalled {
  background-color: #e67e22;
}

.process-alert-icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
  opacity: 0.85;
}

.process-alert-title {
  font-size: 0.9375rem;
  font-weight: 600;
}

.process-alert-message {
  font-size: 0.8125rem;
  color: inherit;
  opacity: 0.9;
}

.how-it-works-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background-color: #4965f8;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}

.how-it-works-benefit {
  border-left: 3px solid #4965f8;
}

.site-footer {
  border-top: 1px solid #ced4da;
  background-color: transparent;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .site-footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .site-footer-apis {
    text-align: right;
    white-space: nowrap;
  }
}

.site-footer-line {
  font-size: 0.8125rem;
  color: #495057;
}

.site-footer-link {
  color: #3d54d4;
  text-decoration: none;
}

.site-footer-link:hover {
  color: #2643ca;
  text-decoration: underline;
}

.protein-tabs {
  border-bottom: 0;
}

.protein-tabs .nav-link {
  color: #6c757d;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.protein-tabs .nav-link:hover {
  color: #495057;
  border-color: transparent;
}

.protein-tabs .nav-link.active {
  color: #4965f8;
  background-color: transparent;
  border-color: transparent transparent #4965f8;
}