:root{
  --orange: #FF6600;          /* header and accents */
  --orange-dark: #e45d00;     /* hover/active */
  --surface: #ffffff;         /* cards */
  --border: #d9d9d9;          /* light outline */
  --text: #1f2328;            /* body text */
  --muted: #5a5f66;           /* secondary text */
  --radius-xl: 18px;          /* card roundness (close to screenshot) */
  --radius-md: 10px;
  --shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 18px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: #fafafa;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}

/* HTML: <div class="loader"></div> */
.loader {
  width: 15rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: 
    radial-gradient(farthest-side,#ffa516 94%,#0000) top/2rem 2rem no-repeat,
    conic-gradient(#0000 30%,#ffa516);
  -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 2rem),#000 0);
  animation: l13 1s infinite linear;
}
.loaderContainer {
    position: absolute;
    top: 50%; /* Moves the top edge to the vertical center */
    left: 50%; /* Moves the left edge to the horizontal center */
    transform: translate(-50%, -50%); /* Shifts the element back by half its own width and height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.loaderLabel {
    text-align: center;
    font-size: 1.5rem;
    color: darkgray;
}
@keyframes l13{ 
  100%{transform: rotate(1turn)}
}
.fade-in {
    transition: opacity 1s ease-in-out; /* Smooth transition for opacity changes */
    opacity: 1; /* Initial state */
}
.fade-out {
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

.hidden {
    display: none !important;
}

.welcomeContainer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 5rem;
}
.welcomeLabel{
    font-size: 45px;
}
.welcomSubLabel{
    font-size: small;
    text-align: center;
}
/* ===== Top bar ===== */
.topbar{
    padding: 3px;
    background: var(--orange);
    border-bottom: 4px solid var(--orange);
    height: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mainContainer {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 10px;
}
.header {
    color: #ffffff;
    background-color: var(--orange);
    border-style: solid;
    border-color: var(--orange);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    height: 2.5rem;
    display: flex;
    align-items: anchor-center;
    padding: 10px;
    font-family: sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.2px;
}
.body {
    border-style: solid;
    border-color: var(--orange);
    padding: 20px;
    background: #fff;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}
.insBody {
    border: none;
    padding-top: 0px;
}
.refBody, .derBody {
    min-height: 18.45rem;
}
.rightColumn {
    width: 20%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.leftColumn {
    min-width: 79%;
}
/* References list */
.links, .queryList{
    margin: 0;
    padding-left: 18px; /* bullets */
    display: grid;
    gap: 12px;
}
.links a{
    text-decoration: none;
    word-break: break-all; /* long URLs wrap like screenshot */
    border-bottom: 1px dashed transparent;
}
.links a:hover{
    color: var(--orange-dark);
    border-bottom-color: var(--orange-dark);
}
.ins {
    color: #758195;
    background: white;
    border: none;
    border-bottom: 1px solid #758195;
    font-size: xx-large;
}
/* Scrollable areas (shows a custom orange scrollbar) */
.scroll{
    overflow: auto;
    scrollbar-gutter: stable both-edges;
}

/* Search centered */
.search{
    display: flex;
    background: var(--surface);
    border-radius: 999px;
    padding: 3px 6px 3px 10px;
    box-shadow: var(--shadow);
    width: 30%;
    margin-bottom: -5px;
}
.search input{
    border: none;
    outline: none;
    font-size: 0.95rem;
    flex-basis: 95%;
}
.search button{
    border: none;
    border-radius: 999px;
    background: transparent;
}
.search button:hover{ 
  background: var(--orange-dark); 
}
#topbarButton:hover{
    background: transparent; 
    border: solid;
    border-color: var(--orange-dark);
}

.welcomeContainer .search {
    height: 80px;
    width: 500px;
    border-radius: 25px;
}
.welcomeContainer input {
    font-size: 1.5rem;
}

/* Custom scrollbar (WebKit/Blink) */
.scroll::-webkit-scrollbar{
  width: 10px;
  height: 10px;
}
.scroll::-webkit-scrollbar-track{
  background: #f3f3f3;
  border-radius: 999px;
}
.scroll::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, #ffb76f, #ffb76f);
  border-radius: 999px;
}
.scroll::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(180deg, #ff8812, #ff7d1acd);
}

/* Right panel content */
.page-title{
  font-size: 1.8rem;
  margin: 4px 0 16px;
}