:root {
  /* primary theme colors */
  --dough-white: #fbfaf5;
  --obsidian-black: #0b1215;

  /* theme switcher colors */
  --c-text-primary: #191919;
  --c-text-secondary: #737374;
  --c-border-primary: #ccc;
  --c-bg-body: #ccc;
  --c-bg-primary: #fff;
  --c-bg-secondary: #d4d8dd;
  --c-bg-button: #fff;
  --slider-shadow: inset 0 1px 1px #ddd, 0 2px 3px #ccc;
}

body {
  padding-top: 50px;
  background-color: var(--dough-white);
}

@media (min-width: 992px) {
  .col-md-5 {
    width: 50%;
  }
}

#mainContainer {
  position: relative;
}

#pipContainer {
  display: none;
}

.pip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #7e7d7d;
  font-weight: bold;
  pointer-events: none;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.5);

  &::after {
    content: "Floating Window is Activated";
  }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Adjust opacity as needed */
  pointer-events: none;
  /* Makes overlay non-interactive by default */
  z-index: 10;
  display: none;
}

.pip-icon {
  cursor: pointer;
}

@media all and (display-mode: picture-in-picture) {
  body {
    padding-top: 0px;
  }
}

.generic-flex {
  display: flex;
  align-items: center;
  gap: 5px;
}

textarea {
  width: 100%;
  height: 100%;
  font-size: 18px;
  outline: none;
  box-shadow: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  outline: 0px !important;
  -webkit-appearance: none;
  resize: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background: transparent;
  scrollbar-gutter: stable;
}

kbd {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-family: 'Roboto Mono', monospace;
  color: #333;
  background: #fff;
  border: 2px solid #c8c8c8;
  border-radius: 4px;
  box-shadow: 0 4px #b0b0b0, inset 0 -2px 4px rgba(0, 0, 0, 0.1), inset 0 3px 6px rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
  margin: 0 4px;
  line-height: 1.4;
  transition: transform 0.1s, box-shadow 0.1s;
  font-weight: bold;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

kbd>span {
  font-size: 11px;
}

table {
  padding: 0;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

table tr {
  display: flex;
  background-color: var(--dough-white);
  margin: 0;
  padding: 10px;
  align-items: center;
}

table tr:nth-child(n+2) {
  border-top: 1px solid #e0e0e0;
}

table tr td {
  text-align: left;
  margin: 0;
  padding: 6px 13px;
  width: 50%;
  display: flex;
  align-items: center;
  gap: 2px;
}

.about-icon-container {
  display: inline-flex;
  gap: 10px;
  float: left;
  align-items: center;
}

.about-icon-container>a {
  transition: transform 200ms ease-out;
}

.about-icon-container>a:hover {
  transform: translateY(-5px) rotate(-15deg);
}

.dark .icon-container span>a {
  transition: all 0.3s ease-in-out;
}

.dark .icon-container span>a:hover {
  -webkit-filter: drop-shadow(0 0 0.625vw #2196F3) drop-shadow(0 0 3.6979166667vw #2196F3);
  filter: drop-shadow(0 0 0.625vw #2196F3) drop-shadow(0 0 3.6979166667vw #2196F3);
}

#iconDropdown a {
  cursor: pointer;
}

.downaload-notes-container,
.more-tools-container {
  position: relative;
}

.dropdown-menu {
  top: 124%;
  padding: 8px 0;
  border-radius: 6px;
}

.dark .glow-text {
  animation: glow 2s forwards;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 5px #91ceff, 0 0 10px #91ceff, 0 0 20px #91ceff, 0 0 40px #91ceff, 0 0 80px #91ceff;
  }

  100% {
    /* Return to normal text shadow */
    text-shadow: 0 0 5px #2196f3;
  }
}

.dark .dropdown-menu {
  background-color: #26313f;
  border: 1px solid rgb(51 63 78);
}

.dark .dropdown-menu>li>a {
  color: #dcd6d6;
}

.dark .dropdown-menu>li>a:focus,
.dark .dropdown-menu>li>a:hover {
  background-color: #324256;
}

.navbar-default {
  background-color: #4d4d4d;
  border-color: #4d4d4d;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #4d4d4d !important;
}

.dark .navbar-inverse .navbar-toggle:focus,
.dark .navbar-inverse .navbar-toggle:hover {
  background-color: #293443 !important;
}

.navbar-default .navbar-toggle {
  border-color: #A1887F;
}

.navbar-default .navbar-brand {
  color: #ecf0f1;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
  color: #ecdbff;
}

.navbar-default .navbar-text {
  color: #ecf0f1;
}

.navbar-default .navbar-nav>li>a {
  color: #ecf0f1;
}

.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:focus {
  color: #ecdbff;
}

.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:hover,
.navbar-default .navbar-nav>.active>a:focus {
  color: #ecdbff;
  background-color: #8e44ad;
}

.navbar-default .navbar-nav>.open>a,
.navbar-default .navbar-nav>.open>a:hover,
.navbar-default .navbar-nav>.open>a:focus {
  color: #ecdbff;
  background-color: #8e44ad;
}

.navbar-default .navbar-toggle {
  border-color: #A1887F;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #4d4d4d;
}

.navbar-default .navbar-toggle .icon-bar {
  background-color: #ecf0f1;
}

.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
  border-color: #ecf0f1;
}

.navbar-default .navbar-link {
  color: #ecf0f1;
}

.navbar-default .navbar-link:hover {
  color: #ecdbff;
}

#flash {
  color: #64ff6a;
  font-weight: bold;
}

.btn-custom {
  margin-top: 9px;
}

#Rectangle {
  fill: lightgreen;
}

#trash {
  fill: lightcoral;
}

.trash-icon {
  cursor: pointer;
}

.download-icon,
.dropdown-icon {
  margin-top: 0px;
  cursor: pointer;
}

.dropdown-item {
  display: flex !important;
  gap: 9px;
  align-items: center;
}

.dropdown-item span {
  background: #ffc413;
  color: black;
  padding: 3px 6px;
  font-size: 10px;
  border-radius: 4px;
  font-weight: bold;
}

.app-heading {
  margin-left: 12px;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 1.2px;
  transition: color .2s ease-out, opacity .2s ease-out;
}

.navbar-inverse .app-heading {
  color: #7cc5ff;
  text-shadow: 0px 0px 3px #2196F3;
}

.navbar-default .app-heading {
  color: #ecf0f1;
  text-shadow: none;
}

.container {
  position: relative;
  padding-right: 0px;
  padding-left: 0px;
  margin-right: auto;
  margin-left: auto;
}

.make-hidden {
  display: none !important;
}

.about-notice {
  --shadow-color: 0deg 0% 67%;
  --shadow-elevation-low:
    0.3px 0.5px 0.9px hsl(var(--shadow-color) / 0),
    0.9px 1.9px 3.2px hsl(var(--shadow-color) / 0.45);
  background-color: #ecf0ff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-elevation-low);
  line-height: 23px;
}

.about-author-container {
  display: inline-flex;
  flex-direction: row;
  gap: 5px;
}

.about-author-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.modal-content {
  border-radius: 14px;
  border: none;
  background-color: var(--dough-white);
}

.nav-tabs>li.active>a,
.nav-tabs>li.active>a:focus,
.nav-tabs>li.active>a:hover {
  background-color: var(--dough-white);
}

.btn {
  border-radius: 8px;
}

.swal2-popup {
  border-radius: 1.3125em !important;
}

.swal2-styled.swal2-confirm,
.swal2-styled.swal2-cancel {
  border-radius: 0.55em !important;
}

.form-control {
  border-radius: 8px;
  background-color: var(--dough-white);
}

.swal2-popup {
  background: var(--dough-white) !important;
}

.sticky-notice {
  position: absolute;
  background: #009688;
  bottom: 48px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 60%;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0px 0px 9px 2px #abababc9;
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  gap: 14px;
}

.word-count-container {
  display: flex;
  background: #e2dcd8;
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 20px;
  color: #403333;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  gap: 10px;
  align-items: center;
}

.dark .word-count-container a {
  color: #000;
}

.dark .word-count-container.transparency a {
  color: #fff;
}

.word-count-container.transparency a,
.word-count-container a {
  color: #000;
}

.transparency.word-count-container {
  background: #fff2 !important;
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2), 0 0 18px #fff inset;
  backdrop-filter: blur(5px);
}

.dark .transparency.word-count-container {
  color: #fff;
  box-shadow: none;
}

.about-tabs li a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dark .word-count-container {
  background: #9ed4ff;
}

.tab-content .container {
  width: 100%;
  padding: 20px 0px;
}

.word-count-container p {
  margin: 0;
}

.sticky-notice p {
  margin: 0;
  line-height: 26px;
}

.sticky-notice a {
  color: #ffeb3b;
}

.dark .sticky-notice {
  background: #a2ffa2;
  box-shadow: 0px 0px 17px 0px #abababc9;
  color: #272727;
  font-weight: bold;
}

.dark .sticky-notice a {
  color: #93103d;
}

.donate-link {
  font-family: "Cookie", cursive;
  font-size: 22px;
}

.donate-link:hover {
  text-decoration: none;
}

textarea {
  padding: 15px 24px 40px;
  border: 1px solid #e6e4e4;
}

a {
  font-weight: bold;
}

.dark textarea {
  border: #000000;
  color: #dedede;

  border-right: 1px solid #3e3e3e;
  border-left: 1px solid #3e3e3e;
}

.dark {
  background-color: var(--obsidian-black);
  color-scheme: dark;
}

.adFooter {
  position: fixed;
  bottom: 0px;
  font-size: 0.8em;
  z-index: 1000;
  background: #ffffff;
  padding: 5px;
  text-align: center;
  width: 100%;
  float: left;
  border-top: 1px solid #f0f0f0;
}

.theme-switcher {
  background-color: var(--c-bg-secondary);
  border-radius: 8px;
  display: flex;
  padding: 0 3px;
  align-items: center;
  position: relative;
  overflow: hidden;
  font-size: 12px;
}

.theme-switcher .slider {
  display: block;
  position: absolute;
  z-index: 1;
  width: calc((100% - 6px) / 3);
  top: 3px;
  transform: translatex(-110%);
  bottom: 3px;
  border-radius: 6px;
  transition: 0.15s ease, transform 0.25s ease-out;
  background-color: var(--c-bg-button);
  box-shadow: var(--slider-shadow);
}

.theme-switcher input {
  display: none;
}

.theme-switcher input:nth-of-type(1):checked~.slider {
  transform: translateX(0);
}

.theme-switcher input:nth-of-type(2):checked~.slider {
  transform: translateX(100%);
}

.theme-switcher input:nth-of-type(3):checked~.slider {
  transform: translateX(200%);
}

.theme-switcher label {
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  width: calc(100% / 3);
  color: var(--c-text-secondary);
}

.theme-switcher label span {
  padding: 8px 0;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  color: #727272;
  cursor: pointer;
}

.theme-switcher label svg {
  display: inline-block;
  margin-right: 0.5rem;
  width: 20px;
}

#mode {
  cursor: pointer;
  display: flex;
  font-size: 16px;
}

#carbonads {
  --width: 180px;
  --font-size: 14px;
}

#carbonads {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: inline-block;
  overflow: hidden;
  margin-bottom: 5px;
  max-width: 270px;
  border-radius: 4px;
  text-align: center;
  border: dashed 1px #e6e6e6;
  background-color: hsl(0, 0%, 98%);
  font-size: var(--font-size);
  line-height: 1.5;
  width: 100%;
}

#carbonads a {
  color: inherit;
  text-decoration: none;
}

#carbonads a:hover {
  color: inherit;
}

#carbonads span {
  position: relative;
  display: block;
}

.carbon-img {
  display: block;
  margin-bottom: 8px;
  max-width: var(--width);
  line-height: 1;
}

.carbon-img img {
  display: block;
  margin: 0 auto;
  max-width: 130px !important;
  width: var(--width);
  height: auto;
  float: left;
  margin: 0;
}

.carbon-text {
  display: block;
  padding: 0 1em 8px;
  max-width: 138px;
  float: left;
  text-align: left;
}

.carbon-poweredby {
  display: block;
  padding: 10px var(--font-size);
  background: repeating-linear-gradient(-45deg, transparent, transparent 5px, hsla(0, 0%, 0%, .025) 5px, hsla(0, 0%, 0%, .025) 10px) hsla(203, 11%, 95%, .4);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
  font-size: 9px;
  line-height: 0;
}

.cookie_box_close {
  display: inline-block;
  position: absolute;
  top: 4px;
  right: 5px;
  cursor: pointer;
  font-weight: bolder;
  font-size: 16px;
  color: black;
}

.modal-container {
  padding: 10px 20px;
}

#toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #cecece;
  color: #494949;
  text-align: center;
  border-radius: 10px;
  padding: 14px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  font-weight: bold;
}

.dark #toast {
  background-color: #202630;
  color: #fff;
}


#toast.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 1.5s;
  animation: fadein 0.5s, fadeout 0.5s 1.5s;
}

.custom-modal-title {
  display: inline-block;
}

.install-app-btn-container {
  display: none;
}

.install-app-btn {
  padding: 5px 10px;
  background-color: #3F51B5;
  color: white;
  font-weight: bold;
  font-size: 13px;
  border-radius: 6px;
}

.install-app-btn:hover,
.install-app-btn:focus {
  text-decoration: none;
  color: white;
  transform: scale(1.05);
}

#changelog h4 {
  font-size: 16px;
  font-weight: bold;
}

#changelog h4:first-child {
  margin-top: 0;
}

.mic-icon {
  cursor: pointer;
}

.mic-active span {
  position: relative;
  display: inline-block;
}

/* Pulse effect around mic when active */
.mic-active span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 25px;
  background-color: rgba(255, 0, 0, 0.503);
  border-radius: 50%;
  z-index: 1;
  animation: heartbeat 1.2s infinite ease-in-out !important;
}

.timer-options {
  justify-content: center;
  margin: 26px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.5em;
}

.timer-options .btn {
  font-weight: bold;
  padding: 10px 18px;
}

.dark .timer-pill {
  background: #bff0ff;
}

.bottom-line {
  position: absolute;
  bottom: 1.2em;
  right: 1.4em;
  display: flex;
  gap: 6px;
}

.bottom-line .coffee-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff2 !important;
  padding: 5px;
  border-radius: 13px;
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2), 0 0 18px #fff inset;
  backdrop-filter: blur(5px);
}

.bottom-line .coffee-icon:hover .heart {
  fill: currentColor;
  transition: fill 0.3s ease;
}

.dark .bottom-line .coffee-icon {
  box-shadow: none;
}

.bottom-line .coffee-icon {
  color: #000;
}

.dark .bottom-line .coffee-icon {
  color: #fff;
}

.coffee-icon .vapor {
  position: absolute;
  left: 52%;
  top: -21px;
  transform: translateX(-50%) translateY(0);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.coffee-icon:hover .vapor1 {
  animation: rise-s-curve 2.5s ease-in-out infinite;
  animation-delay: 0s;
  left: 54%;
}

.coffee-icon:hover .vapor2 {
  animation: rise-s-curve 2.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

/* Floating Heart animation */
@keyframes float-up {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(-40px) rotate(10deg);
    opacity: 0;
  }
}

.heart-float {
  position: absolute;
  pointer-events: none;
  font-size: 12px;
  color: #ff6b6b;
  animation: float-up 1s ease-out forwards;
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
  z-index: 1000;
  bottom: 10;
  right: 20;
}

.dark .heart-float {
  color: #ff9e9e;
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
}

@keyframes rise-s-curve {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.2;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    transform: translateX(-50%) translateY(-30px);
    opacity: 0;
  }
}

.timer-pill {
  display: inline-block;
  background: #c9c7c7;
  margin-left: auto;
  padding: 5px 14px;
  border-radius: 20px;
  color: #403333;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  gap: 6px;
  align-items: center;
}

.pip .timer-pill {
  display: none;
}

.generic-gap {
  gap: 10px;
}

.icon-container {
  display: flex;
  gap: 12px;
  height: 50px;
  line-height: 20px;
  align-items: center;
}

@media (max-width: 400px) {
  .icon-container {
    gap: 0.7em;
  }
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-modal {
  position: relative;
}

.about-modal-logo {
  position: absolute;
  right: 0px;
  top: 60px;
  transform: rotate(6deg);
  opacity: 0.09;
}

.navbar-flex {
  display: flex;
  align-items: center;
}

@media screen and (max-width: 591px) {
  .about-modal-logo {
    display: none;
  }
}

.checkbox.checbox-switch {
  padding-left: 0;
}

.checkbox.checbox-switch label,
.checkbox-inline.checbox-switch {
  display: inline-block;
  position: relative;
  padding-left: 0;
}

.checkbox.checbox-switch label input,
.checkbox-inline.checbox-switch input {
  display: none;
}

.checkbox.checbox-switch label span,
.checkbox-inline.checbox-switch span {
  width: 35px;
  border-radius: 20px;
  height: 18px;
  border: 1px solid #dbdbdb;
  background-color: rgb(255, 255, 255);
  border-color: rgb(223, 223, 223);
  box-shadow: rgb(223, 223, 223) 0px 0px 0px 0px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

.checkbox.checbox-switch label span:before,
.checkbox-inline.checbox-switch span:before {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  content: " ";
  top: 0;
  position: relative;
  left: 0;
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.checkbox.checbox-switch label>input:checked+span:before,
.checkbox-inline.checbox-switch>input:checked+span:before {
  left: 17px;
}

.checkbox.checbox-switch label>input:checked+span,
.checkbox-inline.checbox-switch>input:checked+span {
  background-color: rgb(180, 182, 183);
  border-color: rgb(180, 182, 183);
  box-shadow: rgb(180, 182, 183) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch label>input:checked:disabled+span,
.checkbox-inline.checbox-switch>input:checked:disabled+span {
  background-color: rgb(220, 220, 220);
  border-color: rgb(220, 220, 220);
  box-shadow: rgb(220, 220, 220) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch label>input:disabled+span,
.checkbox-inline.checbox-switch>input:disabled+span {
  background-color: rgb(232, 235, 238);
  border-color: rgb(255, 255, 255);
}

.checkbox.checbox-switch label>input:disabled+span:before,
.checkbox-inline.checbox-switch>input:disabled+span:before {
  background-color: rgb(248, 249, 250);
  border-color: rgb(243, 243, 243);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Switch Light */
.checkbox.checbox-switch.switch-light label>input:checked+span,
.checkbox-inline.checbox-switch.switch-light>input:checked+span {
  background-color: rgb(248, 249, 250);
  border-color: rgb(248, 249, 250);
  box-shadow: rgb(248, 249, 250) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

/* Switch Dark */
.checkbox.checbox-switch.switch-dark label>input:checked+span,
.checkbox-inline.checbox-switch.switch-dark>input:checked+span {
  background-color: rgb(52, 58, 64);
  border-color: rgb(52, 58, 64);
  box-shadow: rgb(52, 58, 64) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch.switch-dark label>input:checked:disabled+span,
.checkbox-inline.checbox-switch.switch-dark>input:checked:disabled+span {
  background-color: rgb(100, 102, 104);
  border-color: rgb(100, 102, 104);
  box-shadow: rgb(100, 102, 104) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

/* Switch Success */
.checkbox.checbox-switch.switch-success label>input:checked+span,
.checkbox-inline.checbox-switch.switch-success>input:checked+span {
  background-color: rgb(40, 167, 69);
  border-color: rgb(40, 167, 69);
  box-shadow: rgb(40, 167, 69) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch.switch-success label>input:checked:disabled+span,
.checkbox-inline.checbox-switch.switch-success>input:checked:disabled+span {
  background-color: rgb(153, 217, 168);
  border-color: rgb(153, 217, 168);
  box-shadow: rgb(153, 217, 168) 0px 0px 0px 8px inset;
}

/* Switch Danger */
.checkbox.checbox-switch.switch-danger label>input:checked+span,
.checkbox-inline.checbox-switch.switch-danger>input:checked+span {
  background-color: rgb(200, 35, 51);
  border-color: rgb(200, 35, 51);
  box-shadow: rgb(200, 35, 51) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch.switch-danger label>input:checked:disabled+span,
.checkbox-inline.checbox-switch.switch-danger>input:checked:disabled+span {
  background-color: rgb(216, 119, 129);
  border-color: rgb(216, 119, 129);
  box-shadow: rgb(216, 119, 129) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

/* Switch Primary */
.checkbox.checbox-switch.switch-primary label>input:checked+span,
.checkbox-inline.checbox-switch.switch-primary>input:checked+span {
  background-color: rgb(0, 105, 217);
  border-color: rgb(0, 105, 217);
  box-shadow: rgb(0, 105, 217) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch.switch-primary label>input:checked:disabled+span,
.checkbox-inline.checbox-switch.switch-primary>input:checked:disabled+span {
  background-color: rgb(109, 163, 221);
  border-color: rgb(109, 163, 221);
  box-shadow: rgb(109, 163, 221) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

/* Switch Info */
.checkbox.checbox-switch.switch-info label>input:checked+span,
.checkbox-inline.checbox-switch.switch-info>input:checked+span {
  background-color: rgb(23, 162, 184);
  border-color: rgb(23, 162, 184);
  box-shadow: rgb(23, 162, 184) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch.switch-info label>input:checked:disabled+span,
.checkbox-inline.checbox-switch.switch-info>input:checked:disabled+span {
  background-color: rgb(102, 192, 206);
  border-color: rgb(102, 192, 206);
  box-shadow: rgb(102, 192, 206) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

/* Switch Warning */
.checkbox.checbox-switch.switch-warning label>input:checked+span,
.checkbox-inline.checbox-switch.switch-warning>input:checked+span {
  background-color: rgb(255, 193, 7);
  border-color: rgb(255, 193, 7);
  box-shadow: rgb(255, 193, 7) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch.switch-warning label>input:checked:disabled+span,
.checkbox-inline.checbox-switch.switch-warning>input:checked:disabled+span {
  background-color: rgb(226, 195, 102);
  border-color: rgb(226, 195, 102);
  box-shadow: rgb(226, 195, 102) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.monospaced {
  font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
}

.serif {
  font-family: 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif;
}

.graph-paper {
  background-image: linear-gradient(#d2d2d24d 1px, #0000 1px), linear-gradient(90deg, #d2d2d24d 1px, #0000 1px);
  background-position: -14px 14px;
  background-size: 12px 12px;
}

.graph-paper textarea {
  border-color: transparent;
}

.dark.graph-paper {
  background-image: linear-gradient(#5050504d 1px, #0000 1px), linear-gradient(90deg, #5050504d 1px, #0000 1px);
}

.dotted-paper {
  background-image: radial-gradient(#d2d2d280 1px, #0000 1px);
  background-size: 24px 24px;
}

.dotted-paper textarea {
  border-color: transparent;
}

.dark.dotted-paper {
  background-image: radial-gradient(#50505080 1px, #0000 1px);
}

/* Heartbeat animation */
@keyframes heartbeat {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  30% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}

@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 30px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }

  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }

  to {
    bottom: 0;
    opacity: 0;
  }
}

@media only screen and (min-width: 320px) and (max-width: 759px) {
  #carbonads {
    float: none;
    margin: 0 auto;
    max-width: 320px;
  }

  #carbonads span {
    position: relative;
  }

  #carbonads>span {
    max-width: none;
  }

  .carbon-img {
    float: left;
    margin: 0;
  }

  .carbon-img img {
    max-width: 130px !important;
  }

  .carbon-text {
    float: left;
    margin-bottom: 0;
    padding: 8px 20px;
    text-align: left;
    max-width: calc(100% - 129px - 3em);
  }

  .carbon-poweredby {
    left: 130px;
    bottom: 0;
    display: block;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .navbar-default .navbar-nav .open .dropdown-menu>li>a {
    color: #ecf0f1;
  }

  .navbar-default .navbar-nav .open .dropdown-menu>li>a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu>li>a:focus {
    color: #ecdbff;
  }

  .navbar-default .navbar-nav .open .dropdown-menu>.active>a,
  .navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus {
    color: #ecdbff;
    background-color: #8e44ad;
  }
}

.form-horizontal .control-label {
  text-align: left !important;
}

.navbar-toggle {
  margin-right: 24px;
}

.navbar-nav>li>a {
  padding-left: 2px;
}

@media (max-width: 412px) {
  .nav>li>a {
    padding: 10px 10px;
  }

  .nav-tabs {
    border-bottom: 1px solid #ddd;
    font-size: 13px;
  }
}

@media (max-width: 766px) {
  .dark textarea {
    border-right: 1px solid #0d1117;
    border-left: 1px solid #0d1117;
  }
}

@media (max-width: 450px) {
  .sticky-notice {
    width: 75%;
  }

  .navbar-brand {
    padding: 15px 12px;
  }
}

@media (max-width: 480px) {
  #pipContainer {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .keyboard-icon {
    display: none !important;
  }

  .fullscreen-icon {
    display: none !important;
  }

  .focus-mode-icon {
    display: none !important;
  }

  .navbar-nav>li>a {
    padding-left: 30px;
  }

  .navbar-flex {
    display: block;
  }
}

@media (min-width: 768px) {
  .navbar-nav {
    float: right;
    margin: 0;
  }
}

.ambient-noise-icon {
  position: relative;
}

.floating-notes {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.about-link {
  padding-right: 0 !important;
}

@keyframes floatNote {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(-80px) scale(0.8);
    opacity: 0;
  }
}

.toast-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: white;
  padding: 15px 15px 15px 18px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: none;
  max-width: 305px;
  border: 1px solid #e0e0e0;
  background-color: #dddddd;
  background-image: radial-gradient(#646464 0.5px, transparent 0.5px), radial-gradient(#646464 0.5px, #dddddd 0.5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

.toast-popup.show {
  display: block;
  animation: slideIn 0.5s ease-out forwards;
}

.toast-popup.hide {
  animation: slideOut 0.3s ease-in forwards;
}

.dark .toast-popup {
  background-image: radial-gradient(45.07% 92.4% at 51% 7.61%, #464646 0, #181e27 100%);
  border-color: #30363d;
  background-size: initial;
}

.dark .toast-content a {
  color: #c9d1d9;
  transition: color .2s ease-out, opacity .2s ease-out;
}

.dark .toast-content a:hover {
  color: #58a6ff;
}

.dark .close-popup {
  color: #8b949e;
}

.dark .close-popup:hover {
  color: #c9d1d9;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-content a {
  color: #2c3e50;
  text-decoration: none;
  flex-grow: 1;
}

.toast-content a:hover {
  color: #3498db;
}

.close-popup {
  background: none;
  border: none;
  color: #666;
  font-size: 20px;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
}

.close-popup:hover {
  color: #333;
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  20% {
    transform: translateX(30px);
    opacity: 1;
  }

  100% {
    transform: translateX(-400px);
    opacity: 0;
  }
}

/* White Noise Player Styles */
.sound-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.6em;
}

.sound-button>div:first-child {
  display: flex;
  flex-direction: row;
  gap: 0.6em
}

.sound-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 10px;
  background: #f1efef;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  gap: 22px;
}

.sound-button:hover {
  background: #e3e2e2;
}

.sound-button .new-badge {
  position: absolute;
  top: -5px;
  left: 11px;
  background-color: #28a745 !important;
  color: white;
  font-size: 8px;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 3px;
  line-height: 1;
  background: #e3e2e2;
}

.sound-button.playing {
  background: #dcefff;
}

.sound-button span {
  flex: 1;
  font-size: 13px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sound-button.playing::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: #2196f3;
  border-radius: 50%;
  margin-left: 8px;
  animation: pulse 1.5s infinite;
  position: absolute;
  top: 10px;
  right: 10px;
}

#shareNotesContainer {
  display: none;
}

#shareNotes {
  cursor: pointer;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
  }
}

.dark-mode .sound-button.playing span::after {
  background-color: #64b5f6;
}

.volume-control {
  width: 100px;
}

.volume-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  background: #cccccc;
  outline: none;
  border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #2196f3;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #2196f3;
  cursor: pointer;
  border: none;
}

/* Dark mode styles */
.dark-mode .sound-button {
  background: #2d2d2d;
  color: #fff;
}

.dark-mode .sound-button:hover {
  background: #3d3d3d;
}

.dark-mode .sound-button.playing {
  background: #1a3f5f;
  border: 1px solid #2196f3;
}

.dark-mode .volume-slider {
  background: #444;
}

.sound-button.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.sound-button.loading::before {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid #2196f3;
  border-top-color: transparent;
  border-radius: 50%;
  animation: loading-spinner 0.8s linear infinite;
  top: 10px;
  right: 10px;
}

@keyframes loading-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Dark mode loading state */
.dark-mode .sound-button.loading::before {
  border-color: #64b5f6;
  border-top-color: transparent;
}

/* Global mute button styles */
.global-mute-button {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 10px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.global-mute-button.muted svg {
  color: #ff3333;
}

.custom-modal-title {
  display: flex;
  align-items: center;
}

/* Global mute button styles */
.global-mute-button.muted svg {
  color: #ff3333;
}

/* Import OpenDyslexic font */
@font-face {
  font-family: 'OpenDyslexic';
  src: url('../fonts/OpenDyslexic-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Cookie';
  src: url('../fonts/Cookie-Regular.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* Dyslexic font class */
.dyslexic {
  font-family: 'OpenDyslexic', sans-serif !important;
  line-height: 1.6;
}

.new-tag {
  background: #71fa82 !important;
}

.new-badge {
  padding: 2px 9px;
  background: #0bb120;
  font-size: 10px;
  border-radius: 4px;
  color: white;
}

.typewriter-switch {
  gap: 12px;
}

.typewriter-switch-volume {
  display: flex;
  align-items: center;
  gap: 10px;
}

#typewriterVolumeValue {
  font-size: 13px;
  color: #2c2c2c;
}

.chime-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.chime-container input {
  margin: 0;
  color-scheme: none;
}

.chime-container label {
  margin: 0;
  font-size: 1em;
}

.tilt-css:hover span {
  display: inline-block;
  transform-origin: 50% 65%;
}

.tilt-css:hover span:first-child {
  transform: rotate(6deg) !important;
}

.tilt-css:hover span:nth-child(6n+1) {
  transform: rotate(-7deg);
}

.tilt-css:hover span:nth-child(6n+2) {
  transform: rotate(4deg);
}

.tilt-css:hover span:nth-child(6n+3) {
  transform: rotate(-2deg);
}

.tilt-css:hover span:nth-child(6n+4) {
  transform: rotate(6deg);
}

.tilt-css:hover span:nth-child(6n+5) {
  transform: rotate(-5deg);
}

.tilt-css:hover span:nth-child(6n+6) {
  transform: rotate(3deg);
}

/* Focus Mode Close Button */
.focus-mode-close-btn {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  animation: dropDown 0.4s ease-out;
}

@keyframes dropDown {
  from {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.focus-mode-close-btn button {
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 0 0 8px 8px;
  color: white;
  padding: 4px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.focus-mode-close-btn button:hover {
  background: rgba(0, 0, 0, 0.9);
}

body.dark .focus-mode-close-btn button {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body.dark .focus-mode-close-btn button:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Statistics Modal Styles */
.statistics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
  border-radius: 10px;
  background: #e5e6e7;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 1px 1px 4px 0px #0000001f;
}

body.dark .stat-item {
  background: rgb(224 242 255);
}

body.dark .stat-item:hover {
  box-shadow: 2px 2px 3px 1px #0000001f;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #5d5b5b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-align: center;
}

.stat-label a {
  vertical-align: 2px;
}

.stat-label .tooltip {
  text-transform: none;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-text-primary);
}

body.dark .stat-value {
  color: #585656;
}

@media (max-width: 480px) {
  .statistics-grid {
    gap: 15px;
  }

  .stat-value {
    font-size: 22px;
  }

  .stat-label {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .statistics-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media print {

  .dark .toast-popup,
  .toast-popup,
  .word-count-container,
  .coffee-icon {
    display: none !important;
  }

  .dark textarea {
    border-left: none;
    border-right: none;
  }

  textarea {
    border: none;
    border-left: none;
    border-right: none;
  }
}

/* Sidebar and Main Layout - Microsoft Word Style */
.main-wrapper {
  display: flex;
  height: calc(100vh - 50px);
  /* Adjust for navbar height */
  overflow: hidden;
  position: relative;
}

.sidebar {
  width: 280px;
  background-color: #f3f3f3;
  border-right: 1px solid #d0d0d0;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  z-index: 900;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.sidebar.hidden {
  margin-left: -280px;
}

.sidebar-header {
  padding: 16px 18px;
  border-bottom: 1px solid #d0d0d0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fafafa;
}

.sidebar-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #2c2c2c;
  letter-spacing: 0.3px;
}

.add-note-btn {
  background: #ffffff;
  border: 1px solid #c0c0c0;
  border-radius: 3px;
  cursor: pointer;
  padding: 4px 10px;
  font-size: 18px;
  font-weight: 500;
  color: #444;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.add-note-btn:hover {
  background: #0078d4;
  color: #ffffff;
  border-color: #0078d4;
  box-shadow: 0 2px 4px rgba(0, 120, 212, 0.2);
}

.sidebar-content {
  flex-grow: 1;
  overflow-y: auto;
  background-color: #f3f3f3;
}

.sidebar-content::-webkit-scrollbar {
  width: 8px;
}

.sidebar-content::-webkit-scrollbar-track {
  background: #f3f3f3;
}

.sidebar-content::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border-radius: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

.notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.note-item {
  padding: 14px 18px;
  border-bottom: 1px solid #e5e5e5;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.note-item:hover {
  background-color: #e8e8e8;
}

.note-item.active {
  background-color: #d6ebff;
  border-left: 3px solid #0078d4;
  padding-left: 15px;
}

.note-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #0078d4;
}

.note-title {
  display: block;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #2c2c2c;
  margin-bottom: 4px;
}

.note-item.active .note-title {
  color: #0078d4;
  font-weight: 600;
}

.note-date {
  display: block;
  font-size: 11px;
  color: #707070;
  margin-top: 3px;
}

/* Adjust Main Container */
#mainContainer {
  flex-grow: 1;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
}

#textareaContainer {
  flex-grow: 1;
  height: 100%;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.starter-template {
  flex-grow: 1;
  height: 100%;
  padding: 0;
}

textarea {
  resize: none;
  border: none;
  padding: 20px;
}

/* Footer Styles */
footer {
  background-color: #f0f0f0;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #ddd;
  font-size: 14px;
  width: 100%;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  margin: 0 10px;
  color: #555;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #333;
}

.footer-copyright {
  color: #777;
}

/* Sidebar Toggle Button */
#sidebarToggle {
  margin-right: 15px;
  background: none;
  border: none;
  font-size: 20px;
  color: #b0b0b0;
  cursor: pointer;
  padding: 15px;
  line-height: 20px;
  float: left;
  transition: all 0.2s ease;
}

#sidebarToggle:hover {
  color: #fff;
  transform: scale(1.1);
}

/* Dark Mode Overrides - Microsoft Word Style */
body.dark .sidebar {
  background-color: #1e1e1e;
  border-right-color: #3a3a3a;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.3);
}

body.dark .sidebar-header {
  border-bottom-color: #3a3a3a;
  background-color: #252525;
}

body.dark .sidebar-header h3 {
  color: #e0e0e0;
}

body.dark .add-note-btn {
  background: #2d2d2d;
  border-color: #4a4a4a;
  color: #d0d0d0;
}

body.dark .add-note-btn:hover {
  background: #0078d4;
  color: #ffffff;
  border-color: #0078d4;
  box-shadow: 0 2px 4px rgba(0, 120, 212, 0.3);
}

body.dark .sidebar-content {
  background-color: #1e1e1e;
}

body.dark .sidebar-content::-webkit-scrollbar-track {
  background: #1e1e1e;
}

body.dark .sidebar-content::-webkit-scrollbar-thumb {
  background: #4a4a4a;
}

body.dark .sidebar-content::-webkit-scrollbar-thumb:hover {
  background: #5a5a5a;
}

body.dark .note-item {
  border-bottom-color: #2a2a2a;
}

body.dark .note-item:hover {
  background-color: #2a2a2a;
}

body.dark .note-item.active {
  background-color: #1a3a52;
  border-left-color: #0078d4;
}

body.dark .note-item.active::before {
  background: #0078d4;
}

body.dark .note-title {
  color: #e0e0e0;
}

body.dark .note-item.active .note-title {
  color: #4db8ff;
}

body.dark .note-date {
  color: #999;
}

body.dark footer {
  background-color: #1a1a1a;
  border-top-color: #333;
}

body.dark .footer-links a {
  color: #aaa;
}

body.dark .footer-links a:hover {
  color: #fff;
}

body.dark .footer-copyright {
  color: #888;
}

/* Responsive Sidebar */
@media (max-width: 768px) {
  .sidebar {
    position: absolute;
    height: 100%;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
  }

  .sidebar.hidden {
    margin-left: -280px;
  }

  /* Show sidebar by default on mobile, but allow toggle */
  .sidebar:not(.hidden) {
    margin-left: 0;
  }
}

/* Ensure sidebar is visible by default on desktop */
@media (min-width: 769px) {
  .sidebar {
    margin-left: 0 !important;
  }
}

/* Theme Toggle Button */
.theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  color: #9d9d9d;
  cursor: pointer;
  background: transparent;
  border: none;
  float: left;
  /* Align with other nav items */
  line-height: 20px;
}

.theme-icon:hover {
  color: #fff;
  text-decoration: none;
}

.theme-icon svg {
  width: 20px;
  height: 20px;
}