/* v2024.11.28 */
/*
html {
     font-size: clamp(1rem, 0.75rem + 1.5vw, 2rem);
}
*/

body {
  background-color: white; /* var(--bkgrd-clr); */
  font-family: system-ui, sans-serif;
  /* margin: 0px; */
}

#app { /* changed from class to element */
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  display: flex;
  flex-direction: column;
}

.header-main{
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Will this break anything? */
}

.flex-fill {
  flex: 1 1;
  min-width: 0;
  min-height: 0
}

.flex-row {
  display: flex;
  flex-direction: row;
}


@media screen and (max-width: 768px) {
  #app {
      flex-direction: column-reverse !important;
  }
}

header {
  flex: none;
  text-align: center;
  user-select: none;
}

main {
  display: flex;
  flex: 1 1;
  min-height: 0;
  min-width: 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background: White;
  /*
    background-image: url(ebooks/ebooks.jpg);
    background-color: lightgray;
    */
}

.navbar {
  display: flex;
  /*  flex: 1 1;
    background-color: #e4f3ff;
    min-height: 0;
    min-width: 0;
    border-right: tan 1px solid;
    width: 318px;
    border-radius: 10px;
    box-shadow: rgba(31, 38, 135, 0.37) 0px 8px 32px 0px;
*/
  flex-direction: column;
  margin-top: 6px;
  margin-left: 6px;
  margin-bottom: 6px;
  box-shadow: rgba(31, 38, 135, 0.37) 5px 5px 20px 0px;
}

.navtitle {
  background-color: var(--accent);/*rgba(157, 90, 1, 0.5);*/
  font-size: 1.2em;
  text-align: center;
  flex: none;
  overflow: auto;
  white-space: nowrap;
  padding: 2px;
  cursor: pointer;
}

.navdiv {
  display: flex;
  flex: 1 1;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  flex-direction: column;
}

.docbar {
  display: flex;
  overflow-x: auto;
}

.docpane {
  display: flex;
  flex: none;
  flex-direction: column;
  overflow-y: auto;
}

#left,
#right {
  flex: 1;
  overflow: auto;
}

.iTool {
  display: flex;
  /* background-color: rgba( 157, 90, 1, 0.50 ); */
}

.iTool i {
  padding-top: 7px;
}

.filldn {
  height: 100%;
}

.conRow {
  display: flex;
  flex-direction: column;
}

.conCol {
  display: flex;
  flex-direction: row;
}

.dbug {
  display: none;
  /*

    */
}

.hide {
  display: none;
}

#bm {
  width: 100%;
  min-width: 24px;
  max-width: 24px;
  cursor: pointer;
  grid-column: 1 / 1;
}

/*
#header {
    padding: 2px;
}*/

.left-sidebar {
  grid-column: 1 / 2;
}

.right-sidebar {
  background: grey;
  grid-column: 3 / 4;
}

footer {
  background: #000;
  opacity: 0.8;
  color: white;
  height: auto;
  text-align: left;
  padding: 2px 4px 2px 4px;
  grid-column: 1 / 4;
}

.left-sidebar,
.right-sidebar {
  padding: 4px;
}

/* Lists */
.lst {
  padding: 0;
  margin: 0;
  /* background-color: #f6f6f6; */
  background-color: #ffffff;
}

.lst .itm {
  border: 1px solid #ddd;
  margin-top: -1px; /* Prevent double borders */
  padding: 10px;
  font-size: 14px;
  color: #1a1a1a;
  overflow: hidden;
  /*min-height: 20px;*/
  min-height: 45px;
  /*
        box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
        border-radius: 2px;
        border: 1px solid rgba( 255, 255, 255, 0.18 );
        background: rgba( 132, 193, 197, 0.50 );
        backdrop-filter: blur( 5.0px );
        -webkit-backdrop-filter: blur( 5.0px );
        */
}

.lst .itm:hover {
  background-color: #ddd;
}

.lst .itmActive {
  border: 1px solid #ddd;
  margin-top: -1px; /* Prevent double borders */
  padding: 10px;
  font-size: 14px;
  background-color: #ccc;
}

.itm00 {
  /* item row,col */
  display: inline-block;
  float: none;
}

.itm01 {
  color: gray;
  float: right;
}

.itm10 {
  display: inline-block;
  margin: 6px 0px 0px 0px;
  color: gray;
  float: none;
  font-size: 12px;
  overflow: auto;
  white-space: normal;
}

.itm11 {
  margin: 6px 0px 0px 0px;
  float: right;
  font-size: 12px;
}

.topRad {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.leftRad {
  border-bottom-left-radius: 10px;
}

.rightRad {
  border-bottom-right-radius: 10px;
}

.cPro {
  width: 96%;
  margin: 4px;
}
.srchTxt {
  width: 225px;
  margin: 4px;
}

.srchBtn {
  height: 24px;
  margin-right: 4px;
}

.srchInp {
  width: 95%;
  margin: 2px;
  border: 0;
}

.cLevs {
  margin: auto;
}

.cLev {
  /* margin-left: 4px; */
  user-select: none;
}
input[type="radio"] {
  display: none;
}

.btnlabel {
  display: inline-block;
  margin: 2px;
  padding: 2px;
  border: 1px solid;
  border-radius: 50%;
  width: 21px;
  text-align: center;
  cursor: pointer;
}

input[type="radio"]:checked + label {
  background-color: lightblue;
}

/* Basic Button */
.btn2 {
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
  padding: 0.5rem;
  /* Clickable area */
  border-radius: 50%;
  /* Circular background on hover */
  margin-left: 0.5rem;
  /* Space between buttons */
  font-size: 1.25rem;
  /* Icon size */
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn2:hover {
  background-color: #777;
  color: #111827;
  /* Slightly darken icon on hover */
}

/* Disabled state for .btn2 */
.btn2:disabled,
.btn2[disabled] {
  background-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

/* Prevent hover styles when disabled */
.btn2:disabled:hover,
.btn2[disabled]:hover {
  background-color: #e5e7eb;
  color: #9ca3af;
}

/*
.btn2:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #6366f1;
}*/

.btn2 svg {
  /* Specific style for theme toggle SVG */
  width: 1em;
  /* Match font size */
  height: 1em;
  vertical-align: middle;
  /* Align icon better */
  fill: #6b7280;
}

.btn2 i {
  /* Specific style for theme toggle SVG */
  width: 1em;
  /* Match font size */
  height: 1em;
  vertical-align: middle;
  /* Align icon better */
  fill: #000;
}

A:link {
  color: blue;
  text-decoration: none;
}

A:active {
  color: blue;
  text-decoration: none;
}

A:visited {
  color: blue;
  text-decoration: none;
}

A:hover {
  color: red;
  text-decoration: none;
}