.theme-matrix {
    --accent: #48e97e;
    --text-main: #55e786;
    --heading: #5af28c;
    --link: #4aff86;
    --bg-main: #13291a;
    --top-bars: #163320;
    --header-footer-bg: #254c32;
    --borders: #55e7869e;
    --page-backdrop: #1a3623;
    --surface-1: #152d1d;
    --surface-2: #1c3a26;
    --surface-3: #264e33;
    --table-row-even: #1b3925;
    --border-surface: #21452d;
    --info-surface: #275135;
    --scrollbar-thumb: #428a5a;
    --scrollbar-thumb-hover: #5eb27a;
    --h3-dim: #64d88b;
    --tab-title-dim: #4ecc78;
    --tab-title-selected: #7bd99a;
    --sort-button-dim: #348950;
    --code-text: #8de2a9;
    --blockquote-text: #90dfab;
    --media-card-bg: #004718;
}

.theme-matrix #AllDocumentsContainer{
  background-color: var(--page-backdrop);
}

.theme-matrix #mainDocSpinner{
    border: 2px solid rgba(222, 221, 221, 0.1);
    border-top: 2px solid var(--heading);
}

.theme-matrix .DocumentColumn{
    background-color: var(--bg-main); /* dark background */
}

.theme-matrix #CurrentDocumentTopBar{
  background-color: var(--top-bars);
  border-bottom-color: var(--borders);
}

.theme-matrix #RightDocumentsTopBar{
  background-color: var(--top-bars);
  border-bottom-color: var(--borders);
}

.theme-matrix #OneDocumentContainer {
    background-color: var(--bg-main);
    border-right-color: var(--borders);
}

.theme-matrix #AllRightDocumentsContainer {
    background-color: var(--bg-main);
    border-left-color: var(--borders);
}


.theme-matrix #multiple-links-popup{
  background-color: var(--bg-main);
}

.theme-matrix .linkInputTypeSelectorButton{
  background-color: var(--top-bars);
}

.theme-matrix .linkInputTypeSelectedButton{
  background-color: var(--accent);
}


.theme-matrix .BelowContentComments{
    border-top: 2px solid var(--border-surface);
}

.theme-matrix .StaticCommentsSection{
    background-color: var(--bg-main);
}

.theme-matrix div{
    color: var(--text-main);
}

.theme-matrix .ActionButton{
  color:var(--heading);
}

.theme-matrix .PageInfo-OneIconComponent {
  color: var(--heading);
}

.theme-matrix .LinksListSortButton {
    color:var(--sort-button-dim);
}
.theme-matrix .FlinksListSelectedSide *{
  color:var(--heading);
}

.theme-matrix #CurrentDocumentInfo{
  background-color: var(--bg-main);
}

.theme-matrix .InfoLinkRowDiv{
  background-color: var(--info-surface);
}

.theme-matrix #CurrentDocumentMainCollageCanvas,
.theme-matrix .OneCollageCanvas{
  background-color: var(--surface-1);
}


.theme-matrix .DocumentTopBarButtonWrapper,
.theme-matrix .DocumentTopBarButtonWrapper *{
  color:var(--heading);
}

.theme-matrix .CurrentDocumentInfoButtonCountDivIncomplete{
  color:red;
}

.theme-matrix .selectedIcon *{
  color:var(--heading);
}

.theme-matrix .DocumentTitleSpan{
  color:var(--heading);
}


.theme-matrix #CurrentDocumentExportContainer,
.theme-matrix #RightDocumentExportContainer{
  background-color: var(--bg-main);
}

.theme-matrix #SourceCodeTextDiv{
  background-color: var(--info-surface);
}

.theme-matrix #ExportTextDiv{
  background-color: var(--info-surface);
}

.theme-matrix .RightDocumentTab{
  background-color: var(--header-footer-bg);

}


.theme-matrix .RightDocumentTabSelected{
  background-color: var(--top-bars);
}

.theme-matrix .RightDocumentTabTitle{
  color:var(--tab-title-dim);
}

.theme-matrix .RightDocumentTabTitleSelected{
  color:var(--tab-title-selected)

}


.theme-matrix .NoteDiv{
    background-color: var(--bg-main); /* dark background */
}



.theme-matrix .DocumentTopPanel{
    background-color: var(--header-footer-bg);
}

.theme-matrix .TopPanelTitle{
    color:var(--heading);
}

.theme-matrix .TopPanelOptionLink{
    color:var(--heading);
}

.theme-matrix #middle-canvas-topDiv{
  background-color: var(--top-bars);
  border-bottom-color: var(--borders);

}

.theme-matrix #LinksListContainerDiv {
  background-color: var(--bg-main);
  /* //box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); */
  border-width: 1px;
  border-style: solid;
  border-color: var(--borders);
}

.theme-matrix .DeleteFlinkButton{
  color: var(--heading);
}


.theme-matrix .CancelButton {
    background-color: transparent;
    border-color: var(--heading);
    color: var(--heading);

}

.theme-matrix .CancelButton:hover {
    background-color: var(--header-footer-bg);

}

.theme-matrix .FlinkOneEndContainer{
  background-color: rgba(255, 255, 255, 0.1);;
}

.theme-matrix #LinksListModificationMessage {
  color:var(--heading);
}

.theme-matrix .DocumentBottomPanel{
    background-color: var(--header-footer-bg);
}

.theme-matrix .RightSandwichLine{
    background-color: var(--heading);
}

.theme-matrix .LeftSandwichLine{
    background-color: var(--heading);
}


.theme-matrix .DocumentDropDownMenu{
    background-color: var(--header-footer-bg);
}

.theme-matrix .FooterSectionTitle{
    color:var(--heading);
}
.theme-matrix .FooterOptionLink{
    color:var(--heading);
}

.theme-matrix .DocumentBottomPanelBottomMessage{
    color:var(--heading);
}


.theme-matrix .PostNavBarSide * {
  color: var(--accent);
}

  /* Lists */
  .theme-matrix ol, ul {
    padding-inline-start: 10px;
  }

  .theme-matrix li {
    color: var(--text-main);
  }

  .theme-matrix figcaption {
    color: var(--text-main);
  }

  /* Paragraphs */
  .theme-matrix p {
    margin: 1em 0;
    font-size: 1.05em;
    color: var(--text-main);
  }

  /* Headings */
  .theme-matrix h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headers-family, "Helvetica Neue", Arial, sans-serif);
    font-weight: var(--font-headers-weight, 600);
    line-height: var(--font-headers-line-height, 1.3);
    margin: 1.6em 0 0.6em;
    color: var(--heading);
  }

  .theme-matrix h1 {
    font-size: 2.2em;
    border-bottom: 2px solid var(--border-surface);
    padding-bottom: 0.3em;
  }

  .theme-matrix h2 {
    font-size: 1.8em;
    margin-top: 2em;
  }

  .theme-matrix h3 {
    font-size: 1.4em;
    margin-top: 1.5em;
    color: var(--h3-dim);
  }

  .theme-matrix hr {
    background-color: var(--borders);
  }

  /* Links */
  .theme-matrix a {
    color: var(--link);
    text-decoration: none;
  }
  .theme-matrix a:hover {
    text-decoration: underline;
  }



  .theme-matrix a.multiple-links-popup-row{
    color: var(--text-main);
  }

   .theme-matrix a.multiple-links-popup-row:hover{
    text-decoration: none;
  }



  /* Code snippets */
  .theme-matrix pre,
  .theme-matrix code {
    font-family: var(--font-code-family, "Fira Code", monospace);
    background-color: var(--surface-3);
    color: var(--code-text);
    /* padding: 0.2em 0.4em; */
    border-radius: 4px;
  }

  .theme-matrix pre {
    padding: 1em;
    overflow-x: auto;
  }

  /* Blockquotes */
  .theme-matrix blockquote {
    position: relative;
    margin: 1em 0;
    padding: 1em 1.2em;
    padding-left: 2em;
    background-color: var(--surface-2);
    border-left: 5px solid var(--link);
    border-radius: 6px;
    color: var(--blockquote-text);
    font-style: italic;
    font-family: var(--font-quotes-family, Georgia, serif);
    line-height: var(--font-quotes-line-height, 1.6);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  }

  .theme-matrix blockquote::before {
    position: absolute;
    left: 10px;
    top: 0;
    font-size: 3em;
    line-height: 1;
    color: var(--link);
    font-family: var(--font-quotes-family, Georgia, serif);
  }

  .theme-matrix blockquote ol {
    padding-left: 10px;
    padding-right: 10px;
    list-style-position: inside;
  }

  /* Tables */
  .theme-matrix table {
    border-collapse: collapse;
    margin: 1.5em 0;
    font-family: var(--font-quotes-family, "Georgia", serif);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-main);
    background-color: var(--bg-main);
  }

  .theme-matrix th {
    background-color: var(--surface-1);
    color: var(--heading);
    font-weight: 600;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-surface);
  }

  .theme-matrix td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-surface);
  }

  .theme-matrix tr:nth-child(even) {
    background-color: var(--table-row-even);
  }

  .theme-matrix tr:hover {
    background-color: var(--border-surface);
  }

.theme-matrix .media-card {
    display: inline-block;
    /* border: 2px solid var(--accent); */
    border-radius: 8px;
    padding: 12px 16px;
    margin: 6px 0;
    background-color: var(--media-card-bg);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.theme-matrix .media-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}


.theme-matrix pre::-webkit-scrollbar,
.theme-matrix #ExportTextDiv::-webkit-scrollbar,
.theme-matrix .DocumentColumn::-webkit-scrollbar,
.theme-matrix #SourceCodeTextDiv::-webkit-scrollbar,
.theme-matrix .StaticCommentsSection::-webkit-scrollbar{
    width: 15px;
    height: 15px;
}

.theme-matrix .DocumentColumn::-webkit-scrollbar-track,
.theme-matrix #ExportTextDiv::-webkit-scrollbar-track,
.theme-matrix #SourceCodeTextDiv::-webkit-scrollbar-track,
.theme-matrix pre::-webkit-scrollbar-track,
.theme-matrix .StaticCommentsSection::-webkit-scrollbar-track{
    background: var(--header-footer-bg);
}

.theme-matrix pre::-webkit-scrollbar-thumb,
.theme-matrix #ExportTextDiv::-webkit-scrollbar-thumb,
.theme-matrix #SourceCodeTextDiv::-webkit-scrollbar-thumb,
.theme-matrix .DocumentColumn::-webkit-scrollbar-thumb,
.theme-matrix .StaticCommentsSection::-webkit-scrollbar-thumb{
    background: var(--scrollbar-thumb);
    /* thumb color */
    border: 4px solid transparent;
    /* creates the gap */
    background-clip: content-box;
    /* ensures color doesn't paint over the border */
    border-radius: 10px;
    /* still rounded */
}

.theme-matrix pre::-webkit-scrollbar-thumb:hover,
.theme-matrix #ExportTextDiv::-webkit-scrollbar-thumb:hover,
.theme-matrix #SourceCodeTextDiv::-webkit-scrollbar-thumb:hover,
.theme-matrix .DocumentColumn::-webkit-scrollbar-thumb:hover,
.theme-matrix .StaticCommentsSection::-webkit-scrollbar-thumb:hover{
    background: var(--scrollbar-thumb-hover);
    border: 4px solid transparent;
    /* creates the gap */
    background-clip: content-box;
    border-radius: 10px;
}

.theme-matrix .DocumentColumn::-webkit-scrollbar-corner,
.theme-matrix .StaticCommentsSection::-webkit-scrollbar-corner,
.theme-matrix #SourceCodeTextDiv::-webkit-scrollbar-corner{
    background: var(--header-footer-bg);
}

.theme-matrix .comments-title {
    margin-top: 10px;
}

.theme-matrix .no-comments-text {
    align-self: center;
    margin-top: 15px;
    font-size: 25px;
}


.theme-matrix .swp-leave-comment-btn {
  color:var(--heading);
  border: 1px solid var(--heading);
}

.theme-matrix .swp-load-more-btn {
  color: var(--heading);
  border: 1px solid var(--heading);
}


.theme-matrix .swp-reply-btn{
  color:var(--heading);
}


