:root {
      --pico-font-family: 'Chivo', sans-serif;
    }

    /* Smooth transitions for color scheme changes */
    body, [data-theme] {
      transition:
        background-color 1.5s ease-in-out,
        color 1.5s ease-in-out,
        border-color 1.5s ease-in-out;
    }

    /* Smooth transitions for all primary color elements */
    button, .btn, a,
    .note-card, .lane,
    input:focus, select:focus, textarea:focus,
    [role="button"],
    ::selection {
      transition:
        background-color 1.5s ease-in-out,
        color 1.5s ease-in-out,
        border-color 1.5s ease-in-out,
        box-shadow 1.5s ease-in-out;
    }

    /* ToastUI Editor visibility fixes */
    .toastui-editor-md-tab-container {
      background: var(--pico-background-color);
      color: var(--pico-color);
    }

    .toastui-editor-md-preview {
      background: var(--pico-background-color);
      color: var(--pico-color);
    }

    .toastui-editor .toastui-editor-md-tab-container .tab-item {
      color: var(--pico-color);
    }

    .toastui-editor .toastui-editor-md-tab-container .tab-item.active {
      color: var(--pico-primary);
      border-bottom: 2px solid var(--pico-primary);
    }

    .toastui-editor-md-code-block-line-background {
      background-color: rgba(0, 0, 0, 0.05);
    }

    .toastui-editor-md-code,
    .toastui-editor-md-code-block,
    .toastui-editor-md-pre,
    .toastui-editor-md-code-line {
      color: var(--pico-color);
      background-color: var(--pico-code-background-color);
    }

    /* Ensure editor content is visible */
    .ProseMirror {
      color: var(--pico-color) !important;
    }

    .ProseMirror p,
    .ProseMirror h1,
    .ProseMirror h2,
    .ProseMirror h3,
    .ProseMirror h4,
    .ProseMirror h5,
    .ProseMirror h6,
    .ProseMirror ul,
    .ProseMirror ol,
    .ProseMirror blockquote,
    .ProseMirror pre,
    .ProseMirror code {
      color: var(--pico-color) !important;
    }

    /* Preview pane text visibility */
    .toastui-editor-contents {
      color: var(--pico-color) !important;
    }

    .toastui-editor-contents p,
    .toastui-editor-contents h1,
    .toastui-editor-contents h2,
    .toastui-editor-contents h3,
    .toastui-editor-contents h4,
    .toastui-editor-contents h5,
    .toastui-editor-contents h6,
    .toastui-editor-contents ul,
    .toastui-editor-contents ol,
    .toastui-editor-contents blockquote,
    .toastui-editor-contents pre,
    .toastui-editor-contents code {
      color: var(--pico-color) !important;
    }

    /* Theme and color switcher styles - matching legacy UI */
    .theme-and-color-switcher {
      display: flex;
      align-items: center;
      border: 1px solid var(--pico-form-element-border-color);
      border-radius: var(--pico-border-radius);
      overflow: hidden;
      margin-bottom: 0;
      background-color: var(--pico-form-element-background-color);
    }

    .theme-and-color-switcher #theme-switcher {
      border: none;
      border-radius: 0;
      background-color: transparent;
      flex-shrink: 0;
      padding: 0 var(--pico-spacing);
      border-right: 1px solid var(--pico-form-element-border-color);
    }

    .theme-and-color-switcher #theme-switcher:focus,
    .theme-and-color-switcher #theme-switcher:focus-visible,
    .theme-and-color-switcher #theme-switcher:focus-within {
      outline: none;
      border: none;
      box-shadow: none;
      background-color: transparent;
    }

    .theme-and-color-switcher #theme-switcher:active {
      outline: none;
      border: none;
      box-shadow: none;
      background-color: transparent;
    }

    .theme-and-color-switcher #color-scheme-switcher {
      border: none;
      border-radius: 0;
      background-color: var(--pico-form-element-background-color);
      flex-grow: 0;
      padding-right: 0;
      padding-left: 0;
      background-position: right 0.5rem center;
      color: var(--pico-color);
      opacity: 0;
      pointer-events: none;
      max-width: 0;
      overflow: hidden;
      transition: opacity 0.3s ease-in-out, max-width 0.3s ease-in-out, padding-left 0.3s ease-in-out, padding-right 0.3s ease-in-out;
    }

    .theme-and-color-switcher.is-open #color-scheme-switcher {
      opacity: 1;
      pointer-events: auto;
      flex-grow: 1;
      max-width: 250px;
      padding-left: var(--pico-spacing);
      padding-right: 2.5rem;
    }

    .theme-and-color-switcher .color-swatch {
      width: 1.2em;
      height: 1.2em;
      border-radius: var(--pico-border-radius);
      border: 1px solid var(--pico-form-element-border-color);
      background-color: var(--pico-primary);
      flex-shrink: 0;
      margin: 0 var(--pico-spacing);
      transition: background-color 0.3s ease-in-out;
      cursor: pointer;
    }

    .kanban-board {
      display: flex;
      gap: 0.75rem;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 1rem 300px 1rem 0;
      height: calc(100% - 2rem);
      min-height: 0;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    .kanban-board::-webkit-scrollbar {
      display: none;
    }

    .lane {
      background: color-mix(in srgb, var(--pico-card-background-color) 85%, rgba(var(--primary-rgb), 0.15) 15%);
      border: 2px solid rgba(var(--primary-rgb), 0.4);
      border-radius: var(--pico-border-radius);
      min-width: 290px;
      height: 100%;
      display: flex;
      flex-direction: column;
      position: relative;
      transition: width 0.3s ease, all 0.2s ease;
      box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.1);
      flex-shrink: 0;
    }

    .lane:hover {
      border-color: rgba(var(--primary-rgb), 0.7);
      box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.2);
    }

    .lane-header {
      padding: 0.75rem;
      border-bottom: 1px solid rgba(var(--primary-rgb), 0.2);
      font-weight: 600;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--primary-rgb), 0.08) 100%);
      color: var(--pico-primary);
      position: relative;
    }


    .note-count {
      font-size: 0.75rem;
      background: var(--pico-secondary-background);
      color: var(--pico-secondary);
      padding: 0.125rem 0.5rem;
      border-radius: 1rem;
      font-weight: 600;
    }

    /* Improve contrast for note counters in light mode */
    [data-theme="light"] .note-count {
      color: color-mix(in srgb, var(--pico-secondary) 60%, black 40%);
    }

    .lane-action-group {
      display: inline-flex;
      border-radius: var(--pico-border-radius);
      overflow: hidden;
      border: 1px solid rgba(var(--primary-rgb), 0.2);
    }

    .lane-action-btn {
      background: rgba(var(--primary-rgb), 0.1);
      border: none;
      color: var(--pico-primary);
      cursor: pointer;
      padding: 0.125rem 0.4rem;
      font-size: 1.2rem;
      transition: all 0.2s ease;
      opacity: 1;
      border-radius: 0;
      margin: 0;
      position: relative;
      line-height: 1;
    }

    /* Improve contrast for add note buttons in light mode */
    [data-theme="light"] .lane-action-btn {
      color: color-mix(in srgb, var(--pico-primary) 60%, black 40%);
    }

    .lane-action-btn:first-child {
      border-radius: var(--pico-border-radius) 0 0 var(--pico-border-radius);
    }

    .lane-action-btn:last-child {
      border-radius: 0 var(--pico-border-radius) var(--pico-border-radius) 0;
      border-left: 1px solid rgba(var(--primary-rgb), 0.2);
    }

    .lane-action-btn:hover {
      background: rgba(var(--primary-rgb), 0.2);
      color: color-mix(in srgb, var(--pico-primary) 80%, black 20%);
      transform: scale(1.05);
      opacity: 1;
      z-index: 1;
    }

    .lane-action-btn.delete:hover {
      color: var(--pico-del-color);
    }

    .lane-notes {
      flex: 1;
      padding: 0.5rem;
      overflow-y: auto;
      min-height: 0;
      scrollbar-width: thin;
      scrollbar-color: var(--pico-muted-color) transparent;
    }

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

    .lane-notes::-webkit-scrollbar-track {
      background: rgba(var(--pico-muted-color), 0.1);
    }

    .lane-notes::-webkit-scrollbar-thumb {
      background-color: var(--pico-muted-color);
      border-radius: 4px;
      border: 2px solid transparent;
    }

    .lane-notes::-webkit-scrollbar-thumb:hover {
      background-color: var(--pico-color);
    }

    .note-card {
      background: color-mix(in srgb, var(--pico-card-background-color) 88%, white 12%);
      border: 1px solid rgba(var(--primary-rgb), 0.2);
      border-radius: var(--pico-border-radius);
      padding: 0.75rem;
      margin-bottom: 0.5rem;
      cursor: grab;
      transition: all 0.2s ease;
      position: relative;
      box-shadow: 0 2px 4px rgba(var(--primary-rgb), 0.08);
    }

    /* Priority tab on the right side of notes */
    .priority-tab {
      position: absolute;
      top: -8px;
      right: 8px;
      width: 18px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75em;
      cursor: pointer;
      z-index: 1;
      clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .priority-high-tab {
      background-color: rgb(190, 30, 45);
      color: white;
    }

    .priority-medium-tab {
      background-color: rgb(180, 100, 50);
      color: white;
    }

    .priority-low-tab {
      background-color: rgb(80, 140, 70);
      color: white;
    }

    .note-card:hover {
      border-color: var(--pico-primary);
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .note-card.dragging {
      opacity: 0.5;
    }

    .lane.dragging {
      opacity: 0.5;
    }

    .lane-notes {
      min-height: 60px;
    }

    .note-card {
      transition: transform 0.2s ease;
    }

    .note-title {
      font-weight: 300;
      margin-bottom: 0.5rem;
      padding: 0.25rem;
      border-radius: 0.25rem;
      cursor: pointer;
      transition: all 0.2s ease;
      position: relative;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    .note-title:hover {
      background: rgba(var(--primary-rgb), 0.08);
      transform: translateY(-1px);
    }

    .note-title.title-truncated {
      border-bottom: 1px dashed rgba(var(--primary-rgb), 0.3);
      cursor: help;
    }

    .note-title.title-truncated:hover {
      border-bottom-color: rgba(var(--primary-rgb), 0.6);
    }


    .note-title-input {
      animation: fadeIn 0.2s ease;
    }

    .note-content-input {
      animation: fadeIn 0.2s ease;
    }

    .note-content-input:focus {
      box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
    }

    .note-tags-input {
      animation: fadeIn 0.2s ease;
    }

    .note-tags-input:focus {
      box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
    }

    /* Pulse animation for auto-save indicator */
    @keyframes pulse {
      0% {
        opacity: 1;
        transform: scale(1);
      }
      50% {
        opacity: 0.5;
        transform: scale(1.1);
      }
      100% {
        opacity: 1;
        transform: scale(1);
      }
    }

    /* Enhanced hover states for all editable elements */
    .note-card-header:hover .note-title:not(:hover) {
      opacity: 0.8;
    }

    /* Smooth transitions for better UX */
    .note-card * {
      transition: all 0.2s ease;
    }

    /* Visual feedback for active editing */
    .editing-indicator {
      position: absolute;
      top: -2px;
      left: -2px;
      right: -2px;
      bottom: -2px;
      border: 2px solid var(--pico-primary);
      border-radius: 0.5rem;
      pointer-events: none;
      animation: editingPulse 2s ease-in-out infinite;
    }

    @keyframes editingPulse {
      0%, 100% {
        opacity: 0.6;
      }
      50% {
        opacity: 1;
      }
    }

    .note-content {
      font-size: 0.875rem;
      color: var(--pico-color);
      margin-bottom: 0.5rem;
    }

    .note-actions {
      position: absolute;
      top: 0.5rem;
      right: 0.5rem;
      opacity: 0;
      transition: opacity 0.2s ease;
    }

    .note-card:hover .note-actions {
      opacity: 1;
    }

    .edit-note-btn {
      background: none;
      border: none;
      color: var(--pico-muted-color);
      cursor: pointer;
      padding: 0.25rem;
      border-radius: var(--pico-border-radius);
      transition: all 0.2s ease;
    }

    .edit-note-btn:hover {
      color: var(--pico-primary);
      background: var(--pico-secondary-background);
    }

    .note-meta {
      display: flex;
      gap: 0.5rem;
      font-size: 0.75rem;
      color: var(--pico-muted-color);
    }

.note-completion-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.note-completion-progress progress {
  width: 100%;
  height: 8px;
  margin-bottom: 0;
}

.note-completion-progress progress.progress-empty {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Prevent indeterminate state spinning in WebKit browsers */
.note-completion-progress progress.progress-empty::-webkit-progress-bar {
  background-color: var(--pico-background-color);
  border-radius: 4px;
}

.note-completion-progress progress.progress-empty::-webkit-progress-value {
  background-color: var(--pico-background-color);
  border-radius: 4px;
  width: 0;
}

/* Prevent indeterminate state spinning in Firefox */
.note-completion-progress progress.progress-empty::-moz-progress-bar {
  background-color: var(--pico-background-color);
  border-radius: 4px;
  width: 0;
}

.note-completion-progress span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pico-muted-color);
}


    .priority {
      padding: 0.125rem 0.375rem;
      border-radius: var(--pico-border-radius);
      font-size: 0.625rem;
      font-weight: 600;
      text-transform: uppercase;
    }

    .priority-high {
      background: var(--pico-del-background-color);
      color: var(--pico-del-color);
    }

    .priority-medium {
      background: var(--pico-ins-background-color);
      color: var(--pico-ins-color);
    }

    .priority-low {
      background: var(--pico-mark-background-color);
      color: var(--pico-mark-color);
    }

    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      backdrop-filter: blur(2px);
    }

    .modal-overlay-top {
      z-index: 1100; /* Higher than regular modals */
    }

    .modal {
      background: var(--pico-background-color);
      border: 2px solid rgba(var(--primary-rgb), 0.3);
      border-radius: var(--pico-border-radius);
      box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.15);
      width: 90%;
      max-width: 800px;
      max-height: 90vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transform-origin: center;
      transition: all 0.2s ease-out;
    }

    .modal-header {
      padding: 1rem;
      border-bottom: 1px solid var(--pico-border-color);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    /* Modal close button with proper contrast */
    .modal-close-btn {
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.25rem;
      font-size: 1.5rem;
      color: var(--pico-color);
      opacity: 0.8;
      transition: all 0.2s ease;
      border-radius: var(--pico-border-radius);
    }

    .modal-close-btn:hover {
      opacity: 1;
      background: var(--pico-secondary-background);
    }

    .modal-close-btn:active {
      transform: scale(0.95);
    }

    .modal-body {
      flex: 1;
      overflow-y: auto;
      padding: 1rem;
    }

    .modal-footer {
      padding: 1rem;
      border-top: 1px solid var(--pico-border-color);
      display: flex;
      justify-content: flex-end;
      gap: 0.5rem;
    }

    [x-cloak] { display: none !important; }

    /* Note content wrapper */
    .note-content-wrapper {
      margin-top: 0.5rem;
      overflow: hidden;
      transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      transform-origin: top;
    }

    /* Note expansion animations */
    .note-content {
      overflow: hidden;
      transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      transform-origin: top;
    }

    /* Note search fade animation */
    .note-card {
      transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
    }

    .note-card.search-hidden {
      opacity: 0;
      transform: scale(0.95);
      filter: blur(2px);
      pointer-events: none;
      position: absolute;
      width: 100%;
    }

    /* Smooth lane height adjustment when notes are hidden */
    .lane {
      transition: min-height 0.3s ease;
    }

    /* Expand indicator animation */
    .expand-indicator svg {
      transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .expand-indicator:hover svg {
      transform: scale(1.1);
    }

    /* Markdown content styling */
    .note-content h1,
    .note-content h2,
    .note-content h3,
    .note-content h4,
    .note-content h5,
    .note-content h6 {
      margin: 0.5rem 0 0.25rem 0;
      font-weight: 600;
    }

    .note-content h1 { font-size: 1.25rem; }
    .note-content h2 { font-size: 1.125rem; }
    .note-content h3 { font-size: 1rem; }

    .note-content p {
      margin: 0.25rem 0;
      line-height: 1.5;
    }

    .note-content ul,
    .note-content ol {
      margin: 0.25rem 0;
      padding-left: 1.5rem;
    }

    .note-content li {
      margin: 0.125rem 0;
    }

    .note-content code {
      background: var(--pico-code-background-color);
      color: var(--pico-code-color);
      padding: 0.125rem 0.25rem;
      border-radius: 0.25rem;
      font-size: 0.875em;
    }

    .note-content pre {
      background: var(--pico-code-background-color);
      padding: 0.75rem;
      border-radius: var(--pico-border-radius);
      overflow-x: auto;
      margin: 0.5rem 0;
    }

    .note-content pre code {
      background: none;
      padding: 0;
      color: inherit;
    }

    .note-content blockquote {
      border-left: 4px solid var(--pico-border-color);
      margin: 0.5rem 0;
      padding-left: 1rem;
      color: var(--pico-muted-color);
    }

    .note-tags {
      margin-bottom: 0.5rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.25rem;
      align-items: center;
      line-height: 1.4;
    }

    .note-tag {
      display: inline-flex;
      align-items: center;
      background: rgba(var(--primary-rgb), 0.1) !important;
      border: 1px solid rgba(var(--primary-rgb), 0.2) !important;
      color: rgba(var(--primary-rgb), 0.8) !important;
      padding: 0.125rem 0.375rem;
      border-radius: var(--pico-border-radius);
      font-size: 0.75rem;
      font-weight: 500;
      line-height: 1.4;
      min-height: 1.5rem;
      /* transition: all 0.2s ease; */
      cursor: pointer;
      white-space: nowrap;
    }

    .note-tag:hover {
      background: rgba(var(--primary-rgb), 0.1) !important;
      color: rgba(var(--primary-rgb), 0.9);
      border-color: rgba(var(--primary-rgb), 0.3) !important;
      transform: translateY(-1px);
    }

    .note-tag:focus {
      background: rgba(var(--primary-rgb), 0.1) !important;
      color: rgba(var(--primary-rgb), 0.9);
      border-color: rgba(var(--primary-rgb), 0.3) !important;
      outline: none;
    }

    .tag-remove-btn {
      background: none;
      border: none;
      color: inherit;
      margin-left: 0.125rem;
      cursor: pointer;
      font-size: 0.7em;
      font-weight: 500;
      opacity: 0.5;
      padding: 0;
      line-height: 1;
      display: inline-block;
      width: auto;
      height: auto;
      min-width: auto;
      min-height: auto;
      transition: all 0.2s ease;
      border-radius: 50%;
      aspect-ratio: 1;
    }

    .tag-remove-btn:hover {
      opacity: 1;
      background: rgba(0, 0, 0, 0.1);
    }

    .expand-indicator {
      color: var(--pico-muted-color);
      opacity: 0.6;
      transition: opacity 0.2s ease;
      margin-left: 0.5rem;
      flex-shrink: 0;
    }

    .note-card:hover .expand-indicator {
      opacity: 1;
    }

    .note-header-actions {
      display: flex;
      gap: 0.25rem;
      align-items: center;
      margin-left: 0.5rem;
      flex-shrink: 0;
    }

    .note-action-group {
      display: inline-flex;
      border-radius: var(--pico-border-radius);
      overflow: hidden;
      border: 1px solid rgba(var(--primary-rgb), 0.15);
    }

    .expand-indicator {
      background: rgba(var(--primary-rgb), 0.08);
      border: none;
      color: var(--pico-primary);
      cursor: pointer;
      padding: 0.25rem;
      transition: all 0.2s ease;
      opacity: 0.8;
      border-radius: 0;
      margin: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .expand-indicator:hover {
      background: rgba(var(--primary-rgb), 0.15);
      opacity: 1;
      transform: scale(1.05);
    }

    .expand-indicator:first-child {
      border-radius: var(--pico-border-radius) 0 0 var(--pico-border-radius);
    }

    .note-header-actions .edit-note-btn {
      background: rgba(var(--primary-rgb), 0.08);
      border: none;
      color: var(--pico-primary);
      cursor: pointer;
      padding: 0.25rem;
      transition: all 0.2s ease;
      opacity: 0.8;
      border-radius: 0;
      margin: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      border-left: 1px solid rgba(var(--primary-rgb), 0.15);
    }

    .note-header-actions .edit-note-btn:hover {
      background: rgba(var(--primary-rgb), 0.15);
      opacity: 1;
      transform: scale(1.05);
    }

    .note-header-actions .edit-note-btn:last-child {
      border-radius: 0 var(--pico-border-radius) var(--pico-border-radius) 0;
    }

    .board-container {
      position: relative;
      width: 100%;
      flex: 1;
      overflow: hidden;
      min-height: 0;
    }

    .scroll-button {
      position: fixed;
      top: 50%;
      transform: translateY(-50%);
      width: 60px;
      height: 60px;
      border-radius: 50%;
      border: none;
      background: rgba(var(--pico-primary-rgb), 0.95);
      color: white;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 999;
      transition: all 0.2s ease;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }

    .scroll-button:hover {
      background: rgba(var(--pico-primary-rgb), 0.95);
      transform: translateY(-50%) scale(1.1);
    }

    .scroll-button.scroll-left {
      left: 1rem;
    }

    .scroll-button.scroll-right {
      right: 1rem;
    }
  }

  header {
    height: 64px;
    box-sizing: border-box;
  }

  header nav {
    height: 100%;
    box-sizing: border-box;
  }

  body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
  }

  html {
    margin: 0;
    padding: 0;
    height: 100vh;
  }

    /* Enhanced dragging states */
    .note-card.dragging {
      opacity: 0.5;
      transform: scale(0.95) rotate(2deg);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
      transition: all 0.2s ease-out;
      cursor: grabbing;
    }

    .lane.dragging {
      opacity: 0.5;
      transform: scale(0.98);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
      transition: all 0.2s ease-out;
    }


    /* Note card hover effects */
    .note-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.4);
      border-color: rgba(var(--primary-rgb), 0.8);
      background: color-mix(in srgb, var(--pico-card-background-color) 82%, rgba(var(--primary-rgb), 0.18));
      transition: all 0.2s ease-out;
    }

    .note-card:hover .edit-note-btn {
      opacity: 1;
      transform: scale(1);
    }

    /* Button hover animations */
    button {
      transition: all 0.2s ease-out;
    }

    button:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    }

    button:active {
      transform: translateY(0);
      box-shadow: none;
    }

    /* Lane header hover */
    .lane-header:hover {
      background: color-mix(in srgb, var(--lane-bg) 90%, var(--pico-primary) 10%);
      transition: background 0.2s ease-out;
    }

    /* Theme/color switcher hover */
    .theme-and-color-switcher button:hover {
      transform: scale(1.05);
    }

    /* Board sharing controls - matching theme/color switcher style */
    .board-sharing-controls {
      display: flex;
      align-items: center;
      margin-bottom: 0;
    }

    .sharing-button-group {
      display: flex;
      align-items: center;
      border: 1px solid var(--pico-form-element-border-color);
      border-radius: var(--pico-border-radius);
      overflow: hidden;
      background-color: var(--pico-form-element-background-color);
    }

    .sharing-button {
      border: none;
      border-radius: 0;
      background-color: transparent;
      flex-shrink: 0;
      padding: 0 var(--pico-spacing);
      color: var(--pico-primary);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      font-size: 0.875rem;
      opacity: 0.9;
    }

    .sharing-button:hover {
      background-color: rgba(var(--primary-rgb), 0.1);
      opacity: 1;
      transform: scale(1.05);
    }

    .sharing-button:focus,
    .sharing-button:focus-visible,
    .sharing-button:focus-within {
      outline: none;
      border: none;
      box-shadow: none;
      background-color: rgba(var(--primary-rgb), 0.1);
    }

    .sharing-button:active {
      outline: none;
      border: none;
      box-shadow: none;
      background-color: rgba(var(--primary-rgb), 0.15);
      transform: scale(0.95);
    }

    .sharing-button-left {
      border-radius: var(--pico-border-radius) 0 0 var(--pico-border-radius);
      border-right: 1px solid var(--pico-form-element-border-color);
    }

    .sharing-button-right {
      border-radius: 0 var(--pico-border-radius) var(--pico-border-radius) 0;
    }

    .sharing-button-primary {
      border-radius: var(--pico-border-radius);
    }

    /* Search input styles */
    .search-input {
      transition: all 0.3s ease;
    }

    .search-input:focus {
      box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
    }


    /* Enhanced drop indicators */
    .note-drop-indicator {
      background: var(--pico-primary);
      height: 3px;
      width: 100%;
      margin: 4px 0;
      border-radius: 2px;
      box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.5);
      animation: slideIn 0.2s ease-out;
    }

    .lane-drop-indicator {
      background: var(--pico-primary);
      height: 3px;
      width: 100%;
      border-radius: 2px;
      box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.5);
      animation: slideIn 0.2s ease-out;
    }

    @keyframes slideIn {
      from {
        opacity: 0;
        transform: scaleX(0);
      }
      to {
        opacity: 1;
        transform: scaleX(1);
      }
    }

    /* Success animation for dropped notes */
    @keyframes dropSuccess {
      0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7); }
      70% { box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0); }
      100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
    }

    .note-card.drop-success {
      animation: dropSuccess 0.5s ease-out;
    }

    /* Pulse animation for search results */
    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.5; }
    }

    .search-pulse {
      animation: pulse 1s ease-in-out;
    }


    /* Throb animation for hamburger menu */
    @keyframes throb {
      0%, 100% {
        transform: scale(1);
        background-color: var(--pico-background-color);
      }
      50% {
        transform: scale(1.1);
        background-color: var(--pico-secondary-background);
      }
    }

    /* Edit button enhancements */
    .edit-note-btn {
      opacity: 0;
      transform: scale(0.8);
      transition: all 0.2s ease-out;
    }

    .edit-note-btn:hover {
      transform: scale(1.1);
      background: var(--pico-primary-background-color);
      color: var(--pico-primary-inverse);
    }

    /* Lane Separator and Hidden Lanes */
    .lane-separator {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 0.75rem; /* Same as kanban board gap */
      z-index: 100;
      cursor: col-resize;
      user-select: none;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(var(--pico-primary-rgb), 0.15);
      transition: left 0.3s ease, background-color 0.2s ease;
    }

    .lane-separator:hover {
      background: rgba(var(--pico-primary-rgb), 0.2);
    }

    .lane-separator.dragging {
      background: var(--pico-primary);
      opacity: 0.8;
    }

    .separator-line {
      position: absolute;
      left: 50%;
      top: 0;
      bottom: 0;
      width: 2px;
      background: var(--pico-primary);
      transform: translateX(-50%);
      border-radius: 1px;
    }

    .separator-handle {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      background: var(--pico-primary);
      color: white;
      border-radius: 50%;
      width: 20px;
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .separator-control {
      position: absolute;
      bottom: 8px;
      background: var(--pico-primary);
      color: var(--pico-primary-inverse);
      border: none;
      border-radius: 4px;
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 101;
      transition: all 0.2s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
      opacity: 0.8;
    }

    .separator-control:hover {
      opacity: 1;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      transform: scale(1.1);
    }

    .separator-control:active {
      transform: scale(0.95);
    }

    .separator-control:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    .separator-control:disabled:hover {
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    .separator-control-left {
      left: -28px;
    }

    .separator-control-right {
      right: -28px;
    }

    .separator-control svg {
      width: 16px !important;
      height: 16px !important;
      min-width: 16px;
      min-height: 16px;
      stroke-width: 3;
      stroke: white;
      fill: none;
      display: block;
      visibility: visible;
    }

    .lane-hidden {
      /* Visual styling for lanes that are conceptually "hidden" */
      opacity: 0.7;
      filter: grayscale(30%);
      transition: all 0.3s ease;
    }

    .lane-hidden:hover {
      opacity: 0.4;
    }

    /* Ensure kanban board has relative positioning for separator */
    .kanban-board {
      position: relative;
    }

    header nav ul {
      align-items: center;
    }

    header nav input,
    header nav select,
    header nav button,
    header nav .theme-and-color-switcher,
    header nav .sharing-button-group {
      height: 2.5rem;
      padding-top: 0.5rem;
      padding-bottom: 0.5rem;
    }

    .sharing-button svg {
      width: 16px;
      height: 16px;
    }

    /* Horizontal Board Selection Styles */
    .board-selection-container {
      scrollbar-width: thin;
      scrollbar-color: var(--pico-muted-border-color) transparent;
    }

    .board-selection-container::-webkit-scrollbar {
      height: 8px;
    }

    .board-selection-container::-webkit-scrollbar-track {
      background: transparent;
    }

    .board-selection-container::-webkit-scrollbar-thumb {
      background-color: var(--pico-muted-border-color);
      border-radius: 4px;
      border: 2px solid transparent;
    }

    .board-selection-container::-webkit-scrollbar-thumb:hover {
      background-color: var(--pico-muted-color);
    }

    /* Smooth scroll behavior */
    .board-selection-container {
      scroll-behavior: smooth;
    }

    /* Horizontal Lane Selection Styles */
    .lane-selection-container {
      scrollbar-width: thin;
      scrollbar-color: var(--pico-muted-border-color) transparent;
    }

    .lane-selection-container::-webkit-scrollbar {
      height: 8px;
    }

    .lane-selection-container::-webkit-scrollbar-track {
      background: transparent;
    }

    .lane-selection-container::-webkit-scrollbar-thumb {
      background-color: var(--pico-muted-border-color);
      border-radius: 4px;
      border: 2px solid transparent;
    }

    .lane-selection-container::-webkit-scrollbar-thumb:hover {
      background-color: var(--pico-muted-color);
    }

    /* Smooth scroll behavior */
    .lane-selection-container {
      scroll-behavior: smooth;
    }

    /* Enhanced lane template card hover effects */
    .lane-template-card {
      transform: translateY(0);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .lane-template-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .board-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
