/* new-php-base v1.0 - minimal custom styles */
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }


/* v1.1 - tasks UI helpers */
.taskHtml a { text-decoration: underline; }
.taskHtml ul { list-style: disc; padding-left: 1.25rem; }
.taskHtml ol { list-style: decimal; padding-left: 1.25rem; }
.taskHtml blockquote { border-left: 3px solid rgba(148,163,184,.8); padding-left: .75rem; color: rgba(71,85,105,1); }
.dark .taskHtml blockquote { border-left-color: rgba(71,85,105,1); color: rgba(203,213,225,1); }

.taskCard:hover .taskActions { opacity: 1; }
.taskActions { opacity: .35; transition: opacity .15s ease; }

.sortable-placeholder {
  border: 2px dashed rgba(99,102,241,.45);
  border-radius: 1rem;
  height: 56px;
  margin-top: .5rem;
}


/* v1.3 - highlight current day column */
.todayCol{
  border: 2px solid transparent !important;
  background: linear-gradient(rgba(255,255,255,.75), rgba(255,255,255,.75)) padding-box,
              linear-gradient(90deg, rgba(99,102,241,1), rgba(217,70,239,1)) border-box !important;
  box-shadow: 0 0 0 1px rgba(99,102,241,.08);
}
.dark .todayCol{
  background: linear-gradient(rgba(2,6,23,.40), rgba(2,6,23,.40)) padding-box,
              linear-gradient(90deg, rgba(99,102,241,1), rgba(217,70,239,1)) border-box !important;
}

/* v1.3 - recurring task completion (per-week) */
.taskCard.taskDone{
  opacity: .75;
}
.taskCard.taskDone .taskTitle{
  text-decoration: line-through;
  opacity: .85;
}
.taskCard.taskDone .taskActions{
  opacity: 1;
}


/* v1.6.1 - boxicons + multi-day recurring tasks */
.bx{ vertical-align: middle; }
.taskActions .bx{ font-size: 1.15rem; line-height: 1; }
.dragHandle .bx{ font-size: 1.15rem; line-height: 1; }
#taskModalClose .bx, #projectModalClose .bx, #pwaInstallClose .bx{ line-height: 1; }

/* v1.9 - collapse completed task content on demand */
.taskTitleHidden{
  cursor: pointer;
}
.taskTitleHidden::after{
  content: " · pokaż";
  font-weight: 400;
  font-size: .75rem;
  opacity: .65;
}
.taskTitleHidden.taskTitleOpen::after{
  content: " · ukryj";
}
.taskInnerHidden{ display: none; }
/* Show hidden inner when title is toggled open (title and inner are adjacent siblings) */
.taskTitleHidden.taskTitleOpen + .taskInnerHidden{ display: block; }


/* v1.9.3 - arrows for horizontal scrolling on weekly board */
.boardScrollBtn{
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;

  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(226,232,240,.9);
  box-shadow: 0 8px 22px rgba(15,23,42,.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .12s ease, opacity .12s ease;
}
.boardScrollBtn:hover{ transform: scale(1.04); }
.dark .boardScrollBtn{
  background: rgba(2,6,23,.65);
  border-color: rgba(30,41,59,.7);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}
.boardScrollBtn[disabled]{
  opacity: .25;
  pointer-events: none;
  transform: none;
}

#boardWrap .taskInner > .taskHtml{
  cursor: pointer;
}
#boardWrap .taskInner > .taskHtml:hover{
  opacity: .92;
}

/* v1.9.4 - desktop: keep horizontal board scrolling and enable vertical scrolling */
@media (min-width: 1024px){
  #boardWrap{
    max-height: calc(100vh - 17rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
