.top-header {
  width: 100%;
  position: sticky;
  top: 0px;
  z-index: 10;
}

/* Sidebar Setup */
.side-navbar {
  /* Set the initial width */
  width: 60px;
  /* Make the sidebar float above other content */
  position: fixed;
  /* Anchor it to the left side */
  left: 0;
  /* Ensure it is above the main content */
  z-index: 100;
  /* Add a transition for smooth expansion */
  transition: width 0.1s ease-in-out;
  /* Set maximum height to fill the screen */
  height: 100vh;
  box-shadow: var(--bs-border-width) 0 6px 1px #2b509a;
}


/* Hover Effect */
.side-navbar:hover {
  /* Expand the width */
  width: 250px;
  transition-delay: 0.5s;
}

.side-navbar .full-logo {
  width: 31px;
  display: flex;
  overflow-x: hidden;
  transition-delay: 0s;
  transition-duration: 0s;
}

.side-navbar:hover .full-logo {
  width: 137px;
  transition-property: width;
  transition-duration: 0.1s; /* The duration of the actual width change (0px to 156px) */
  /* CRITICAL: Add the 0.5s delay here! */
  transition-delay: 0.5s;
}

.main-content {
  flex: 0 0 auto;
  width: calc(100% - 60px);
  margin-left: 60px;
  position: fixed;
}

@media (max-width: 767.98px) {
  .main-content {
    width: 100%;
    margin-left: 0px;
    position: unset;
  }

  .top-header {
    position: unset;
  }
  .side-navbar {
    width: 100% !important;
    position: unset;
    height: fit-content;
    z-index: unset;
    transition: unset;
    box-shadow: none;
  }

  .side-navbar .nav-tooltip {
    width: 100%;
  }

  .side-navbar .tooltip-text {
    width: 160px !important;
  }

  .side-navbar .small-logo {
    display: none !important; /* Show the small logo by default */
  }

  .side-navbar .full-logo {
    display: none !important; /* Hide the full logo by default */
  }
}

/* Base styles for the hamburger button (visible only below 768px) */
.navbar-toggler {
    /* Position the button at the top/left for a clean look */
    position: absolute; 
    top: 10px;
    left: 10px;
    z-index: 1000; /* Ensure it's above other content */
}

/* Desktop styles (768px and up) */
@media (min-width: 768px) {
    /* Hide the hamburger button on desktop */
    .navbar-toggler {
        display: none;
    }
    /* Ensure the sidebar is fixed and full height on desktop */
    .side-navbar {
        position: fixed;
        width: 60px; /* or whatever your collapsed width is */
        height: 100vh;
    }
}

.nav-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 14px !important;
  list-style: none;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
  border-left: 4px solid transparent;
  padding-left: 1rem;
  justify-content: start;
}

.nav-tooltip:not(.header-active):hover {
  background: rgba(35, 96, 154, 0.7);
}

.header-active {
  border-left: 4px solid #3b6fff !important;
  color: #f0c808;
}

.nav-tooltip i {
  font-size: 22px !important;
}

.nav-tooltip .material-icons {
  font-size: 24px;
}

.side-navbar .tooltip-text {
  /* Initial hidden state */
  margin-left: 0.5rem;
  /* Add a transition for opacity (the fade effect) */
  /* CRITICAL: Add the delay here. The transition to visible/opacity: 1
     will wait 0.3s before starting. */
  width: 0px;
  padding-bottom: 2px;

  transition-delay: 0s;
}

/* Hover state (Appearance after delay) */
.side-navbar:hover .tooltip-text {
  /* These changes will be delayed by the transition-delay property above */
  width: 160px;

  transition-property: width;
  transition-duration: 0.1s; /* The duration of the actual width change (0px to 156px) */

  /* CRITICAL: Add the 0.5s delay here! */
  transition-delay: 0.5s;
}

.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:disabled {
  color: #77a1b5;
  cursor: not-allowed;
}

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

.button-ghost:disabled:hover {
  color: #77a1b5;
  cursor: not-allowed;
  background: transparent;
}

.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);
  }
}

/* Fixed color for delimiters (should match the background or be very light) */
.hl-delimiter {
  color: #FFFFFF; /* Set to white or transparent if the background is white */
}

/* Phase classes based on your API return values: key, operator, operand, value */
.hl-key {
  color: #8C6CE2; /* Purple/Blue */
  font-weight: bold;
}
.hl-operator {
  color: #FF0000; /* Red */
}
.hl-value, .hl-operand {
  color: #008000; /* Green */
}
.hl-default {
  color: #333333; /* Standard dark text */
}

.w-sm-100 {
}


@media (max-width: 767.98px) {
  .w-sm-100 {
    width: 100% !important;
  }
}

.breadcrumbs {
  font-weight: 500;
  font-size: 14px;
}

.pb-2px {
  padding-bottom: 2px;
}
