@font-face {
    font-family: 'Source Sans Pro';
    src: url('./fonts/SourceSansPro-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Source Sans Pro';
    src: url('./fonts/SourceSansPro-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
}

h2 {
    color: #70a401;
}

/* Tree view container styles */
.tree-view-container {
    width: 40%;
    border-right: 1px solid #0970b9;
    overflow-y: auto;
    padding: 10px;
    /*background-color: #f9f9f9;*/
    background-color: #EBF5FF;
}

/* Tree items */
/* Remove default bullets */
ul, #root-ul {
  list-style-type: none;
}

/* Remove margins and padding from the parent ul */
#root-ul {
  margin: 0;
  padding: 0;
}

/* Style the caret/arrow */
.caret {
  cursor: pointer;
  user-select: none; /* Prevent text selection */
  padding: 5px 10px;
  margin: 2px 0;
}

/* Create the caret/arrow with a unicode, and style it */
.caret::before {
  content: "\25B6";
  color: black;
  display: inline-block;
  padding: 5px 10px;
  margin: 2px 0;
}

/* Rotate the caret/arrow icon when clicked on (using JavaScript) */
.caret-down::before {
  transform: rotate(90deg);
}

/* Hide the nested list */
.nested {
  display: none;
}

/* Show the nested list when the user clicks on the caret/arrow (with JavaScript) */
.active {
  display: block;
}

/* Style leafs */
.leaf-item {
    all: unset; /* Resets all styles */
    font: inherit; /* Inherits font settings like size and family */
    cursor: pointer;
    border-radius: 5px;
    padding: 5px 10px;
    margin: 2px 0;
    user-select: none; /* Prevent text selection */
    background: none;
    border: none;
    text-align: left;
}

.leaf-item:hover {
    background-color: #e0e0e0;
}

.leaf-item.active {
    background-color: #ddd;
    font-weight: bold;
}

 .leaf-item.selected {
    font-weight: bold;
    color: white;
    background-color: blue;
    border-radius: 5px;
    padding: 5px 10px;
    margin: 2px 0;
}
.leaf-item.unselectable {
    color: grey;
}

/* Tree tooltips */
.tooltip {
  position: relative;
  display: inline-block;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  z-index: 1;
  position: absolute;
  left: 30%;
  top:100%;

}


/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}



/* Details view */
.details-area {
    position: relative;
    width: 60%;
    overflow-y: auto;
    padding: 10px;
}
table {
    border-collapse: collapse;  /* Removes cell spacing */
}
th, td {
    text-align: left;
    vertical-align: top;
    padding: 5px 10px 0px 0px;  /* top right bottom left */
    border: none;               /* No visible borders */
    min-width:200px;
}
th {
    font-weight: bold; /* Make header column stand out */
}
tr {
    display: none;
}
.code-snippet{
    font-family: "Fira Code", "Source Code Pro", "Consolas", "Courier New", monospace;
    background-color: #f5f5f5; /* Optional: Light background */
    border-radius: 4px;        /* Optional: Rounded edges */
    padding-left: 8px;
    font-size: 90%;            /* Slightly smaller size to fit better inline */
}


/* Code button */
.code-button {
    position: absolute; /* Positions relative to the nearest positioned ancestor (.parent) */
    bottom: 10px; /* Distance from the bottom edge of the parent */
    right: 10px; /* Distance from the right edge of the parent */
    padding: 10px 15px; /* Styling for the button */
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

.code-button:hover {
    background-color: #0056b3;
}

.code-button.disabled{
    background-color: #AAA;
    cursor: auto;
}


/* Code box */
/* The overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* The popup container */
.popup {
    position:relative;
    background: white;
    width: 600px;
    height: 500px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Title bar */
.popup-title-bar {
    background: #007BFF; /* Bootstrap primary blue */
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-title-bar h3 {
    margin: 0;
    font-size: 18px;
}

.popup-title-bar button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* Popup content */
 .tabs {
    display: flex;
    justify-content: flex-end; /* Aligns buttons to the right */
    gap: 10px; /* Optional: Space between buttons */
    background-color: white;
}

.tabs button {
    width: auto;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    font-size: 14px;
    color: #555;
    border-bottom: 2px solid transparent;
}

.tabs button.active {
    font-weight: bold;
    border-bottom: 2px solid #007BFF;
    color: #007BFF;
}

.code-content {
    /*padding: 15px;*/
    padding-left: 15px;
    font-family: monospace;
    background: white;
    display: none; /* Initially hidden */
    max-height: calc(100% - 120px); /* Leave space for tabs */
    height: calc(100% - 120px);
    overflow-y: auto; /* Add scrolling if needed */
}

.code-content code {
    background: white;
}

.code-content.active {
    display: block; /* Show active code content */
}

#clipboard-button{
    display: flex;
}
