body {
  font-family: Arial, sans-serif, Helvetica !important;
  background-color: #f7f9fa;
  color: #000000;
  margin: 0;
  padding: 0;
}

/* Palette
Primary: #28509C
Action: #ED037C
Deep BG: #272D72
Accent Gradients: #A9208E, #7C2F90
Black: #000000
Muted: #A0A0A0
*/

.navbar {
  background: linear-gradient(90deg, #272D72 0%, #28509C 100%);
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  color: white !important;
  font-weight: bold;
}

.navbar-nav>li>a {
  color: white !important;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.navbar-nav>li>a:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Arial, sans-serif !important;
  color: #28509C;
  font-weight: bold;
}

.well {
  background-color: white;
  border-radius: 12px;
  border: 1px solid #e1e8ed;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin-bottom: 24px;
}

.btn-primary {
  background-color: #28509C;
  border-color: #28509C;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: #1f407a;
  border-color: #1f407a;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(40, 80, 156, 0.3);
}

.btn-action {
  background-color: #ED037C;
  border-color: #ED037C;
  color: white;
  font-weight: bold;
  font-size: 1.25rem;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(237, 3, 124, 0.3);
}

.btn-action:hover,
.btn-action:focus {
  background-color: #c90269;
  border-color: #c90269;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(237, 3, 124, 0.4);
}

.btn-modern {
  background-color: #f0f4f8;
  color: #28509C;
  border: 1px solid #dce4ec;
  border-radius: 6px;
  font-weight: bold;
  margin: 4px;
  transition: all 0.2s;
}

.btn-modern:hover {
  background-color: #28509C;
  color: white;
  border-color: #28509C;
}

/* Tooltips */
.modern-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  border-bottom: 1px dotted #A0A0A0;
}

.modern-tooltip .tooltiptext {
  visibility: hidden;
  width: max-content;
  max-width: 250px;
  background-color: #272D72;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 0.9em;
  font-weight: normal;
}

.modern-tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #272D72 transparent transparent transparent;
}

.modern-tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Exon SVG Container */
#exon-svg-container {
  width: 100%;
  overflow-x: auto;
  padding: 20px 0;
}

.exon-rect {
  fill: #A0A0A0;
  transition: fill 0.3s, transform 0.2s;
  cursor: pointer;
}

.exon-rect:hover {
  fill: #A9208E;
}

.exon-rect.selected {
  fill: #ED037C;
}

.exon-rect.anchor {
  fill: #A9208E;
  stroke: #ED037C;
  stroke-width: 2;
  stroke-dasharray: 3 2;
}

/* Loader */
#loader-container {
  display: none;
  text-align: center;
  padding: 40px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #e1e8ed;
  border-top: 5px solid #ED037C;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Results Section */
#results-container {
  display: none;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accordions / Drilldowns */
.drilldown-btn {
  background-color: #f7f9fa;
  color: #28509C;
  cursor: pointer;
  padding: 12px 18px;
  width: 100%;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  text-align: left;
  outline: none;
  font-size: 15px;
  font-weight: bold;
  transition: 0.4s;
  margin-bottom: 5px;
}

.drilldown-btn:hover,
.drilldown-btn.active {
  background-color: #e1e8ed;
}

.drilldown-content {
  padding: 0 18px;
  display: none;
  background-color: white;
  overflow: hidden;
  border-left: 2px solid #ED037C;
  margin-bottom: 10px;
  border-radius: 0 0 6px 6px;
}

.badge-modern {
  background: linear-gradient(135deg, #A9208E, #7C2F90);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
}

.table>tbody>tr>td {
  vertical-align: middle;
}

.table-bordered>tbody>tr>td {
  border-color: #e1e8ed;
}

/* Tabs */
.nav-tabs>li>a {
  color: #A0A0A0;
  font-weight: bold;
  border: none;
  border-bottom: 3px solid transparent;
}

.nav-tabs>li>a:hover {
  background: transparent;
  color: #28509C;
  border-bottom: 3px solid #28509C;
}

.nav-tabs>li.active>a,
.nav-tabs>li.active>a:hover,
.nav-tabs>li.active>a:focus {
  border: none;
  border-bottom: 3px solid #ED037C;
  color: #28509C;
  background: transparent;
}

/* Triage Modal Override */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background: linear-gradient(90deg, #272D72, #A9208E);
  color: white;
  border-radius: 12px 12px 0 0;
}

.modal-header h4 {
  color: white !important;
}

.modal-header .close {
  color: white;
  opacity: 0.8;
}