.document ,html,div.document,body{
    background-color: transparent !important
    /* background-image: linear-gradient(150deg, #082236 63%, #6A3784 100%); */
}

.body {
    background-color: transparent !important;
    color: white !important;
    max-width: 85% !important;
}

table {
    width: 100%;
    overflow-x: auto;
    margin-top: 2em;
}

td, table, th {
    border: solid 0.5px rgba(235, 221, 221, 0.192);
    border-collapse: collapse;
    word-break: break-word;
    overflow-wrap: anywhere;
    padding:12px
}

th , tr:first-child {
    background-color: #ffffff33 !important;
    font-weight: bold;
}

   

tr > td , tr > th{
    background-color: #9d9d9d1e !important;
    width: fit-content;
    max-width: 300px;

}

body, html {
    font-family: "elza", Sans-serif !important;
}

div.body h1, div.body h2, div.body h3, div.body h4, div.body h5, div.body h6 {
    font-family: "elza", Sans-serif;
    background-color: transparent;
    font-weight: bold;
    color: white;
    border-bottom: none;
    margin: 20px -20px 10px -20px;
    padding: 3px 0 3px 10px;
}

.related, .footer {
    display: none;
}

div.bodywrapper {
    margin: 0 0 0 20% !important;
}

div.sphinxsidebar {
    width: 20%;
}

div.highlight {
    color: #5E5E5E !important;
    border-radius:0px 0px 8px 8px;
    /* color: #082236 !important; */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    padding: 20px 10px;
    background-color: #ffffffa1;
}

div[class*="highlight-"] {
  box-shadow: 0 4px 20px rgb(0 0 0 / 79%);
}

div.sphinxsidebarwrapper {
    backdrop-filter: blur(11px) saturate(100%);
    -webkit-backdrop-filter: blur(11px) saturate(100%);
    background-color: rgba(255, 230, 252, 0.16);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.125);
    margin: 1em;
    padding: 1em;
    display: flex;
    position:fixed;
    width: 15%;
    height: fit-content;
    overflow-y: auto;
    max-height: 93vh;
}

div.sphinxsidebar h1, div.sphinxsidebar h2, div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar h5, div.sphinxsidebar h6 {

  font-family: "elza", Sans-serif;

}

 
img {
    margin: auto;
    border-radius: 5px !important;
    display: block;
}

p.img-caption,
p.tbl-caption {
  text-align: center !important;
}

p:has(>img) {
    padding: 0 20px;
    text-align: center!important;
}

div.sphinxsidebar a {
    color: #ffffff !important;
}

tr > td > a {
    color: #9edaf6 !important;
}


/* Wrapper TOC */
.sphinxsidebarwrapper {
  font-size: 14px;
}

/* Struttura base */
.sphinxsidebarwrapper ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

.sphinxsidebarwrapper li {
  position: relative;
  margin: 4px 0;
}

/* Collapsing animation */
.sphinxsidebarwrapper li > ul {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.sphinxsidebarwrapper li.is-open > ul {
  max-height: 1000px;
}

/* Link stile WordPress */
.sphinxsidebarwrapper a {
  text-decoration: none;
  /* color: #1ea5e4; */
  font-weight: 500;
}

.sphinxsidebarwrapper a:hover {
  color: #b0b0b0 !important
}

html {
  scroll-behavior: smooth !important;
}


.sphinxsidebarwrapper a.active {
    font-weight: bold;
    /* border-left: 3px solid rgba(163, 115, 245, 0.751); */
    color:  rgba(163, 115, 245, 0.751) !important;
    /* margin-left:4px; */
    padding-left:4px;
}

.toc-toggle:hover {
    color: #b0b0b0 !important;
}

.err{
  border:none !important;
}
.s2,.s {
  color: #bf2e2e;
}

a.headerlink,a.headerlink:hover{
  color:white !important;
  background-color: transparent;
}

div.code-block-caption{
  border-radius: 5px 5px 0px 0px;
  /* border-bottom: none; */
  padding: 7px;
  box-shadow: 0 4px 20px rgb(0 0 0 / 79%);
  text-transform: uppercase;
  background-color: #8d30f0;
}

.caption-text {
  color: white;
  font-weight: bold;
}



pre {
  color: #000000;
  border:0px;
  background-color: transparent;
}
.nt {
  color: #1164ad;
}

.headerlink {
    background-color:transparent
}

a.reference.external{
    color: #47a2df !important;
    text-decoration: underline;
}
a.reference.external:hover {
    color: #b0b0b0 !important;
    text-decoration: underline;
}

/* Toggle wrapper */
.toc-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  cursor: pointer;
}

.toc-toggle-empty {
  display: inline-block;
  padding-left: 18px;;
  margin-right: 6px;
}
/* SVG arrow */
.toc-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

/* Rotazione quando aperto */
li.is-open > .toc-toggle svg {
  transform: rotate(90deg);
}

/* Hover effect elegante */
li:hover > .toc-toggle svg {
  stroke: #b0b0b0 ;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 6px;
}

* {
  scrollbar-width: thin;
  scrollbar-color:#ffffff88 rgba(255, 255, 255, 0.534);
}