@charset "UTF-8";
/* Notion Editor Styles */
.notion-editor-wrapper {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  transition: border-color 0.2s;
}
.notion-editor-wrapper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.notion-editor-content {
  outline: none;
  font-size: 16px;
  line-height: 30px;
  color: #374151;
  /* Headings */
  /* Paragraphs */
  /* Lists */
  /* Task Lists */
  /* Links */
  /* Code */
  /* Blockquotes */
  /* Tables */
  /* Images */
  /* Horizontal Rule */
  /* Text Alignment */
  /* Highlight */
  /* Placeholder */
}
.notion-editor-content h1 {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 14px;
}
.notion-editor-content h2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 10px;
}
.notion-editor-content h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}
.notion-editor-content h4 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 2px;
}
.notion-editor-content .text-critical {
  font-weight: 700;
  background: #de4646;
  color: white;
  padding: 3px;
}
.notion-editor-content .text-urgent {
  font-weight: 700;
  color: #de4646;
  padding: 3px;
}
.notion-editor-content .text-normal {
  font-weight: 500;
  color: #2e5b12;
  padding: 3px;
}
.notion-editor-content .text-low, .notion-editor-content .text-trivial {
  padding: 3px;
}
.notion-editor-content p {
  margin: 0.5em 0;
}
.notion-editor-content p:first-child {
  margin-top: 0;
}
.notion-editor-content p:last-child {
  margin-bottom: 0;
}
.notion-editor-content ul, .notion-editor-content ol {
  padding-left: 1.5em;
  margin: 0.5em 0;
}
.notion-editor-content ul {
  list-style-type: disc;
}
.notion-editor-content ol {
  list-style-type: decimal;
}
.notion-editor-content li {
  margin: 0.25em 0;
}
.notion-editor-content ul[data-type=taskList] {
  list-style: none;
  padding-left: 0;
}
.notion-editor-content ul[data-type=taskList] li {
  display: flex;
  align-items: flex-start;
}
.notion-editor-content ul[data-type=taskList] li > label {
  flex: 0 0 auto;
  margin-right: 0.5em;
  user-select: none;
}
.notion-editor-content ul[data-type=taskList] li > div {
  flex: 1 1 auto;
}
.notion-editor-content ul[data-type=taskList] input[type=checkbox] {
  cursor: pointer;
}
.notion-editor-content a {
  color: #3b82f6;
  text-decoration: underline;
  cursor: pointer;
}
.notion-editor-content a:hover {
  color: #2563eb;
}
.notion-editor-content code {
  background-color: #f3f4f6;
  border-radius: 4px;
  padding: 0.2em 0.4em;
  font-family: "Monaco", "Menlo", "Courier New", monospace;
  font-size: 0.9em;
  color: #ef4444;
}
.notion-editor-content pre {
  background-color: #1f2937;
  border-radius: 8px;
  padding: 1em;
  overflow-x: auto;
  margin: 1em 0;
}
.notion-editor-content pre code {
  background: none;
  color: #f3f4f6;
  padding: 0;
}
.notion-editor-content blockquote {
  border-left: 4px solid #e0e0e0;
  padding-left: 1em;
  margin: 1em 0;
  color: #6b7280;
  font-style: italic;
}
.notion-editor-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}
.notion-editor-content table td, .notion-editor-content table th {
  border: 1px solid #e0e0e0;
  padding: 0.5em;
  text-align: left;
}
.notion-editor-content table th {
  background-color: #f3f4f6;
  font-weight: 600;
}
.notion-editor-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 0.5em 0;
}
.notion-editor-content hr {
  border: none;
  border-top: 2px solid #e0e0e0;
  margin: 2em 0;
}
.notion-editor-content .text-left {
  text-align: left;
}
.notion-editor-content .text-center {
  text-align: center;
}
.notion-editor-content .text-right {
  text-align: right;
}
.notion-editor-content .text-justify {
  text-align: justify;
}
.notion-editor-content mark {
  background-color: #fef08a;
  border-radius: 2px;
  padding: 0.1em 0.2em;
}
.notion-editor-content.ProseMirror-focused .is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  color: #9ca3af;
  pointer-events: none;
  height: 0;
}

/* Empty editor placeholder */
.notion-editor-content.is-empty::before {
  content: '開始輸入... 或按 "/" 使用指令';
  color: #9ca3af;
  pointer-events: none;
  position: absolute;
}

/* Slash Menu Styles */
.slash-menu {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 0.5em;
  min-width: 300px;
  max-height: 400px;
  overflow-y: auto;
}

.slash-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.5em 0.75em;
  border-radius: 4px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}
.slash-menu-item:hover, .slash-menu-item.selected {
  background-color: #f3f4f6;
}
.slash-menu-item.empty {
  color: #9ca3af;
  cursor: default;
}
.slash-menu-item.empty:hover {
  background: transparent;
}

.slash-menu-item-icon {
  flex: 0 0 auto;
  width: 2em;
  height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  border-radius: 4px;
  font-size: 0.875em;
  font-weight: 600;
}

.slash-menu-item-content {
  flex: 1 1 auto;
}

.slash-menu-item-title {
  font-size: 0.875em;
  font-weight: 500;
  color: #111827;
}

.slash-menu-item-description {
  font-size: 0.75em;
  color: #6b7280;
  margin-top: 0.125em;
}

/* Tippy.js theme for slash menu */
.tippy-box[data-theme~=slash-menu] {
  background-color: transparent;
  padding: 0;
}
.tippy-box[data-theme~=slash-menu] .tippy-content {
  padding: 0;
}

/* Bubble Menu Styles */
.bubble-menu {
  display: flex;
  align-items: center;
  gap: 0.25em;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 0.5em;
}

.bubble-menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875em;
  font-weight: 600;
  color: #374151;
}
.bubble-menu-button:hover {
  background-color: #f3f4f6;
}
.bubble-menu-button.is-active {
  background-color: #3b82f6;
  color: #ffffff;
}
.bubble-menu-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.bubble-menu-button strong, .bubble-menu-button em, .bubble-menu-button u, .bubble-menu-button s, .bubble-menu-button code {
  font-size: 1em;
}

.bubble-menu-divider {
  width: 1px;
  height: 1.5em;
  background-color: #e0e0e0;
  margin: 0 0.25em;
}

/* Tippy.js theme for bubble menu */
.tippy-box[data-theme~=bubble-menu] {
  background-color: transparent;
  padding: 0;
}
.tippy-box[data-theme~=bubble-menu] .tippy-content {
  padding: 0;
}

/* Block Menu Styles */
.block-menu-handle {
  position: fixed;
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: grab;
  transition: all 0.2s;
  color: #9ca3af;
  z-index: 9999;
}
.block-menu-handle:hover {
  background-color: #f3f4f6;
  color: #374151;
  border-color: #9ca3af;
}
.block-menu-handle svg {
  width: 16px;
  height: 16px;
}

.block-menu-dropdown {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 0.5em;
  min-width: 240px;
}

.block-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.5em 0.75em;
  border-radius: 4px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}
.block-menu-item:hover {
  background-color: #f3f4f6;
}

.block-menu-item-icon {
  flex: 0 0 auto;
  width: 2em;
  height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
}

.block-menu-item-content {
  flex: 1 1 auto;
}

.block-menu-item-title {
  font-size: 0.875em;
  font-weight: 500;
  color: #111827;
}

.block-menu-item-description {
  font-size: 0.75em;
  color: #6b7280;
  margin-top: 0.125em;
}

.block-menu-divider {
  height: 1px;
  background-color: #e0e0e0;
  margin: 0.25em 0;
}

/* Tippy.js theme for block menu */
.tippy-box[data-theme~=block-menu] {
  background-color: transparent;
  padding: 0;
}
.tippy-box[data-theme~=block-menu] .tippy-content {
  padding: 0;
}

/* Table Menu Styles */
.table-menu-handle {
  position: fixed;
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: #f3f4f6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  color: #374151;
  font-size: 16px;
  z-index: 1000;
}
.table-menu-handle:hover {
  background-color: #e0e0e0;
  color: #111827;
}

.table-menu-dropdown {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 0.5em;
  min-width: 200px;
}

.table-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.5em 0.75em;
  border-radius: 4px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}
.table-menu-item:hover {
  background-color: #f3f4f6;
}

.table-menu-item-icon {
  flex: 0 0 auto;
  width: 1.5em;
  height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
}

.table-menu-item-content {
  flex: 1 1 auto;
}

.table-menu-item-title {
  font-size: 0.875em;
  font-weight: 500;
  color: #111827;
}

.table-menu-item-description {
  font-size: 0.75em;
  color: #6b7280;
  margin-top: 0.125em;
}

.table-menu-divider {
  height: 1px;
  background-color: #e0e0e0;
  margin: 0.25em 0;
}

/* Tippy.js theme for table menu */
.tippy-box[data-theme~=table-menu] {
  background-color: transparent;
  padding: 0;
}
.tippy-box[data-theme~=table-menu] .tippy-content {
  padding: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .notion-editor-wrapper {
    padding: 12px;
  }
  .notion-editor-content {
    font-size: 14px;
  }
  .slash-menu {
    min-width: 250px;
  }
}
.todo .form-check-input {
  margin-top: 7px;
}
.todo .title strong, .todo .title b {
  margin-left: 2px;
  margin-right: 2px;
}
