.button-ghost {
  color: #f7f6f3;
  border: none;
  padding-top: 0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-bottom: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 6px;
  background-color: transparent;
  border-radius: 4px;
}

.button-ghost:hover {
  background: #2b509a;
  color: #f7f6f3;
}

.button-ghost i {
  text-decoration: underline;
}

.button-primary {
  background: #f0c808;
  color: #0f2a43;
  border-radius: 4px;
  font-family: Autovia-bold;
  font-size: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  border: 0px;
}

.button-primary:hover {
  background: #23609a;
  color: #f7f6f3;
}

.button-primary:disabled {
  color: hsl(54, 16%, 35%);
  cursor: not-allowed;
  background: #f0c808;
}

.button-primary:disabled:hover {
  color: hsl(54, 16%, 35%);
  cursor: not-allowed;
  background: #f0c808;
}

.button-small {
  font-size: smaller;
  padding: 0.25rem !important;
}

.button-larger {
  font-size: larger;
  padding: 0.75rem !important;
}

.button-large {
  font-size: large;
  padding: 1rem !important;
}

.button-secondary {
  display: flex;
  padding: 0.5rem;
  background: #163755;
  justify-content: center;
  align-items: center;
  border: 1px solid #2b509a;
  border-radius: 4px;
  width: fit-content;
  text-align: center;
}

.button-secondary:disabled {
  color: #77a1b5;
  cursor: not-allowed;
}

.button-secondary:hover {
  background: #2b509a;
  color: #f7f6f3;
}

.button-secondary:disabled:hover {
  color: #77a1b5;
  background: #163755;
  cursor: not-allowed !important;
}

.text-toggle {
  border-radius: 4px;
}

.text-toggle-element {
  display: flex;
  text-align: center;
  align-items: center;
  color: #77a1b5;
  background-color: #163755;
}

.text-toggle-element:hover {
  cursor: pointer;
  background-color: #2b509a;
}

.text-toggle-element.active {
  background-color: #031633;
  border-radius: 4px;
  color: #f7f6f3;
}

.port-box {
  padding: 0.25rem;
  font-size: small;
  background: #3b6fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  text-align: center;
}

.text-large {
  font-size: larger;
}


/* Container to manage the relative positioning of the tabs and arrows */
.tab-scroll-wrapper {
  position: relative;
  /* Adjust width as needed, but it must be narrower than the content inside tabs-container for overflow to occur */
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* The actual scrollable tabs container */
.tabs-container {
  /* You can change this to 'scroll' if you want the scrollbar always visible */
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap; /* Keeps tabs on a single line */
  padding: 0 5px;
  /* Hides the default scrollbar for a cleaner look */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  /* Remove scrollbar for Chrome/Safari/Opera */
}
.tabs-container::-webkit-scrollbar {
  display: none;
}

/* --- CHANGES TO SCROLL ARROW STYLING --- */
.scroll-arrow {
  position: sticky; 
  flex-shrink: 0; /* Prevents the arrows from shrinking when space is tight */

  height: 100%; 
  width: 30px;
  z-index: 10;
  border: none;
  cursor: pointer;
  background: #0b1f32;
  font-size: 1.5em;
  border-top: 1px solid #2b509a;
  color: #f7f6f3;
  transition: opacity 0.3s;
}

.scroll-arrow:disabled {
  opacity: 0.7;
  color: #77a1b5;
  cursor: not-allowed;
}

.scroll-arrow:hover:not(:disabled) {
  background-color: rgba(59, 111, 255, 0.7);
}

.scroll-arrow.hidden {
  display: none;
}

/* --- Positioning the arrows (Using `left: 0` and `right: 0` for sticky positioning) --- */
.left-arrow {
  left: 0; /* Sticks to the left edge of the parent */
  box-shadow: 5px 0 5px -5px rgba(0, 0, 0, 0.2);
  border-right: 1px solid #2b509a;
}

.right-arrow {
  right: 0; /* Sticks to the right edge of the parent */
  box-shadow: -5px 0 5px -5px rgba(0, 0, 0, 0.2);
  margin-left: auto !important;
  border-left: 1px solid #2b509a;
}

.underline-btn {
  cursor: pointer;
  border: none;
  font-family: 'autovia-bold';
  font-size: 1rem;
  background: transparent;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border-radius: 4px;
}

.underline-btn-active i:not(.fa-spinner) {
  text-decoration: underline;
  text-decoration-color: #3b6fff;
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}

.underline-btn:not(.underline-btn-active):not([disabled]):hover {
  background-color: rgba(59, 111, 255, 0.5);
}

.underline-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.8; /* optional visual cue */
}

.underline-btn-active {
  text-decoration: underline;
  text-decoration-color: #3b6fff;
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}

.verdict {
  font-family: 'autovia-bold';
}

.skeleton {
  display: flex;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #77a1b5;
  margin-right: 16px;
  position: relative;
  overflow: hidden;
}

.skeleton-lines {
  flex: 1;
}

.skeleton-line {
  height: 10px;
  border-radius: 4px;
  background: #77a1b5;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.skeleton-line.short  { width: 70%; }
.skeleton-line.shorter { width: 50%; }

.skeleton-avatar::after,
.skeleton-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150px;
  height: 100%;
  width: 150px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 4.0s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(600px);
  }
}
