@charset "utf-8";
@import "tailwindcss";

@import url("https://fonts.googleapis.com/css2?display=swap&family=Courier+Prime&family=Libertinus+Serif");

:root {
  --primary-color: #ffa4c0;
  --font-family: "Libertinus Serif", serif;
  --title-font-family: "Libertinus Serif", serif;
  --font-size: 13pt;
  --font-color: #4a4a4a;
  --link: #445fb9;
  --light-link: lighten(#445fb9, 45%);
  --background-color: #ffffff;
  --note-width: 500px;
  --color-contrast-content: var(--color-success);
  --notyf-margin: 0.5rem;
}

[data-theme="light"] {
  --color-contrast-content: var(--color-success-content);
}

@plugin "@tailwindcss/typography";

@plugin 'daisyui' {
  themes:
    garden --default,
    dim --prefersdark;
}

@config '../../tailwind.config.js';

/**
  The default border color has changed to `currentColor` in Tailwind CSS v4,
  so we've added these compatibility styles to make sure everything still
  looks the same as it did with Tailwind CSS v3.

  If we ever want to remove these styles, we need to add an explicit border
  color utility to any element that depends on these defaults.
*/
@layer base {
  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    border-color: var(--color-gray-200, currentColor);
  }
}

html {
  overflow-y: auto;
  overflow-x: auto;
}

body {
  height: 100vh;
  scroll-behavior: smooth;
  overflow-y: auto;
}

@media screen and (min-width: 769px) {
  html,
  body {
    overflow-y: hidden;
  }
}

.columns {
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;

  &:last-child {
    margin-bottom: 0;
  }
}

#app {
  height: 100vh;
  display: flex;
}

a {
  &.external-link {
    text-decoration: underline;

    &::after {
      margin-left: 0.4rem;
      content: url("/assets/external-link.svg");
    }
  }
}

a.title-stacked-note-link {
  color: var(--color-base-content);
  display: block;
  text-decoration: none;
  position: sticky;
  top: 0;

  &:hover {
    cursor: pointer;
  }
}

.notyf__toast {
  border-radius: revert-layer;
  border: none;
}

@media only screen and (max-width: 500px) {
  .notyf__toast {
    margin: var(--notyf-margin);
    width: calc(100% - 2 * var(--notyf-margin));
  }
}

.alert-success .notyf__message {
  color: var(--color-success-content);
}

.alert-error .notyf__message {
  color: var(--color-error-content);
}

.alert {
  max-width: 500px;
}

.repo-note,
.notyf {
  font-family: var(--font-family);
  font-size: var(--font-size);
}

.table,
.table :where(thead, tfoot) {
  font-size: 1em;
}

.input:focus {
  outline-style: none;
}

@media print {
  html,
  body {
    overflow-y: auto;
    height: auto;
  }

  #app {
    height: auto;
  }
}

pre {
  code {
    margin-right: 3rem;
  }
}

pre.mermaid {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-base-content);
}

.markdown-alert {
  padding: 1rem;
  background-color: #ecf0f1;
  border-radius: 1rem;
  margin: 1rem 0;
  color: var(--color-base-content);
  background-color: var(--color-base-300);
}

.markdown-alert-important {
  background-color: var(--color-primary);
  color: var(--color-primary-content);
}

.markdown-alert-important .markdown-alert-title svg path {
  fill: var(--color-primary-content);
}

.markdown-alert-tip {
  background-color: var(--color-info);
  color: var(--color-info-content);
}

.markdown-alert-tip .markdown-alert-title svg path {
  fill: var(--color-info-content);
}

.markdown-alert-warning {
  background-color: var(--color-warning);
  color: var(--color-warning-content);
}

.markdown-alert-warning .markdown-alert-title svg path {
  fill: var(--color-warning-content);
}

.markdown-alert-caution {
  background-color: var(--color-error);
  color: var(--color-error-content);
}

.markdown-alert-caution .markdown-alert-title svg path {
  fill: var(--color-error-content);
}

.markdown-alert-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.markdown-alert-title svg path {
  fill: var(--color-base-content);
}

iframe {
  border-radius: 1rem;
  height: 400px;
}

/* TODO page */
.todo-notes input[type="checkbox"] {
  @apply checkbox checkbox-success;
}

.todo-notes li:has(> input[type="checkbox"]) {
  list-style: none;
}
