* {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}

:root {
  --bg-color: #1c1c1e;
  --text-color: #f2f2f7;
  --text-color2: #ebebf599;
  --nav-color: #2c2c2e;

  --accent-color: #755f49;
  --accent-color4: #56473a;
  --accent-color2: #755f4951;
  --accent-color3: #b59372;
}

.Gray {
  --accent-color: #8e8e93;
  --accent-color4: #3a3a3c;
  --accent-color2: #8e8e9338;
  --accent-color3: #8e8e93;
}

.Red {
  --accent-color: #ff453a;
  --accent-color4: #4a2422;
  --accent-color2: #ff453a38;
  --accent-color3: #ff453a;
}

.Orange {
  --accent-color: #ff9f0a;
  --accent-color4: #4a351d;
  --accent-color2: #ff9f0a38;
  --accent-color3: #ff9f0a;
}
.Yellow {
  --accent-color: #ffd60a;
  --accent-color4: #49411e;
  --accent-color2: #ffd60a38;
  --accent-color3: #ffd60a;
}
.Green {
  --accent-color: #30d158;
  --accent-color4: #1e4229;
  --accent-color2: #30d15838;
  --accent-color3: #30d158;
}
.Blue {
  --accent-color: #0a84ff;
  --accent-color4: #1d3853;
  --accent-color2: #0a84ff38;
  --accent-color3: #0a84ff;
}
.Pink {
  --accent-color: #ff375f;
  --accent-color4: #4a2430;
  --accent-color2: #ff375f38;
  --accent-color3: #ff375f;
}

/*==================================*/
body {
  margin: 0;
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg-color);
  color: var(--text-color);
  
}

.body {
  margin-top: 2rem;
  align-items: center;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}


splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90dvh;
  background-color: white;
  display: flex;
  flex-direction: column; 
  align-items: center; 
  justify-content: space-between; 
  padding: 5dvh;
  z-index: 9999; /* Ensure it stays on top of everything */
}

h3 {
  margin: 0;
  padding: 0;
}
img {
  margin: 0;
  padding: 0;
}

.circle {
  width: 2rem;
  height: 2rem;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  background-color: var(--text-color)
}

.circle-outline {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  outline: 3px solid var(--text-color2);
  outline-offset: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  background-color: var(--text-color)
}

.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  animation: rotate 1s linear infinite
}
.loader::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  border: 5px solid var(--text-color);
  animation: prixClipFix 2s linear infinite ;
}

@keyframes rotate {
  100%   {transform: rotate(360deg)}
}

@keyframes prixClipFix {
    0%   {clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}
    25%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}
    50%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}
    75%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}
    100% {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}
}

[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 10px;
  width: 10px;
  background-image: url('icons/trash.svg');
  background-size: 10px 10px;
}

dialog {
  gap: 15px;
  flex-direction: row;
  min-width: 70%;
  justify-content: center;
  align-items: center;
  padding: 15px;
  margin-top: 0.5rem;
  border-radius: 8px;
  background-color: var(--accent-color4);
  position: fixed;
  top: 50%;
  opacity: 1;
  border: var(--accent-color2) 3px solid;
  box-shadow: 0 4px 10px var(--accent-color2);
  
}

/* Styles the darkened background when popup is active */
dialog::backdrop {
  background-color: #1f1f1fb5;
  opacity: 1;
}

.tagDialog {
  flex-direction: column;
  min-width: 10% !important;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 2%;
  right: 60%;
}

.settingsDialog {
  flex-direction: column;
  min-width: 80% !important;
  min-height: 80% !important;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 5%;
  background-color: var(--bg-color);
  border-color: var(--nav-color);
}

.settings {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  padding: 0 2rem;
}

.filtersDialog {
  gap: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

input, select, textarea {
  background: var(--accent-color2);
  border: none;
  color: var(--text-color);
  padding: 8px;
  border-radius: 4px;
  opacity: .7;
}

.btn2 {
  background: var(--accent-color2);
  border: none;
  color: var(--text-color);
  padding: 8px;
  border-radius: 4px;
  opacity: .7;
  cursor: pointer;
  
}

.btn2:hover {
  background-color: var(--accent-color) !important;
}


.bar {
  width: 100%;
  height: 2rem;
  background-color: var(--accent-color2);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  background-color: var(--accent-color3);
  opacity: 0.7;
}

.bar-line {
  position: absolute;
  top: 40%;
  left: 80%;
  width: 2px;
  height: 70%;
  background-color: var(--text-color);
}

.sbar-line {
  position: absolute;
  top: 0%;
  left: 80%;
  width: 2px;
  height: 100%;
  background-color: var(--text-color);
}

@media (max-width: 970px) {
  .indexscore {
    display: none !important;
  }
}

.indexscore {
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  width: 100%;
  aspect-ratio: 7.53/1;
}

.sindexscore {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  width: 30dvw;
  aspect-ratio: 7.53/1;
}


@media (max-width: 970px) {
  .btnNav {
    display: block !important;
  }


}
@media (max-width: 970px) {
  .filterButtons {
    display: none !important;
  }
}

.filterButtons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  width: 100%;
}



.btnNav {
  background: var(--accent-color2);
  border: none;
  color: var(--text-color);
  padding: 8px;
  border-radius: 4px;
  opacity: .7;
  cursor: pointer;
  display: none;
}

.btnNav:hover {
  background-color: var(--accent-color) !important;
}

.addbtn::before {
  content: "";
  background-image: url('icons/square-pen.svg');
  background-size: cover; /* Forces image to fit the dimensions */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents tiling */
  padding-right: 1rem;
  margin-right: 5px;
}
.settingsIcon::before {
  content: "";
  background-image: url('icons/settings.svg');
  background-size: cover; /* Forces image to fit the dimensions */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents tiling */
  padding-right: 1rem;
}
.flameIcon {
  display: none;
  padding: 1rem;
  background: var(--accent-color2);
  border: none;
  color: var(--text-color);
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  opacity: .7;
  aspect-ratio: 1/1; /* Ensures the button is square */
}
.flameIcon::before {
  content: "";
  background-image: url('icons/flame.svg');
  background-size: cover; /* Forces image to fit the dimensions */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents tiling */
  padding-right: 1.3rem;
}

.flameIcon:hover {
  background-color: var(--accent-color) !important;
}

.userIcon {
  padding: 1rem;
  background: var(--accent-color2);
  border: none;
  color: var(--text-color);
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  opacity: .7;
  aspect-ratio: 1/1; /* Ensures the button is square */
}
.userIcon::before {
  content: "";
  background-image: url('icons/circle-user-round.svg');
  background-size: cover; /* Forces image to fit the dimensions */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents tiling */
  padding-right: 1.3rem;
}
.userIcon:hover {
  background-color: var(--accent-color) !important;
}

.backIcon {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 3rem;
  height: 3rem;
  background: var(--accent-color2);
  border: none;
  color: var(--text-color);
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
}
.backIcon::before {
  content: "";
  background-image: url('icons/arrow-left.svg');
  background-size: cover; /* Forces image to fit the dimensions */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents tiling */
  padding-right: 2rem;
}
.helpIcon::before {
  content: "";
  background-image: url('icons/badge-question-mark.svg');
  background-size: cover; /* Forces image to fit the dimensions */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents tiling */
  padding-right: 1rem;
}

.subbtn {
  background-color: var(--accent-color);
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.point {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 60vw;
  padding: 8px;
  margin: 4px 0;
  border-radius: 4px;
  background-color: var(--nav-color);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.28);
}

.line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 60vw;
  padding: 8px;
  margin: 4px 0;
  border-radius: 4px;
  background-color: var(--nav-color);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.28);
}

.ico {
 width: 1rem;
 height: 1rem;
 padding: 0;
}

.svg {
 width: 1rem;
 height: 1rem;
 padding: 0;
}

input[type="datetime-local"] {
    color-scheme: dark;
    background-image: url('icons/calendar-clock.svg');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  position: absolute;
  left: 0;
  top: 30%;
  width: 100%;
  height: 20%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}


input[type="radio"] {
  color-scheme: dark;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  background-color: var(--text-color)
}

.colorPicker {
  display: flex;
  flex-direction: row;
  gap: 0.6rem;
  background-color: var(--nav-color);
  border-radius: 4px;
  padding: 15px;
}


input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}


.btn {
  background-color: var(--accent-color);
  min-width: 85%;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

button {
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-color);
  padding: 8px;
  border-radius: 4px;
}

button:hover {
  background-color: var(--accent-color2);
}

input::placeholder {
  color: #b8b8b8;
  opacity: 0.7;
}

.title {
  text-align: left;
  align-items: center;
  justify-content: center;
  font-size: 2em;
}
.main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.column-section-bg {
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
  row-gap: 10px;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 3px;
  padding-bottom: 5px;
  margin: 20px;
  width: 85%;
  border-radius: 8px;
  background-color: var(--accent-color2);
}

.column-section {
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
  row-gap: 10px;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 3px;
  padding-bottom: 5px;
  margin: 20px;
}

.row-section {
  display: flex;
  gap: 15px;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 85%;
  margin-top: 0.5rem;
}


.left-row-section {
  display: flex;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    margin: 0 10%;
}

.row-section-bg {
  display: flex;
  gap: 15px;
  flex-direction: row;
  min-width: 70%;
  justify-content: center;
  align-items: center;
  padding: 15px;
  margin-top: 0.5rem;
  border-radius: 8px;
  background-color: var(--accent-color2);
}

.point-content {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 10px;
}

.line-content {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 10px;
}

.content-text {
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  color: var(--text-color2);
}

.writeCreateFrm {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 10px;
}

.listCreateFrm {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 10px;
}

.form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-content: center;
}

.formInput {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.2rem;
  padding: 0;
  border-radius: 4px;
  opacity: .7;
}
.formInput2 {
  background: none;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  color: var(--text-color2);
}

a:link {
  color: var(--accent-color3);
}

a:hover {
  color: var(--accent-color3);
  opacity: 0.3;
}



.form-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: var(--text-color);
}

.section canvas {
  width: 100%;
  height: 320px;
  display: block;
}

.nav a {
  color: var(--text-color);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
}

.nav a:hover {
  background-color: var(--accent-color);
  opacity: 0.7;
}

.NAV {
  background-color: var(--nav-color);
  display: flex;
      flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: center;
    justify-content: center;
  top: 0;
  left: 0;
  height: 100%;
  width: 20%;
  flex-shrink: 0;
  overflow: hidden; 
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.28);
}

.main-section {
  display: flex;
  gap: 15px;
  flex-direction: row;
  justify-content: center;
  width: 100dvw;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.main-section-inverted {
  display: flex;
  gap: 15px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
  width: 100%;
}

@media (max-width: 970px) {
  .NAV {
    background: none !important;
    position: relative;
    width: 100lvw !important;
    height: auto !important;
    display: flex;
        flex-direction: row;
      flex-wrap: wrap;
      align-content: flex-start;
      align-items: center;
      justify-content: center;
  box-shadow: none !important;
  }
  body {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }
  .body {
    height: auto;
  }
  .main-section {
    display: flex;
    gap: 15px;
    flex-direction: column !important;
    width: 100% !important;
    margin-top: 0.5rem;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .main {
    flex: none;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .main-section-inverted {
    display: flex;
    gap: 15px;
    flex-direction: row !important;
    width: 100% !important;
    margin-top: 0.5rem;
  }
  .flameIcon {
  display: block !important;
  }
}

.navbtn {
  color: var(--text-color);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
}

.navbtn:hover {
  background-color: var(--accent-color);
  opacity: 0.7;
}

.hidden {
    display: none;
}

.task-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    width: 60vw;
    box-sizing: border-box;

    padding: 12px 16px;

    border-bottom: 1px solid var(--accent-color2);
}

.task-card:hover {
    background: var(--accent-color2);
}

.task-content {
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task-title {
    font-size: 1rem;
    font-weight: 500;
}

.task-note {
    font-size: 0.85rem;
    opacity: 0.75;
}

.task-date {
    display: flex;
    align-items: center;
    gap: 4px;
}


.point-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.point-complete-btn {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  margin: 0;
  border-radius: 100%;
  border: 2px solid var(--text-color2);
  background: none;
  cursor: pointer;
  position: relative;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.point-complete-btn:hover {
  border-color: var(--accent-color3);
}

.point-complete-btn.checked {
  background-color: var(--accent-color3);
  border-color: var(--accent-color3);
}

.point-complete-btn.checked::after {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.1rem;
  width: 0.2rem;
  height: 0.45rem;
  border: solid var(--bg-color);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

[data-tooltip] {
  position: relative;
  cursor: pointer;
}

[data-tooltip]:after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 15%;
  left: 60%;
  color: var(--text-color);
  padding: 6px 10px;
  white-space: nowrap;
  border-radius: 4px;
  font-size: 14px;
  z-index: 10;
}

.completion-alert {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: min(26rem, calc(100vw - 2.5rem));
  padding: 0.85rem 0.75rem 0.85rem 1rem;
  color: var(--text-color);
  background: var(--nav-color);
  border: 1px solid var(--accent-color2);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.28);
  animation: completion-alert-in 0.2s ease-out;
}

.completion-alert-undo,
.completion-alert-close {
  color: var(--accent-color3);
  background: none;
  border: 0;
  cursor: pointer;
}

.completion-alert-undo {
  font-weight: 600;
  padding: 0.35rem 0.25rem;
}

.completion-alert-close {
  padding: 0.2rem 0.35rem;
  font-size: 1.25rem;
  line-height: 1;
}

.completion-alert-undo:hover,
.completion-alert-close:hover {
  color: var(--text-color);
}

@keyframes completion-alert-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .completion-alert {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    max-width: none;
  }
}

/*
Source - https://stackoverflow.com/a/79274945
Posted by Naeem Akhtar
Retrieved 2026-09-25, License - CC BY-SA 4.0
*/

.toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: var(--text-color);
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-color3);
}

input:checked + .slider:before {
  transform: translateX(26px);
}