:root {
  --header-storage-icon-bg: #fff;
  --header-storage-icon-stoke: #0090ff40;
  --header-storage-icon-stoke-width: 0.5;
}

/* General Styles */
body {
  font: var(--text-default-sm-normal);
  overflow: hidden;
}

#controls {
  margin: 20px;
}

#controls label {
  margin-left: 10px;
  font: var(--text-default-sm-normal);
}

/* Link Styles */
.link {
  stroke: #999; /* Line color */
  stroke-opacity: 0.8; /* Transparency of the line */
  fill: none; /* No fill for the path */
  stroke-width: 1.2; /* Thicker line */
  stroke-linejoin: round; /* Rounded elbows for corners */
}

.edge {
  stroke: var(--color-text-tertiary); /* Line color */
  stroke-opacity: 0.8; /* Transparency of the line */
  fill: none; /* No fill for the path */
  stroke-width: 1.2; /* Thicker line */
  stroke-linejoin: round; /* Rounded elbows for corners */
}

.parentNode {
  cursor: pointer;
}

.parent-label {
  font: var(--text-default-sm-normal);
  pointer-events: none;
  fill: #555;
  text-anchor: middle;
}

.link-text {
  font: var(--text-default-xs-normal);
  fill: var(--color-text-tertiary);
}

.child-link-text {
  font: var(--text-default-xs-normal);
  fill: var(--color-text-tertiary);
}

.parent-label-more {
  text-anchor: middle;
  font: var(--text-default-lg-normal);
}

.parent-label-more-bg {
  stroke-width: 0.9;
}

.parent-expanded-storage {
  stroke: #0000001f;
  stroke-width: 2px;
}

.parent-bg.collapsed {
  stroke: none;
}

.parent-bg.expanded {
  stroke: #e0f2ff;
  stroke-width: 1.5px;
}

.parent-expanded-title {
  font: var(--text-semi-condensed-sm-normal);
  stroke: none;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word; /* Breaks long words */
  text-overflow: ellipsis;
  cursor: pointer;
  overflow-wrap: break-word;
  hyphens: none; /* Prevents automatic hyphenation */
  white-space: normal;
  word-break: break-all;
  hyphens: auto; /* Prevent automatic hyphenation */
  -webkit-hyphens: auto; /* Safari support */
  -ms-hyphens: auto; /* IE support */
  white-space: normal;
  text-align: left;
  line-height: 20px;
}

.parentNode.subsystem {
  /* Add specific styles if needed */
}

.parentNode.external-app {
  /* Add specific styles if needed */
}

.parentNode.expanded rect {
  /* Add specific styles if needed */
}

.childNode {
  fill: #fff;
  stroke: #0000001f;
  stroke-width: 0.5px;
}
.childNode.focussed {
  stroke: #0090ff;
  stroke-width: 1px;
}

.childNode.inactive {
  opacity: 0.5;
  filter: blur(1px);
  /*fill: #F0f9ff;
  stroke: #0000001F;*/
  stroke-width: 0.5px;
}

.childNode.Api {
  /* Add specific styles if needed */
}

.childNode.QueueConsumer {
  /* Add specific styles if needed */
}

.childNode.DBRead {
  /* Add specific styles if needed */
}

.childNode.DBWrite {
  /* Add specific styles if needed */
}

.childNode-label {
  font: var(--text-semi-condensed-xs-normal);
  stroke: none;
  text-anchor: end;
  fill: #888;
}

.childNode.active .childNode-label {
  text-anchor: end;
  fill: #555;
}

.childNode.focussed .childNode-label {
  text-anchor: end;
  fill: #666;
}

.port-circle {
  fill: #333;
}

/* Styling for the popup */
#Child-graph {
  height: 100%;
}
.popup {
  display: none;
  /* Hidden by default */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 60%;
  /* max-width: 1000px; */
  background-color: white;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  z-index: 1000;
  overflow-x: scroll;
  overflow-y: scroll;
}

.popup svg {
  width: 100%;
  height: auto;
  /* height: 300px; */
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
}

.popup-close img {
  cursor: pointer;
  font-size: 20px;
  width: 39px;
  position: absolute;
  top: 10px;
  right: 10px;
}

.pin img {
  cursor: pointer;
  font-size: 20px;
  width: 39px;
  position: absolute;
  top: 10px;
  right: 50px;
}

/* Pin icon styles for the top-right corner of pinned interfaces */
.pin-top-image {
  cursor: pointer;
  transition:
    transform 150ms ease,
    opacity 150ms ease;
}

.pin-top-image:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* Pin tooltip styles */
.pin-tooltip {
  position: absolute;
  background: #333;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  z-index: 1000;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.buttons {
  display: flex;
  justify-content: center;
  align-items: center;
}
.buttons #insight-button img {
  width: 24px;
  height: 24px;
}
.buttons #filter-button img {
  width: 24px;
  height: 24px;
}
#insight-button,
#filter-button {
  padding: 10px 16px 10px 16px;
  border-radius: 4px 0px 0px 0px;
  opacity: 0px;
  background-color: #ffffff;
  border: 0.5px solid #0000001f;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  font: var(--text-default-sm-normal);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.insight-popup {
  position: relative;
  bottom: 4px;
  /* Adjust this value based on button size */
  width: 100%;
  background-color: white;
  border-top: 1px solid #ccc;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 5px;
  z-index: 1000;
  right: 59%;
}
#graph {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
}

#insight-top.hidden {
  display: none;
}
#insight-top {
  position: absolute;
  width: 300px;
  margin: auto;
  right: 50%;
  bottom: 5%;
}

.insight-popup-content {
  color: black;
  font: var(--text-default-sm-normal);
  text-align: center;
}
#popup-heading {
  background-color: #ebf6ff;
}
#popup-heading img {
  width: 16px;
  height: 16px;
}
#popup-heading span {
  font: var(--text-default-sm-normal);
}

/* The container for the toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  /* Adjust width for size */
  height: 25px;
  /* Adjust height for size */
}

/* Hide the default checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  /* Default background color */
  transition: 0.4s;
  border-radius: 25px;
  width: 35px;
  height: 19px;
  /* Makes the switch rounded */
}
#show-insight {
  padding: 10px;
  gap: 5px;
  display: flex;
  flex-direction: column;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 17px;
  left: 2px;
  top: 2px;
  bottom: 0.5px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: #0090ff;
}

input:checked + .slider:before {
  transform: translateX(14px);
}

.filter-text {
  font: var(--text-semi-condensed-sm-normal);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  justify-content: space-between;
  padding: 0 2%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar-first-container,
.navbar-econd-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-content {
  font: var(--text-default-sm-semibold);
  line-height: 20px;
}

.logout-btn {
  width: 74px;
  height: 28px;
  color: white;
  background: black;
  border-radius: 5px;
  border: none;
  font: var(--text-default-xs-medium);
  line-height: 20px;
}

.navbar-line {
  height: 28px;
  width: 1px;
  background: #0000001f;
}
/* Style the checkbox container */
.checkbox-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* Hide the default checkbox */
.checkbox-container input {
  opacity: 0;
  position: absolute;
  cursor: pointer;
  width: 0;
  height: 0;
}

/* Custom checkmark style - show initially */
.checkmark {
  display: inline-block;
  font-size: 20px;
  color: #3498db;
  /* Blue color */
  position: absolute;
  top: 0;
  left: 0;
}

/* When checkbox is checked, display the checkmark */
.checkbox-container input:checked + .checkmark {
  display: inline-block;
}

.insight-option {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  flex-direction: column;
  border: 2px #00000024 solid;
  border-radius: 10px;
  padding: 10px;
}

.endpoint-route-text {
  font: var(--text-default-xs-normal);
  line-height: 16px;
  margin: 0;
  padding: 0;
  fill: #101828;
}

.endpoint-text {
  fill: #98a2b3;
  font: var(--text-default-xs-normal);
  line-height: 16px;
  text-align: right;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}

/*searchInput section */
#searchInput {
  width: 243px;
  padding: 0px 0px 0px 4px;
  border-radius: 4px;
  border: 0.4px solid #83b800;
  opacity: 1;
  font: var(--text-default-xs-normal);
  height: 40px;
  z-index: 15;
}

#searchInput:focus {
  border-color: #04c554;
  outline: none;
}

/*throughput section*/
.throughput-group .left-rectangle {
  width: 50px;
  height: 16px;
  stroke: #868fa2;
  stroke-width: 0.2px;
}
.throughput-group .left-rectangle-fill {
  fill: #f2f4f7;
}

.showMore-left-rectangle-text {
  fill: #fff;
}

.throughput-group .right-rectangle {
  width: 56px;
  height: 16px;
  border-radius: 3px;
  stroke: #868fa2;
  stroke-width: 0.2px;
}
.throughput-group .right-rectangle-fill {
  fill: #fee4e2;
}
.throughput-group .showMore-rectangle-fill {
  fill: #98a2b3;
  stroke: #ffffff3d !important;
}

.throughput-group .throughput-text {
  font: var(--text-default-xs-medium);
  line-height: 11px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}

.word-wrap-text {
  width: 70px;
  word-wrap: break-word;
  font: var(--text-default-xs-normal);
}

.qps-label-text {
  fill: #868fa2;
}

.footer-counter-text {
  font: var(--text-default-xs-medium);
  line-height: 11px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  fill: #475467;
  cursor: pointer;
}

.counter-section {
  stroke: #0090ff40;
  stroke-width: 0.5;
  fill: #fff;
}

.error-label-icon {
  width: 8px;
  height: 6px;
}

.error-label-text {
  fill: #d92d20;
}

.showMore-error-label-text {
  fill: #fff;
}

.show-more-rightText {
  font: var(--text-semi-condensed-xs-normal);
  fill: #3a5bc7;
}

.show-more-leftText {
  font: var(--text-semi-condensed-xs-normal);
  fill: #101828;
}

.showMore-qps-image {
  width: 12px;
  height: 6px;
}

.errorThroughput-image {
  width: 8px;
  height: 6px;
  filter: drop-shadow(0 0 0 #ffffff);
}

.errorThroughput-text {
  font: var(--text-default-xs-normal);
  fill: #ffffff;
}

.childNode-errorThroughput-text {
  fill: #ffffff;
}
/* ******************************************************************** */
/*                          ChildNode Header Section                    */
/* ******************************************************************** */

.start-icon-bg {
  width: 15px;
  height: 16px;
}

.start-icon {
  width: 14px;
  height: 14.93px;
}

.header-storage-icon {
  fill: var(--header-storage-icon-bg);
  stroke: var(--header-storage-icon-stoke);
  stroke-width: var(--header-storage-icon-stoke-width);
}

.header-minimize-icon {
  fill: var(--header-storage-icon-bg);
}

.minimize-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  z-index: 99999;
}

/* .minimize-icon:hover ~ .header-minimize-icon {
    stroke: #000000;
} 
.minimize-icon-group:hover {
  stroke: #000000;
} */

/* .header-minimize-icon:hover {
  stroke: #000000;
} */

/* ******************************************************************** */
/*                          ChildNode Body Section                      */
/* ******************************************************************** */

.childnode-body-rect {
  fill: #fff;
  stroke: #00000029;
  stroke-width: 0.5;
}

.childnode-body-rect-grey {
  fill: #949494;
  stroke: #00000029;
  stroke-width: 0.5;
}

.childNode-rect-show-more {
  stroke: var(--color-border-secondary);
  stroke-width: 1;
  stroke-dasharray: 2, 2;
  fill: url(#showMore-bgGradient);
}

.option-icon {
  width: 8px;
  height: 8px;
}

.setting-icon {
  width: 9.31px;
  height: 9.5px;
}

.icon-bg-rect {
  width: 12px;
  height: 32px;
}

.option-bg-rect,
.setting-bg-rect {
  width: 12px;
  height: 12px;
}

/* ******************************************************************** */
/*                          search box and suggestion Section                               */
/* ******************************************************************** */
.suggestion-bg-rect {
  width: 242px;
  height: 28px;
  fill: #ffffff;
  stroke: #00000014;
  stroke-width: 0.5;
}
.suggestion-text {
  font: var(--text-default-xs-normal);
  fill: #98a2b3;
  cursor: pointer;
}

.suggestion-img-icon {
  width: 12px;
  height: 12px;
}

.interface-box {
  border: 0.5px solid #00000029;
  border-radius: 4px;
  justify-content: space-between;
  padding: 4px 8px;
}

.interface-box-text {
  display: -webkit-box;
  -webkit-justify-content: space-between;
  -webkit-box-orient: horizontal;
  -webkit-box-align: center;
  align-items: center;
  padding: 0px 8px;
  box-sizing: border-box;
  position: fixed;
}

.endpoint-route-text {
  font: var(--text-semi-condensed-xs-normal);
  stroke: none;
  width: 170px; /* Adjust as needed */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines */

  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word; /* Breaks long words */
  text-overflow: ellipsis;
  cursor: pointer;
  overflow-wrap: break-word;
  hyphens: none; /* Prevents automatic hyphenation */
  white-space: normal;
  word-break: break-all;
  hyphens: auto; /* Prevent automatic hyphenation */
  -webkit-hyphens: auto; /* Safari support */
  -ms-hyphens: auto; /* IE support */
  white-space: normal;
  text-align: left !important;
  line-height: 20px !important;
}

.endpoint-method-text {
  font: var(--text-semi-condensed-xs-normal);
  line-height: 16px;
  fill: var(--color-text-secondary);
  color: var(--color-text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 20px;
}

.tooltip-container {
  /* position: relative; */
  display: inline-block;
  cursor: pointer;
  border-radius: 5px;
}

/* Tooltip Styling */
.tooltip-container .tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px;
  border-radius: 5px;
  position: absolute;
  bottom: 125%; /* Places tooltip above the element */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

/* Show Tooltip on Hover */
.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

#suggestion-container {
  overflow-y: scroll;
  /* scrollbar-width: 1px; 
  -ms-overflow-style: 1px;  */
  border: 0.5px solid #00000029;
  width: 243px !important;
  height: 217px !important;
}
#suggestion-container::-webkit-scrollbar {
  /* background-color: transparent; */
}

/* ******************************************************************** */
/*                          Common Styles                               */
/* ******************************************************************** */
.fill-stroke-none {
  fill: none;
  stroke: none;
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-item {
  animation: slideInFromLeft 0.3s ease-out forwards;
}

/* Slide up animations with reverse staggered timing */
@keyframes slideUpReverse {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.slide-up-reverse-0 {
  animation: slideUpReverse 0.3s ease-out forwards;
  animation-delay: 0ms; /* First item (last in reverse order) animates immediately */
}

.slide-up-reverse-1 {
  animation: slideUpReverse 0.3s ease-out forwards;
  animation-delay: 100ms; /* Second item animates after 100ms */
}

.slide-up-reverse-2 {
  animation: slideUpReverse 0.3s ease-out forwards;
  animation-delay: 200ms; /* Third item animates after 200ms */
}

/* Slide in from bottom for new items entering visible area */
@keyframes slideInFromBottom {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-in-from-bottom {
  animation: slideInFromBottom 0.4s ease-out forwards;
  animation-delay: 300ms; /* Delayed to happen after other animations */
}

/* Unpin item reverse animation */
@keyframes unpinItemReverse {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  50% {
    transform: scale(0.95) translateY(2px);
    opacity: 0.8;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.unpin-item-reverse {
  animation: unpinItemReverse 0.5s ease-out forwards;
}

/* Unpin shift animations for other pinned items */
@keyframes unpinShiftReverse {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-2px);
    opacity: 0.9;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.unpin-shift-reverse-0 {
  animation: unpinShiftReverse 0.3s ease-out forwards;
  animation-delay: 0ms;
}

.unpin-shift-reverse-1 {
  animation: unpinShiftReverse 0.3s ease-out forwards;
  animation-delay: 100ms;
}

.unpin-shift-reverse-2 {
  animation: unpinShiftReverse 0.3s ease-out forwards;
  animation-delay: 200ms;
}

/* Pin to top animation (enhanced for better visual feedback) */
@keyframes pinToTop {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  30% {
    transform: translateY(-10px) scale(1.02);
    opacity: 0.8;
  }
  60% {
    transform: translateY(-50px) scale(0.98);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 1;
  }
}

.pin-to-top {
  animation: pinToTop 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Slide out item animation for deletion */
@keyframes slideOutItem {
  0% {
    transform: translateX(0) scale(1);
    opacity: 1;
    max-height: 50px;
  }
  50% {
    transform: translateX(-20px) scale(0.95);
    opacity: 0.5;
    max-height: 50px;
  }
  100% {
    transform: translateX(-100%) scale(0.9);
    opacity: 0;
    max-height: 0;
  }
}

.slide-out-item {
  animation: slideOutItem 0.5s ease-in forwards;
}

.no-scrollbar-border::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.no-scrollbar-border::-webkit-scrollbar-track {
  background: transparent;
  border: none;
}

.no-scrollbar-border {
  scrollbar-width: thin;
  scrollbar-color: #ebecef transparent;
}

/* Interface click feedback animation */
@keyframes interfaceClickFeedback {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.interface-click-feedback {
  animation: interfaceClickFeedback 0.3s ease-out forwards;
}

/* Interface loading animation */
@keyframes interfaceLoading {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}

.interface-loading {
  animation: interfaceLoading 1.5s ease-in-out infinite;
  position: relative;
}

.interface-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 2px solid #007bff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.my-element {
  transition: -webkit-transform 200ms ease-in-out;
  -webkit-transition: -webkit-transform 200ms ease-in-out;
  transition: transform 200ms ease-in-out;
}

.my-element.move-left {
  -webkit-transform: translateX(-5rem);
}

.my-element.move-left-small {
  -webkit-transform: translateX(-3rem);
}

.pin-group {
  -webkit-box-orient: horizontal;
  -webkit-box-align: center;
}

.graphContainer {
  flex: 1;
  position: "relative";
  overflow: "hidden";
}

/* Add these new styles */
.graphContainerWithBlur {
  flex: 1;
  position: relative;
  overflow: hidden;
  maskimage: "radial-gradient(circle at center, black 50%, transparent 90%)";
  webkitmaskimage: "radial-gradient(circle at center, black 50%, transparent 90%)";
}

.blurOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointerevents: none;
  zindex: 5;
  boxshadow: inset 0 0 100px 50px rgba(255, 255, 255, 0.8);
}

/* Performance optimizations for smooth canvas dragging */
#graph-container svg {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#graph-container svg:active {
  cursor: grabbing;
}

/* Optimize the main container group for smooth transforms */
#main-container {
  will-change: transform;
}

/* Optimize SVG rendering */
.main-container {
  will-change: transform;
}
.timeline-active .graph-container:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 100px 50px rgba(255, 255, 255, 0.8);
}

.proximity-line {
  transform: scaleY(var(--scale, 1));
  transition: transform 0.2s ease;
  transform-origin: left center;
}

/* Animation Keyframes CSS */

/* Timeline slide in/out animations */
@keyframes slideIn {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  20% {
    transform: translateX(-80%);
    opacity: 0.2;
  }
  60% {
    transform: translateX(-30%);
    opacity: 0.6;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  40% {
    transform: translateX(-30%);
    opacity: 0.6;
  }
  80% {
    transform: translateX(-80%);
    opacity: 0.2;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

/* Graph scaling animations */
@keyframes scaleIn {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(0.9);
  }
}

@keyframes scaleOut {
  0% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

/* Panel expand/contract animations */
@keyframes expandPanel {
  0% {
    width: 0%;
    opacity: 0;
  }
  30% {
    width: 70%;
    opacity: 0.7;
  }
  100% {
    width: 84%;
    opacity: 1;
  }
}

@keyframes contractPanel {
  0% {
    width: 84%;
    opacity: 1;
  }
  70% {
    width: 30%;
    opacity: 0.5;
  }
  100% {
    width: 0%;
    opacity: 0;
  }
}

/* Insight card fade in/out */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Timeline vertical growth animation */
@keyframes growVertical {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  50% {
    transform: scaleY(0.5);
    opacity: 0.5;
  }
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Helper classes for animations */
.timeline-in {
  animation: slideIn 800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.timeline-out {
  animation: slideOut 800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.graph-scale-in {
  animation: scaleIn 800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.graph-scale-out {
  animation: scaleOut 800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.panel-expand {
  animation: expandPanel 800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.panel-contract {
  animation: contractPanel 800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-fade-in {
  animation: fadeIn 500ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-fade-out {
  animation: fadeOut 500ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-grow-vertical {
  animation: growVertical 800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 
 * Responsive Timeline Component CSS
 * 
 * This CSS makes the Timeline component responsive without changing
 * the structure or functionality of the component.
 */

.timeline-container {
  width: 100%;
  transition: all 800ms cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

/* Mobile (small screens) */
@media (max-width: 640px) {
  .timeline-tick-line-major {
    width: 4rem !important;
  }

  .timeline-tick-line-minor {
    width: 3rem !important;
  }

  .timeline-label {
    font: var(--text-default-xs-normal);
  }

  .timeline-dropdown {
    width: calc(100% - 16px);
    font: var(--text-default-sm-normal);
    padding: 0.5rem 1rem;
  }

  .timeline-dropdown-option {
    padding: 0.5rem 0.75rem;
    font: var(--text-default-sm-normal);
  }
}

/* Tablet (medium screens) */
@media (min-width: 641px) and (max-width: 1024px) {
  .timeline-tick-line-major {
    width: 5rem !important;
  }

  .timeline-tick-line-minor {
    width: 4rem !important;
  }

  .timeline-label {
    font: var(--text-default-sm-normal);
  }
}

/* Desktop (large screens) */
@media (min-width: 1025px) {
  .timeline-tick-line-major {
    width: 7rem !important;
  }

  .timeline-tick-line-minor {
    width: 5rem !important;
  }
}

/* 
 * Responsive styling for the Component Search interface
 */
.search-container {
  max-width: 100%;
  width: 100%;
  transition: all 0.3s ease;
}

.search-modal {
  width: 100%;
  max-width: 28rem;
  max-height: 80vh;
}

@media (max-width: 640px) {
  .search-bar {
    padding: 0.5rem;
  }

  .search-button {
    width: 36px;
    height: 36px;
  }

  .search-action-item {
    padding: 0.5rem 0.75rem;
    font: var(--text-default-sm-normal);
  }

  .search-item-text {
    font: var(--text-default-sm-normal);
  }

  .search-tag {
    font: var(--text-default-xs-normal);
  }
}

/* 
 * Main System Graph App responsive layout
 */
.system-container {
  position: absolute;
  transition: all 800ms cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

/* Mobile Timeline Layout */
@media (max-width: 768px) {
  .timeline-view {
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    height: 100% !important;
  }

  .main-content-with-timeline {
    left: 0 !important;
    width: 100% !important;
    top: 0 !important;
    height: 100% !important;
    border-radius: 0 !important;
  }

  .insight-card {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 40px) !important;
    max-width: 280px !important;
  }
}

/* Tablet and Desktop Timeline Layout */
@media (min-width: 769px) {
  .timeline-view {
    width: 16% !important;
    left: 0 !important;
    top: 16px !important;
    max-height: calc(100% - 64px) !important;
  }

  .main-content-with-timeline {
    left: 16% !important;
    width: 84% !important;
    top: 4px !important;
    height: calc(100% - 32px) !important;
    border-radius: 0.5rem 0 0 0.5rem !important;
  }

  .main-content-with-timeline .graph-container {
    transform: scale(0.9);
  }

  .insight-card {
    left: 70% !important;
    transform: translateX(-50%) !important;
  }
}

.hide-scrollbar {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.close-icon-svg .Sidebar {
  fill: none;
  transition: fill 0.3s ease-in-out;
}

.close-icon-svg:hover .Sidebar {
  fill: #666;
}

/* 
 * Add this CSS to your project to make the existing components responsive
 * without changing their structure or functionality
 */
