.filter-option-inner-inner {
    width: 100%;
}

.fade-in {
    display: block;
    animation: fadeIn 0.2s linear forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


.dashed-area {
  border: 2px solid #595959;
  color: #595959;
  height: 400px;
  width: 500px;
  display: flex;
  position: relative;
  border-radius: 5px;
  align-items: center;
  flex-direction: column;
  justify-content: space-around;
}

.banner h1 {
  margin-bottom: .35rem;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 760;
  color: #132238;
}

.banner h6 {
  max-width: 760px;
  margin: 0 auto 1.25rem;
  color: #617083 !important;
  line-height: 1.65;
}

.upload-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 1.25rem;
  align-items: start;
  margin: 1.25rem 0;
}

.upload-block > * {
  min-width: 0;
}

.drag-area,
.matchering-upload-area,
.dashed-area {
  min-height: 420px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 1px dashed #87b7ca;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,252,253,.98));
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.single-upload-area {
  padding: 2.5rem 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

/* Cloud-upload icon */
.single-upload-area::before {
  content: "";
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: .35rem;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f7fb3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 16 12 12 8 16'%3E%3C/polyline%3E%3Cline x1='12' y1='12' x2='12' y2='21'%3E%3C/line%3E%3Cpath d='M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: .72;
}

.single-upload-area.active::before {
  display: none;
}

.drag-area header,
.drag-area .drag-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #223048;
  text-align: center;
}

/* "or" divider line */
.single-upload-area > span {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .78rem;
  color: #8a99b0;
  text-transform: uppercase;
  letter-spacing: .07em;
  width: 100%;
  max-width: 300px;
}

.single-upload-area > span::before,
.single-upload-area > span::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #d0dae5;
}

.matchering-upload-area {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.matchering-upload-area .drag-area {
  min-height: 360px;
  box-shadow: none;
}

.settings-sidebar {
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 8px;
  padding: 1.15rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.settings-sidebar .form-group {
  margin-bottom: 1rem;
}

.settings-sidebar .row {
  margin-right: 0;
  margin-left: 0;
}

.settings-sidebar [class*="col-"] {
  min-width: 0;
}

.sep-type-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  column-gap: 10px;
  min-width: 0;
}

.settings-sidebar label {
  font-size: .86rem;
  font-weight: 700;
  color: #445166;
}

#sep_type_btn {
  min-height: 38px;
  padding: .36rem .62rem;
  font-size: .88rem;
  line-height: 1.25;
  white-space: normal;
  width: 100%;
  overflow-wrap: anywhere;
}

#sep_type_btn.btn-outline-primary,
#sep_type_btn.btn-outline-primary:focus,
#sep_type_btn.btn-outline-primary.focus,
#sep_type_btn.btn-outline-primary:not(:disabled):not(.disabled):active,
#sep_type_btn.btn-outline-primary:not(:disabled):not(.disabled).active {
  color: #0176b3;
  background-color: #fff;
  border-color: #0176b3;
  box-shadow: none;
}

#sep_type_btn.btn-outline-primary:hover {
  color: #fff;
  background-color: #0176b3;
  border-color: #0176b3;
}

.settings-sidebar .bootstrap-select {
  width: 100% !important;
}

.settings-sidebar .bootstrap-select > .dropdown-toggle {
  width: 100%;
  min-height: 38px;
  height: auto;
  white-space: normal;
}

.settings-sidebar .filter-option,
.settings-sidebar .filter-option-inner,
.settings-sidebar .filter-option-inner-inner {
  min-width: 0;
  max-width: 100%;
  height: auto;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
}

.settings-sidebar .bootstrap-select .dropdown-menu li a {
  align-items: flex-start;
  min-height: 36px;
  white-space: normal;
}

.settings-sidebar .bootstrap-select .dropdown-menu li a .text {
  white-space: normal;
  overflow-wrap: anywhere;
}

.settings-sidebar .bootstrap-select .dropdown-item:hover,
.settings-sidebar .bootstrap-select .dropdown-item:focus {
  color: #14364f;
  background: #eaf6fb;
}

.settings-sidebar .bootstrap-select .dropdown-item.active,
.settings-sidebar .bootstrap-select .dropdown-item:active,
.settings-sidebar .bootstrap-select .selected .dropdown-item {
  color: #ffffff;
  background: #0176b3;
  font-weight: 700;
}

.sep-type-control {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.sep-type-row > .sep-type-control {
  width: 100%;
  max-width: 100%;
}

.sep-type-help-wrap {
  width: 28px;
  min-width: 0;
  justify-self: end;
}

#sep_type_help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #0294be;
}

#sep_type_help svg {
  width: 24px;
  height: 24px;
}

#credits_approx_text {
  margin: .75rem 0 0;
  padding: .65rem .8rem;
  border-radius: 8px;
  background: #eef8fb;
}

.modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.modal-header {
  border-bottom-color: #e5edf3;
}

.algorithm_groups {
  color: #34445b;
  font-size: 1rem;
  font-weight: 760;
}

.algorithm_items,
#sep_type_modal .list-group-item {
  border: 1px solid #e0e8ef;
  border-radius: 8px !important;
  margin-bottom: .55rem;
}

.algorithm_items.active,
.algorithm_items:hover {
  border-color: #8fc5da;
  background: #f2fafc;
}

.algorithm_items:hover {
  background: #eef8fb;
}

.algorithm_items.active,
.algorithm_items.active .algorithm_names,
.algorithm_items.active .algorithm_description,
.algorithm_items.active .info {
  color: #15324a;
}

.algorithm_items.active {
  border-color: #0176b3;
  background: #e4f4fb;
  box-shadow: inset 4px 0 0 #0176b3, 0 8px 24px rgba(1, 118, 179, .14);
}

.last_news,
.table-responsive {
  margin-top: 1.25rem;
}

.last_news {
  max-width: 100%;
  overflow: hidden;
}

.last-news-content {
  max-width: 100%;
  overflow-x: visible;
  overflow-y: visible;
  overflow-wrap: anywhere;
}

.last-news-content article,
.last-news-content p,
.last-news-content div {
  max-width: 100%;
}

.last-news-content img,
.last-news-content video,
.last-news-content iframe,
.last-news-content pre {
  max-width: 100%;
}

.last-news-content table {
  display: block;
  width: max-content !important;
  max-width: 100%;
  height: auto !important;
  table-layout: auto;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.last-news-content table th,
.last-news-content table td {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.last-news-content img,
.last-news-content video,
.last-news-content iframe {
  height: auto;
}

.older-results {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.older-results h5 {
  margin-bottom: .75rem;
}

.older-results .table {
  margin-bottom: 0;
}

.older-results td:nth-child(2),
.older-results td:nth-child(3) {
  max-width: 280px;
  overflow-wrap: anywhere;
}

/* Separate (submit) button — light mode */
#submitAudio {
  background: linear-gradient(135deg, #0176b3 0%, #025380 100%);
  border-color: #025380;
  border-radius: 7px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(1, 118, 179, 0.28);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

#submitAudio:not(:disabled):hover {
  background: linear-gradient(135deg, #0186c7 0%, #0176b3 100%);
  box-shadow: 0 6px 20px rgba(1, 118, 179, 0.38);
  transform: translateY(-1px);
}

#submitAudio:not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(1, 118, 179, 0.25);
}

#submitAudio:disabled {
  background: #d1dce8;
  border-color: #b8cad9;
  color: #6e87a0;
  box-shadow: none;
  cursor: not-allowed;
}

/* Remote / Batch upload buttons inside drag area — light mode */
.single-upload-area .btn-outline-primary {
  font-size: 1rem;
  border-width: 1.5px;
  font-weight: 500;
}

@media (min-width: 769px) {
  .settings-sidebar {
    position: sticky;
    top: 82px;
  }
}

@media (max-width: 768px) {
  .upload-block {
    grid-template-columns: 1fr;
  }

  .settings-sidebar {
    order: 2;
  }

  .drag-area,
  .matchering-upload-area,
  .dashed-area {
    min-height: 320px;
  }
}

@media (max-width: 575.98px) {
  .single-upload-area {
    padding: 1.2rem 1rem;
  }

  .matchering-upload-area {
    grid-template-columns: 1fr;
    padding: .75rem;
    gap: .75rem;
  }

  .matchering-upload-area .drag-area {
    min-height: 260px;
  }

  .banner h1 {
    font-size: 1.75rem;
  }

  .single-upload-area .btn-outline-primary {
    font-size: .88rem;
  }

  .settings-sidebar {
    padding: 1rem;
  }

  .settings-sidebar .form-group.row {
    display: block;
  }

  .settings-sidebar label,
  .settings-sidebar .col-sm-3,
  .settings-sidebar .col-sm-9,
  .settings-sidebar .col-sm-12 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .settings-sidebar .col-sm-9 {
    padding: 0;
  }

  .sep-type-control {
    flex: 1 1 0;
    width: auto;
    max-width: none;
  }

  .sep-type-row {
    flex-wrap: nowrap;
  }

  .sep-type-help-wrap {
    flex-basis: 28px;
  }

  .older-results {
    overflow: visible;
  }

  .older-results .table {
    display: block;
    border: 0;
    background: transparent;
  }

  .older-results thead {
    display: none;
  }

  .older-results tbody,
  .older-results tr,
  .older-results td {
    display: block;
    width: 100%;
  }

  .older-results tr {
    margin-bottom: .85rem;
    border: 1px solid #d8e1ea;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
  }

  .older-results .table-striped tbody tr:nth-of-type(odd) {
    background: #fff;
  }

  .older-results td {
    display: grid;
    grid-template-columns: minmax(96px, 38%) minmax(0, 1fr);
    gap: .75rem;
    padding: .65rem .75rem;
    border-top: 1px solid #e6edf3;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .older-results td:first-child {
    border-top: 0;
  }

  .older-results td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #445166;
    text-align: left;
  }

  .older-results td:nth-child(2),
  .older-results td:nth-child(3) {
    max-width: none;
  }

  [data-theme="dark"] .older-results tr,
  [data-theme="dark"] .older-results .table-striped tbody tr:nth-of-type(odd) {
    background: #111827;
    border-color: #334155;
  }

  [data-theme="dark"] .older-results td {
    border-top-color: #334155;
  }

  [data-theme="dark"] .older-results td::before {
    color: #cbd5e1;
  }
}
