@font-face {
  font-family: 'roboto';
  src: url('/assets/fonts/roboto/Roboto-Regular.woff2') format('woff2'),
    url('/assets/fonts/roboto/Roboto-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Primary */
  --p: #f15c2e;
  --pc: #fdffff;
  --fallback-p: #f15c2e;
  --fallback-pc: #fdffff;

  /* Secondary */
  --s: #f7f9f0;
  --sc: #f15c2e;
  --fallback-s: #f7f9f0;
  --fallback-sc: #f15c2e;

  /* Accent */
  --a: #4a91f5;
  --ac: #eef7ff;
  --fallback-a: #4a91f5;
  --fallback-ac: #eef7ff;

  /* Neutral */
  --n: #f15c2e;
  --nc: #f1ffff;
  --fallback-n: #f15c2e;
  --fallback-nc: #f1ffff;

  /* Base */
  --b1: #ffffff;
  --b2: #fafafa;
  --b3: #f2f2f2;
  --bc: #2c2b34;
  --fallback-b1: #ffffff;
  --fallback-b2: #fafafa;
  --fallback-b3: #f2f2f2;
  --fallback-bc: #2c2b34;

  /* Info */
  --in: #3b75ff;
  --inc: #eef6ff;
  --fallback-in: #3b75ff;
  --fallback-inc: #eef6ff;

  /* Success */
  --su: #44c37b;
  --suc: #eef7ff;
  --fallback-su: #44c37b;
  --fallback-suc: #eef7ff;

  /* Warning */
  --wa: #f8cc4f;
  --wac: #6b4b22;
  --fallback-wa: #f8cc4f;
  --fallback-wac: #6b4b22;

  /* Error */
  --er: #f24841;
  --erc: #fdf0ef;
  --fallback-er: #f24841;
  --fallback-erc: #fdf0ef;

  /* Border radius */
  --rounded-box: 0.25rem;
  --rounded-btn: 0.25rem;
  --rounded-badge: 0.25rem;

  /* Font */
  --font-sans: 'roboto';
}

.btn-primary {
  --btn-color: var(--fallback-p)
}

.btn-secondary {
  --btn-color: var(--fallback-s)
}

.btn-accent {
  --btn-color: var(--fallback-a)
}

.btn-neutral {
  --btn-color: var(--fallback-n)
}

.btn-info {
  --btn-color: var(--fallback-in)
}

.btn-success {
  --btn-color: var(--fallback-su)
}

.btn-warning {
  --btn-color: var(--fallback-wa)
}

.btn-error {
  --btn-color: var(--fallback-er)
}

.hover\:btn-info:hover {
  --btn-color: var(--fallback-in)
}

.hover\:btn-success:hover {
  --btn-color: var(--fallback-su)
}

.hover\:btn-warning:hover {
  --btn-color: var(--fallback-wa)
}

.hover\:btn-error:hover {
  --btn-color: var(--fallback-er)
}

.focus\:btn-info:focus {
  --btn-color: var(--fallback-in)
}

.focus\:btn-success:focus {
  --btn-color: var(--fallback-su)
}

.focus\:btn-warning:focus {
  --btn-color: var(--fallback-wa)
}

.focus\:btn-error:focus {
  --btn-color: var(--fallback-er)
}

.prose :where(code):not(:where([class~="not-prose"] *, pre *)) {
  background-color: var(--fallback-b3, oklch(var(--b3)/1))
}


.btn:hover {
  background-color: var(--btn-color, var(--fallback-b2));
  border-color: var(--btn-color, var(--fallback-b2))
}

.btn {
  background-color: var(--btn-color, var(--fallback-b2));
  border-color: var(--btn-color, var(--fallback-b2))
}

.btn.btn-disabled,
.btn[disabled],
.btn:disabled {
  color: white;
}

@media (hover: hover) {
  .btn-disabled:hover,
  .btn[disabled]:hover,
  .btn:disabled:hover {
    color: var(--fallback-bc, oklch(var(--bc) / var(--tw-text-opacity)));
  }
}

.progress {
  position: relative;
  width: 100%;
  appearance: none;
  overflow: hidden;
  /* height: 0.5rem; */
  border-radius: var(--rounded-box, 1rem);
  background-color: var(--fallback-pc, oklch(var(--pc)/0.2))
}

#app {
  display: flex;
  flex: 1;
}

.drawer {
  grid-auto-columns: max-content auto;
  width: 100%;
  display: grid;
  position: relative;
}

.drawer-content {
  grid-row-start: 1;
  grid-column-start: 2;
  min-width: 0;
}

.tabs-border .tab::before,
.router-link-active::before {
  border-color: var(--p);
  width: 100%;
  left: 0;
  border-radius: 0;
}

.table tbody tr {
  border-bottom: none;
}

::selection {
  background: var(--p);
  color: var(--b1);
  text-shadow: none;
}

::-moz-selection {
  background: var(--p);
  color: var(--b1);
  text-shadow: none;
}

.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0006;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.show {
  display: flex;
}

.hide {
  display: none;
}

/* Billing slide-out (Stripe) */
.billing-slide-out {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
}
.billing-slide-out.billing-slide-out-open {
  pointer-events: auto;
}
.billing-slide-out-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.billing-slide-out-open .billing-slide-out-overlay {
  opacity: 1;
}
.billing-slide-out-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 28rem;
  height: 100%;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.billing-slide-out-open .billing-slide-out-panel {
  transform: translateX(0);
}

.progress.progress-primary {
  background-color: #f15c2e5e;
}

.sub-tabs>.tab {
  padding-left: 0px !important;
  padding-right: 0px !important;
  color: var(--color-base-content)
}

.sub-tabs>.tab-active::before {
  border-top-width: 2px;
  --tab-border-color: '';
  bottom: -3px
}

.sub-tabs>.tab-active {
  color: var(--p);
}

.border-base-300 {
  border-color: var(--b3);
}

textarea {
  resize: both !important;
  background-color: white;
  border-radius: 4px;
}

.property-box:focus,
.property-box:focus-within,
.input:focus,
.input:focus-within,
.select:focus,
.select:focus-within,
.textarea:focus,
.textarea:focus-within {
  outline: 1px solid var(--p);
  outline-offset: 1px;
}

.select {
  background-image: linear-gradient(45deg, #0000 50%, var(--p) 50%), linear-gradient(135deg, var(--p) 50%, #0000 50%);
  cursor: pointer;
  background-position: calc(100% - 12px) calc(1px + 50%), calc(100% - 8.1px) calc(1px + 50%);
}

.select.placeholder-selected {
  color: #C0C5CB;
}

.select option:hover {
  color: var(--p);
  background-color: transparent;
}

.tab.tab-active {
  border-bottom: 2px solid var(--p) !important;
}

@media (hover: hover) {

  .breadcrumbs>menu>li>*:hover,
  .breadcrumbs>ul>li>*:hover,
  .breadcrumbs>ol>li>*:hover {
    text-decoration-line: none;
  }
}

.breadcrumbs>menu>li>*,
.breadcrumbs>ul>li>*,
.breadcrumbs>ol>li>* {
  display: block;
  gap: 0.5rem;
}

.input {
  background-color: transparent !important;
  box-shadow: none !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px white inset !important;
  box-shadow: 0 0 0px 1000px white inset !important;
  background-color: white !important;
  color: inherit !important;
}

textarea {
  padding: 8px 12px !important;
}

.avatar>div {
  display: flex;
}

.tabs.tabs-border>.router-link-active {
  border-bottom: 2px solid var(--p);
}

.btn {
  height: 2rem;
  min-height: 2rem;
  font-weight: bold;
}

.w3a--absolute.w3a--right-6.w3a--z-10.w3a--cursor-pointer {
  display: none;
}

.w3a--fixed.w3a--z-50.w3a--overflow-hidden.w3a--flex.w3a--transition-all.w3a--top-0.w3a--left-0.w3a--items-center.w3a--justify-center.w3a--w-screen.w3a--h-screen {
  animation: none;
  transition: none;
}

.w3a--h-auto.w3a--flex.w3a--flex-col.w3a--duration-500.w3a--translate-y-0.w3a--delay-100 {
  animation: none;
  transition: none;
}

.nav-bar {
  position: fixed;
  right: 20px;
}

.bread-crumbs {
  position: fixed;
  top: 42px;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.bread-crumbs::-webkit-scrollbar {
  width: 8px;
}

.bread-crumbs::-webkit-scrollbar-track {
  background: transparent;
}

.bread-crumbs::-webkit-scrollbar-thumb {
  background-color: #ddd;
  border-radius: 4px;
}

.bread-crumbs::-webkit-scrollbar-thumb:hover {
  background-color: #ddd;
  opacity: 0.8;
}

.tail-top {
  width: 12px;
  border-top: 1px solid var(--bc);
  position: absolute;
  top: 0;
  transform: translate(3px, 3px) rotate(-40deg);
}

.tail-bottom {
  width: 12px;
  border-top: 1px solid var(--bc);
  position: absolute;
  top: 0;
  transform: translate(3px, 11px) rotate(40deg);
}

@media (min-width: 1600px) {
  .nav-bar {
    right: calc((100vw - 1600px) / 2 + 20px);
  }

  .bread-crumbs {
    left: calc((100vw - 1600px) / 2 + 248px);
  }
}

/* Notes Markdown Editor - GitHub Style */
.notes-markdown,
.notes-markdown-preview {
  line-height: 1.6;
  word-wrap: break-word;
}

.notes-markdown h1,
.notes-markdown h2,
.notes-markdown h3,
.notes-markdown h4,
.notes-markdown h5,
.notes-markdown h6,
.notes-markdown-preview h1,
.notes-markdown-preview h2,
.notes-markdown-preview h3,
.notes-markdown-preview h4,
.notes-markdown-preview h5,
.notes-markdown-preview h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
  line-height: 1.25;
}

.notes-markdown h1,
.notes-markdown-preview h1 {
  font-size: 2em;
  border-bottom: 1px solid var(--b3);
  padding-bottom: 0.3em;
}

.notes-markdown h2,
.notes-markdown-preview h2 {
  font-size: 1.5em;
  border-bottom: 1px solid var(--b3);
  padding-bottom: 0.3em;
}

.notes-markdown h3,
.notes-markdown-preview h3 {
  font-size: 1.25em;
}

.notes-markdown h4,
.notes-markdown-preview h4 {
  font-size: 1em;
}

.notes-markdown h5,
.notes-markdown-preview h5 {
  font-size: 0.875em;
}

.notes-markdown h6,
.notes-markdown-preview h6 {
  font-size: 0.85em;
  color: var(--base-content);
  opacity: 0.7;
}

.notes-markdown p,
.notes-markdown-preview p {
  margin-bottom: 1em;
  margin-top: 0;
}

.notes-markdown ul,
.notes-markdown ol,
.notes-markdown-preview ul,
.notes-markdown-preview ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
  margin-top: 0;
  padding-left: 1.5em;
}

.notes-markdown li,
.notes-markdown-preview li {
  margin-bottom: 0.25em;
}

.notes-markdown li>p,
.notes-markdown-preview li>p {
  margin-top: 0.5em;
}

.notes-markdown code,
.notes-markdown-preview code {
  background-color: rgba(175, 184, 193, 0.2);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.notes-markdown pre,
.notes-markdown-preview pre {
  background-color: var(--b3);
  padding: 1em;
  border-radius: 0.375rem;
  overflow-x: auto;
  margin-bottom: 1em;
  line-height: 1.45;
}

.notes-markdown pre code,
.notes-markdown-preview pre code {
  background-color: transparent;
  padding: 0;
  font-size: 0.85em;
  display: block;
  overflow: visible;
  word-wrap: normal;
}

.notes-markdown a,
.notes-markdown-preview a {
  color: var(--p);
  text-decoration: none;
}

.notes-markdown a:hover,
.notes-markdown-preview a:hover {
  text-decoration: underline;
}

.notes-markdown blockquote,
.notes-markdown-preview blockquote {
  border-left: 4px solid var(--p);
  padding-left: 1em;
  margin-left: 0;
  margin-bottom: 1em;
  color: var(--base-content);
  opacity: 0.8;
  font-style: italic;
}

.notes-markdown table,
.notes-markdown-preview table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
  display: block;
  overflow-x: auto;
}

.notes-markdown th,
.notes-markdown td,
.notes-markdown-preview th,
.notes-markdown-preview td {
  border: 1px solid var(--b3);
  padding: 0.5em 1em;
  text-align: left;
}

.notes-markdown th,
.notes-markdown-preview th {
  background-color: var(--b2);
  font-weight: 600;
}

.notes-markdown tr:nth-child(even),
.notes-markdown-preview tr:nth-child(even) {
  background-color: var(--b2);
}

.notes-markdown img,
.notes-markdown-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

.notes-markdown hr,
.notes-markdown-preview hr {
  border: none;
  border-top: 1px solid var(--b3);
  margin: 1.5em 0;
}

/* Task list styling (GitHub-style checkboxes) */
.notes-markdown .task-list-item,
.notes-markdown-preview .task-list-item {
  list-style-type: none;
  padding-left: 0;
  margin-left: 0;
}

.notes-markdown .task-list-item::before,
.notes-markdown-preview .task-list-item::before {
  content: none;
}

.notes-markdown .task-list-item-checkbox,
.notes-markdown-preview .task-list-item-checkbox {
  margin-right: 0.5em;
  margin-left: 0;
  cursor: default;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  background-color: #fff;
  position: relative;
  flex-shrink: 0;
}

.notes-markdown .task-list-item-checkbox:checked,
.notes-markdown-preview .task-list-item-checkbox:checked {
  background-color: var(--p);
  border-color: var(--p);
}

.notes-markdown .task-list-item-checkbox:checked::after,
.notes-markdown-preview .task-list-item-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.notes-markdown .task-list-item-checkbox:focus,
.notes-markdown-preview .task-list-item-checkbox:focus {
  outline: 2px solid var(--p);
  outline-offset: 2px;
}

/* Light mode scrollbar styling for notes-markdown container */
.notes-markdown {
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.notes-markdown::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.notes-markdown::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 4px;
}

.notes-markdown::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.notes-markdown::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Light mode scrollbar styling for notes-preview-container (parent of notes-markdown-preview) */
.notes-preview-container {
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.notes-preview-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.notes-preview-container::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 4px;
}

.notes-preview-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.notes-preview-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Ensure only the notesField textarea has resize: none and light mode scrollbar */
textarea[id^="notes-textarea-"] {
  resize: none !important;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

textarea[id^="notes-textarea-"]::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

textarea[id^="notes-textarea-"]::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 4px;
}

textarea[id^="notes-textarea-"]::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

textarea[id^="notes-textarea-"]::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
