  :root {
      --bg-primary: #1a1a1a;
      --bg-secondary: #2d2d2d;
      --bg-tertiary: #3a3a3a;
      --text-primary: #ffffff;
      --text-secondary: #e0e0e0;
      --border-color: #4e4e4e9e;
      --accent-color: #00000085;
      --success-color: #28a745;
      --danger-color: #dc3545;
      --bs-progress-bar-color: white;
      --bs-secondary-bg: rgba(255, 255, 255, 0.228) !important;
  }

  [data-theme="light"] {
      --bg-primary: #f4f5f7;
      --bg-secondary: #ffffff;
      --bg-tertiary: #ebecf0;
      --text-primary: #172b4d;
      --text-secondary: #5e6c84;
      --border-color: #dfe1e6;
      --accent-color: #0079bf;
      --glass-bg: rgba(255, 255, 255, 0.9);
      --glass-border: rgba(0, 0, 0, 0.1);
  }

  /* Force white text in Preview Modal regardless of theme */
  #previewCardModal .modal-content {
      color: white !important;
      background: rgba(30, 30, 30, 0.95);
      /* Dark background for preview */
  }

  #previewCardModal .text-muted {
      color: #b0b0b0 !important;
  }

  /* Global text-muted color override for better visibility */
  .text-muted {
      color: #b0b0b0 !important;
  }

  ::placeholder {
      color: #cccccc !important;
      /* Lighter gray for better visibility */
  }

  /* For older WebKit-based browsers (Chrome, Safari, older Edge) */
  ::-webkit-input-placeholder {
      color: #cccccc;
  }


  .app-header {
      -ms-overflow-style: none;
      /* For Internet Explorer and Edge */
      scrollbar-width: none;
      /* For Firefox */
  }

  .app-header::-webkit-scrollbar {
      display: none;
      /* For Chrome, Safari, and Opera */
  }

  .progress-bar {
      background-color: white;
  }

  .ai-settings-check-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 10px 16px;
  }

  .ai-settings-check-grid .form-check {
      min-height: 36px;
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0;
      padding: 8px 10px 8px 34px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.05);
  }

  .ai-run-status-bar {
      margin-right: auto;
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 36px;
      padding: 8px 12px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 6px;
      color: var(--text-secondary);
      background: rgba(255, 255, 255, 0.06);
      font-size: 0.9rem;
  }

  .ai-global-status-bar {
      position: fixed;
      left: 50%;
      bottom: 18px;
      transform: translateX(-50%);
      z-index: 4000;
      max-width: min(720px, calc(100vw - 28px));
      box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
      backdrop-filter: blur(14px);
  }

  .ai-run-status-bar[data-state="applied"],
  .ai-run-status-bar[data-state="redone"] {
      color: #b7f7c1;
      border-color: rgba(40, 167, 69, 0.35);
  }

  .ai-run-status-bar[data-state="failed"] {
      color: #ffd0d6;
      border-color: rgba(220, 53, 69, 0.45);
  }

  .ai-review-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
  }

  .ai-review-row {
      display: grid;
      grid-template-columns: 22px 1fr;
      gap: 10px;
      align-items: start;
      padding: 10px 12px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.05);
  }

  .ai-review-row small {
      display: block;
      color: var(--text-secondary);
      margin-top: 2px;
  }

  .ai-stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      gap: 12px;
  }

  .ai-stat-tile {
      min-height: 92px;
      padding: 14px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.05);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
  }

  .ai-stat-tile span {
      color: var(--text-secondary);
      font-size: 0.82rem;
  }

  .ai-stat-tile strong {
      color: var(--text-primary);
      font-size: 1.5rem;
  }

  /* For older Firefox versions */
  :-moz-placeholder {
      color: #cccccc;
      opacity: 1;
      /* Ensures full opacity as Firefox might apply a default opacity */
  }

  /* For older Internet Explorer 10-11 */
  :-ms-input-placeholder {
      color: #cccccc;
  }

  ::-webkit-scrollbar {
      width: 3px;
      height: 7px;
  }

  ::-webkit-scrollbar-thumb {
      background: rgba(128, 128, 128, 0.436);
      border-radius: 25px;
  }

  &::-webkit-scrollbar-track {
      background-color: rgba(128, 128, 128, 0.436);
  }



  .container {
      overflow-y: auto;
      scrollbar-width: none;
      -ms-overflow-style: none;
  }


  .cards-container::-webkit-scrollbar {
      width: 3px;
  }

  .cards-container::-webkit-scrollbar-thumb {

      transition: all 0.3s ease;
  }





  body {
      font-family: 'Cera Pro', "Roboto", serif;
      font-optical-sizing: auto;
      font-weight: weight;
      font-style: normal;
      font-variation-settings: "wdth" 200;
  }


  body {
      margin: 0;
      /* Remove default margin */
      padding: 0;
      background-color: transparent;
      background-size: cover;
      /* Ensures the image covers the whole area */
      background-position: center;
      /* Keeps it centered */
      background-repeat: no-repeat;
      /* Prevents tiling */
      height: 100vh;
      /* Makes body take full viewport height */
  }

  body {
      background-color: var(--bg-primary);
      color: var(--text-primary);
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      margin: 0;
      padding: 0;
  }

  .kanban-container {
      height: 100vh;
      display: flex;
      flex-direction: column;
  }

  .app-header {
      background: transparent !important;
      border-bottom: 1px solid var(--border-color);
      display: flex;
      align-items: center;
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
      box-shadow: none;
      padding-right: 20px;
      /* Padding for actions */
      position: relative;
      z-index: 1000;
  }

  .user-menu-btn,
  .header-icon-btn {
      width: 35px;
      height: 35px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.1);
      cursor: pointer;
      overflow: hidden;
      font-size: 20px;
      color: var(--text-primary);
      transition: background 0.2s;
      border: none;
      /* Ensure no border for buttons */
      padding: 0;
      /* Reset padding */
  }

  .user-menu-btn:hover,
  .header-icon-btn:hover {
      background: rgba(255, 255, 255, 0.2);
  }

  .board-tabs {
      padding: 10px;
      display: flex;
      align-items: center;
      margin-right: 12px;
      gap: 10px;
      overflow-x: auto;
      overflow-y: hidden;
      flex-wrap: nowrap;
      /* Prevent wrapping */
      flex-grow: 1;
      /* Take available space */
      border: none;
      /* Remove border as it's on parent */
      background: transparent !important;
      /* Remove bg as it's on parent */
      box-shadow: none;
      backdrop-filter: none;
      scrollbar-width: none; /* Hide Firefox scrollbar */
      -ms-overflow-style: none; /* Hide IE/Edge scrollbar */
  }

  .board-tabs::-webkit-scrollbar {
      display: none; /* Hide Chrome/Safari/Opera scrollbar */
  }


  .board-tab {
      padding: 8px 16px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      gap: 8px;
      user-select: none;
      color: var(--text-secondary);
      white-space: nowrap;
      /* Prevent text wrapping */
      flex-shrink: 0;
      /* Prevent tab from shrinking */
      width: var(--tab-width, auto);
      min-width: var(--tab-min-width, 120px);
      justify-content: center;
      /* Center content if fixed width */
  }

  .board-tab .board-icon {
      margin-right: 0 !important;
  }

  .no-caret::after {
      display: none !important;
  }

  .header-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
      background: transparent !important;
  }

  /* ── Sync Widget ─────────────────────────────────────────── */
  .prism-sync-widget {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 20px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      cursor: default;
      font-size: 12px;
      color: rgba(255,255,255,0.75);
      transition: background 0.2s;
      white-space: nowrap;
      max-width: 180px;
  }

  .prism-sync-widget .sync-status-area {
      display: flex;
      align-items: center;
      gap: 5px;
      overflow: hidden;
  }

  .prism-sync-widget .sync-label {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: 110px;
  }

  .prism-sync-widget .sync-now-btn {
      background: rgba(77,171,247,0.18);
      border: 1px solid rgba(77,171,247,0.35);
      color: #4dabf7;
      border-radius: 50%;
      width: 22px;
      height: 22px;
      font-size: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      flex-shrink: 0;
      transition: background 0.2s, transform 0.2s;
      padding: 0;
  }

  .prism-sync-widget .sync-now-btn:hover {
      background: rgba(77,171,247,0.35);
      transform: rotate(30deg);
  }

  .automation-api-sessions {
      display: grid;
      gap: 8px;
  }

  .automation-api-session {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 12px;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 8px;
      background: rgba(255,255,255,0.04);
  }

  /* Collapse label on very small screens */
  @media (max-width: 520px) {
      .prism-sync-widget .sync-label { display: none; }
      .prism-sync-widget { padding: 4px 6px; }
      .automation-api-session {
          align-items: flex-start;
          flex-direction: column;
      }
  }




  .board-card {
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 15px;
      margin-bottom: 15px;

      transition: all 0.2s ease;
      display: flex;
      flex-direction: column;
      box-shadow: 2px 2px 2px #0000001d;
      border-top: rgb(107 100 81 / 27%) 0.1px solid;
  }

  .board-card:hover {
      background: rgba(0, 123, 255, 0.1);
      transform: translateY(-2px);
      border-color: rgba(189, 200, 212, 0.3);
  }

  .board-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
  }

  .board-icon {
      font-size: 20px;
      margin-right: 10px;
  }

  .board-name {
      font-weight: 500;
      font-size: 16px;
  }

  .board-status {
      padding: 4px 8px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 500;
      margin-right: 10px;
  }

  .board-status.enabled {
      background: rgba(40, 167, 69, 0.2);
      color: #28a745;
  }

  .board-status.disabled {
      background: rgba(220, 53, 69, 0.2);
      color: #dc3545;
  }

  .board-actions {
      display: flex;
      gap: 5px;
  }

  .boards-container {
      max-height: 70vh;
      overflow-y: auto;
  }




  .board-tab.active {
      background: var(--accent-color);
      color: white;
  }

  .column-buttons {

      padding-right: 15px;

  }

  .card-actions {
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .card-menu-btn {
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  /* Show card-actions and card-menu-btn on hover or when card is active */
  .card:hover .card-actions,
  .card.active-card .card-actions {
      opacity: 1;
      visibility: visible;
  }

  .card:hover .card-menu-btn,
  .card.active-card .card-menu-btn {
      opacity: 1;
      visibility: visible;
  }

  .column-header .btn {
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  /* Show column buttons on column hover */
  .column:hover .column-header .btn {
      opacity: 1;
      visibility: visible;
  }

  /* Show column buttons when hovering over any card in the column */
  .column:has(.card:hover) .column-header .btn {
      opacity: 1;
      visibility: visible;
  }

  /* Alternative fallback for browsers that don't support :has() */
  .column .card:hover~.column-header .btn,
  .column .cards-container:hover+.column-header .btn {
      opacity: 1;
      visibility: visible;
  }


  /* Board menu button visibility */
  .board-menu-btn {
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
      margin-right: 5px;
  }

  /* Theme Selector */
  .theme-selector {
      display: flex;
      gap: 10px;
      margin-top: 5px;
  }

  .theme-option {
      cursor: pointer;
      text-align: center;
      opacity: 0.7;
      transition: all 0.2s;
  }

  .theme-option:hover {
      opacity: 1;
      transform: translateY(-2px);
  }

  .theme-option.active {
      opacity: 1;
      font-weight: bold;
  }

  .theme-preview {
      width: 50px;
      height: 50px;
      border-radius: 8px;
      margin-bottom: 5px;
      border: 2px solid transparent;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .theme-option.active .theme-preview {
      border-color: var(--accent-color);
      box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
  }

  /* Space Selector Dropdown */
  .space-dropdown-toggle {
      width: 32px;
      height: 32px;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;

      border: 1px solid rgba(255, 255, 255, 0.2);
      color: white;
      font-weight: bold;
  }

  .space-dropdown-toggle:hover,
  .space-dropdown-toggle:focus {

      border-color: rgba(255, 255, 255, 0.3);
      color: white;
      box-shadow: none;
  }

  .space-dropdown-toggle::after {
      display: none;
      /* Hide default caret */
  }

  .space-initial {
      font-size: 14px;
      text-transform: uppercase;
  }

  .tab-right-actions .dropdown-menu {
      background: var(--glass-bg);
      backdrop-filter: blur(10px);
      border: 1px solid var(--glass-border);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }

  .tab-right-actions .dropdown-item {
      color: var(--text-color);
  }

  .tab-right-actions .dropdown-item:hover {
      background: rgba(255, 255, 255, 0.1);
      color: white;
  }

  .tab-right-actions .dropdown-item.active {
      background: var(--accent-color);
      color: white;
  }

  .tab-right-actions .dropdown-divider {
      border-top-color: rgba(255, 255, 255, 0.1);
  }


  /* Show board-menu-btn on hover or when board tab is active */
  .board-tab:hover .board-menu-btn {
      opacity: 1;
      visibility: visible;
  }

  .add-board-btn,
  .delete-board {
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  /* Show add-board-btn on board tabs container hover */
  #boardTabs:hover .add-board-btn {
      opacity: 1;
      visibility: visible;
  }

  /* Show delete-board on individual board tab hover */
  .board-tab:hover .delete-board {
      opacity: 1;
      visibility: visible;
  }

  .add-board-btn {
      background: transparent;
      border: none;
      color: white;
      padding: 8px 12px;
      border-radius: 6px;
      font-size: 16px;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .kanban-board {
      flex: 1;
      padding: 20px;
      overflow-x: auto;
      overflow-y: hidden;
      padding-bottom: 0px;
      padding-right: 0px;
      padding-left: 0px;
  }

  .columns-container {
      display: flex;
      /*  gap: 15px;*/
      min-height: calc(100vh - 120px);
      padding-bottom: 10px;
  }

  .column-btn {

      border-radius: 8px;
      min-width: 60px;
      max-width: 60px;
      padding: 28px 15px;
      height: 50px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;

      transition: all 0.2s ease;
      color: var(--text-secondary);
      background-color: rgba(0, 0, 0, 0.5);
      color: white;
      box-shadow: 2px 2px 2px #0000001d;
      margin-bottom: 10px;
      display: none;
  }

  .column-btn:hover {
      border-color: var(--accent-color);
  }

  .column.expanded {
      /*     padding: 28px 15px;*/

  }

  * {
      animation: fadeInStep 0.5s ease;
  }


  .nav-link {
      width: 90px;
  }



  @keyframes fadeInStep {
      from {
          opacity: 0;
          transform: translateY(20px);
      }

      to {
          opacity: 1;
          transform: translateY(0);
      }
  }



  /* Or even more explicit: */
  @keyframes fadeNot {
      from {
          opacity: 1;
      }

      to {
          opacity: 1;
      }

      from {
          opacity: 10;

      }

      to {
          opacity: 1;

      }
  }



  .column {
      background: var(--bg-secondary);
      background-color: rgba(0, 0, 0, 0.5);

      border: 1px solid var(--border-color);
      border-radius: 8px;
      min-width: 320px;
      padding: 15px;
      display: flex;
      flex-direction: column;
      transition: all 0.3s ease;
      box-shadow: 2px 2px 2px #0000001d;
      border-top: rgb(107 100 81 / 27%) 0.1px solid;
      padding-bottom: 0px;
      cursor: pointer;
  }

  /* Selected column state */
  .column.column-selected {
      border: 2px solid rgba(255, 255, 255, 0.6);
      box-shadow: 0 0 15px rgba(255, 255, 255, 0.3), 2px 2px 2px #0000001d;
  }



  .column-header {
      /*display: flex;*/
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
      padding-bottom: 10px;
      cursor: move;
      text-align: center;
      ;
  }


  .column-title {
      font-weight: 600;
      font-size: 16px;
      color: var(--text-primary);

      padding: 2px 4px;
      border-radius: 3px;
      transition: background-color 0.2s;
      text-transform: uppercase;
  }

  .column-title:hover {
      background-color: var(--bg-tertiary);
  }



  .column-actions {
      display: flex;
      gap: 5px;
  }



  .btn-sm {
      padding: 4px 8px;
      font-size: 12px;
      border-radius: 4px;
  }

  .btn-outline-secondary {
      color: white;
      border-color: rgba(255, 255, 255, 0.5);
  }

  .btn-outline-secondary:hover,
  .btn-outline-secondary.active {
      background-color: white;
      color: #000;
      border-color: white;
  }

  .cards-container {
      flex: 1;
      overflow-y: auto;
      min-height: 200px;
      overflow-x: hidden;
      /* padding-right: 15px;*/
  }

  .column.collapsed .cards-container {
      display: none;
  }


  .menu-btn {
      color: white;
      background-color: transparent;

      padding: 8px;
      border-radius: 4px;
      font-size: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .menu-btn:hover {
      background-color: rgba(255, 255, 255, 0.1);
  }

  .settings-tabs {
      display: flex;
      border-bottom: 1px solid var(--border-color);
      margin-bottom: 20px;
  }

  .tab-button {
      flex: 1;
      padding: 15px;
      background: none;
      border: none;
      color: var(--text-secondary);

      font-weight: 500;
      border-bottom: 3px solid transparent;
  }

  .tab-button.active {
      color: var(--text-primary);
      border-bottom-color: var(--accent-color);
  }

  .tab-button:hover:not(.active) {
      background-color: var(--bg-tertiary);
  }

  .tab-content {}

  .tab-content.active {
      display: block;
  }

  .setting-item {
      margin-bottom: 20px;
  }

  .setting-item label {
      display: block;
      margin-bottom: 5px;
      font-weight: 500;
  }

  .setting-item input[type="checkbox"] {
      margin-right: 10px;
  }

  .setting-item select {
      width: 100%;
      padding: 8px;
      border-radius: 4px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      color: var(--text-primary);
  }

  .gallery-content {
      text-align: center;
      padding: 20px;
  }

  .modal-content,
  .card {
      background: #15141447;
      border: 1px solid var(--border-color);
      border-radius: 6px;
      padding: 12px;
      margin-bottom: 10px;

      transition: all 0.2s ease;
      position: relative;
      backdrop-filter: blur(20px);
      box-shadow: 5px 3px 10px #00000061;
      border-top: rgb(107 100 81 / 27%) 0.1px solid;
  }

  .card:hover {
      border-color: rgba(189, 200, 212, 0.3);
      background: rgba(0, 123, 255, 0.1);
      transform: translateY(-1px);
  }

  input[type=checkbox] {
      accent-color: rgba(0, 123, 255, 0.3);
  }



  .card {
      transition: all 0.3s ease;
  }

  .card:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 4px rgba(68, 68, 68, 0.3);
  }

  .card.active-card {
      /* transform: translateY(-2px);  REMOVED: No more movement animation */
      z-index: 100;
      border: 1px solid white !important;
      box-shadow: 0 0 0 1px white !important;
      /* Double ensure visibility */
  }

  .card-favorite-toggle i {
      font-size: 10px !important;
      /* Very small as requested */
      transition: transform 0.2s ease;
  }

  .card-favorite-toggle:hover i {
      transform: scale(1.2);
  }

  /* Preview Modal Styles */
  .markdown-content img {
      max-width: 100%;
      border-radius: 4px;
  }

  .markdown-content h1,
  .markdown-content h2,
  .markdown-content h3 {
      margin-top: 1rem;
      margin-bottom: 0.5rem;
      color: var(--text-primary);
  }

  .markdown-content p {
      margin-bottom: 0.5rem;
      line-height: 1.5;
  }

  .markdown-content ul,
  .markdown-content ol {
      padding-left: 1.5rem;
  }

  .markdown-content blockquote {
      border-left: 3px solid var(--accent-color);
      padding-left: 1rem;
      color: var(--text-secondary);
      margin-left: 0;
  }

  .markdown-content code {
      background: rgba(255, 255, 255, 0.1);
      padding: 2px 4px;
      border-radius: 3px;
      font-family: monospace;
      font-size: 0.9em;
  }

  .markdown-content pre {
      background: rgba(0, 0, 0, 0.3);
      padding: 10px;
      border-radius: 6px;
      overflow-x: auto;
  }

  .markdown-content pre code {
      background: transparent;
      padding: 0;
  }

  .btn-close {

      color: white;
  }

  .card.color-gray {

      background: transparent
  }

  .card.color-blue {

      background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.05) 100%);
  }

  .card.color-green {

      background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
  }

  .card.color-purple {

      background: linear-gradient(135deg, rgba(111, 66, 193, 0.1) 0%, rgba(111, 66, 193, 0.05) 100%);
  }

  .card.color-orange {

      background: linear-gradient(135deg, rgba(253, 126, 20, 0.1) 0%, rgba(253, 126, 20, 0.05) 100%);
  }

  .card.color-red {

      background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
  }

  .btn-close {
      --bs-btn-close-color: white;
      color: white !important;
  }

  #searchResults {
      display: none;
  }

  .color-picker {
      display: flex;
      gap: 10px;
      margin: 10px 0;
  }

  .color-option {
      width: 30px;
      height: 30px;
      border-radius: 50%;

      border: 2px solid transparent;
      transition: all 0.2s ease;
  }

  .color-option:hover,
  .color-option.selected {
      border-color: #fff;
      transform: scale(1.1);
  }

  .color-option.default {
      background: #6c757d;
  }

  .color-option.blue {
      background: #007bff;
  }

  .color-option.green {
      background: #28a745;
  }

  .color-option.yellow {
      background: #ffc107;
  }

  .color-option.purple {
      background: #6f42c1;
  }

  .color-option.orange {
      background: #fd7e14;
  }

  .color-option.red {
      background: #dc3545;
  }


  .tags-container {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
  }

  .tag {
      background: rgb(114 114 114 / 20%);
      color: #a5a5a5;
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 13px;
      border: 1px solid rgb(118 118 118 / 30%);
  }

  .tag-input {
      border: 1px solid #ddd;
      border-radius: 4px;
      padding: 5px;
      font-size: 13px;
      min-width: 100px;
      margin-top: 15px;
      margin-bottom: 5px
  }

  .card-tags {
      margin-top: 0px;
      margin-bottom: -10px;

  }









  .card-menu-btn {
      margin-left: auto;
      opacity: 0.7;
  }

  .card-menu-btn:hover {
      opacity: 1;
  }


  .card.dragging {
      opacity: 0.5;
      transform: rotate(5deg);
  }

  .card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-right: -15px;
      margin-left: -15px;
      display: flex;
      align-items: center;
      gap: 8px;
      border-bottom: 0px solid var(--bs-card-border-color);
  }

  .card-title {
      font-weight: 500;
      font-size: 14px;
      flex: 1;
      margin-right: 10px;

      padding: 2px 4px;
      border-radius: 3px;
      color: var(--text-primary);
  }

  .card-title:hover {
      background-color: var(--bg-primary);
  }

  .card-nav {
      display: flex;
      align-items: center;
      gap: 5px;
      margin-right: 10px;
  }

  .nav-btn {
      background: var(--bg-primary);
      border: 1px solid var(--border-color);
      color: var(--text-secondary);
      padding: 2px 6px;
      border-radius: 3px;

      font-size: 10px;
  }

  .nav-btn:hover {
      background: var(--accent-color);
      color: white;
  }

  .nav-btn:disabled {
      opacity: 0.3;
      cursor: not-allowed;
  }

  .card-date {
      font-size: 12px;
      color: var(--text-secondary);
      white-space: nowrap;
  }

  .card-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
  }

  .card.expanded .card-content {
      max-height: 500px;
      background-color: rgba(0, 0, 0, 0.4);
      border-radius: 4px;
      padding: 8px;
      margin-top: 8px;
      overflow-y: auto;
  }

  .card.expanded .card-description {
      max-height: 300px;
      overflow-y: auto;
  }

  .card-actions {
      display: initial;
      gap: 5px;
      margin-top: 8px;
  }

  .subitems {
      margin-top: 10px;
      padding-top: 10px;
      margin-left: 10px;

  }

  .subitem {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 4px 0;
      font-size: 15px;
  }

  .subitem input[type="checkbox"] {
      margin: 0;
  }

  .subitem.completed {
      text-decoration: line-through;
      color: var(--text-secondary);
  }

  .subitem-text {
      flex: 1;

      padding: 2px 4px;
      border-radius: 3px;
      color: var(--text-primary);
  }

  .subitem-text:hover {
      background-color: var(--bg-primary);
  }

  .btn.disabled,
  .btn:disabled,
  fieldset:disabled .btn {

      background-color: #58585857;
  }



  .modal-content {
      background: rgba(20, 20, 20, 0.6) !important;
      backdrop-filter: blur(20px) !important;
      -webkit-backdrop-filter: blur(20px) !important;
      border: 1px solid var(--border-color) !important;
      color: var(--text-primary);
      border-top: 1px solid var(--border-color) !important;
  }

  .settings-sidebar {
      background: rgba(255, 255, 255, 0.02) !important;
      border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .settings-sidebar .nav-link {
      background: transparent !important;
      color: rgba(255, 255, 255, 0.6) !important;
      border-radius: 6px;
      margin: 4px 8px;
      transition: all 0.2s ease;
      text-align: left;
  }

  .settings-sidebar .nav-link:hover {
      background: rgba(255, 255, 255, 0.05) !important;
      color: white !important;
  }

  .settings-sidebar .nav-link.active {
      background: var(--accent-color) !important;
      color: white !important;
  }

  .settings-content {
      background: transparent !important;
  }

  .modal-header {
      border-bottom: 1px solid var(--border-color);
  }

  .modal-footer {
      border-top: 1px solid var(--border-color);
  }

  .form-control,
  .form-select {
      background: #0404043d;
      border: 1px solid var(--border-color);
      color: var(--text-primary);
  }

  .form-control:focus,
  .form-select:focus {
      background: #0404043d;
      border-color: var(--accent-color);
      color: var(--text-primary);
      box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  }

  .btn-primary {
      background: var(--accent-color);
      border-color: var(--accent-color);
  }

  .btn-success {
      background: var(--success-color);
      border-color: var(--success-color);
  }

  .btn-danger {
      background: var(--danger-color);
      border-color: var(--danger-color);
  }

  .btn-secondary {
      background: #00000052;

      border-color: var(--border-color);
      color: var(--text-primary);
  }

  .close {
      color: var(--text-primary);
  }

  .subitem-input {
      background: var(--bg-primary);
      border: 1px solid var(--border-color);
      color: var(--text-primary);
      padding: 5px 8px;
      border-radius: 4px;
      font-size: 12px;
      margin-top: 5px;
      background: #0404043d
  }

  .delete-board {
      background: transparent;
      border: none;
      color: white;
      padding: 4px 8px;
      border-radius: 4px;
      margin-right: -10px;
  }

  .inline-edit {
      background: var(--bg-primary);
      border: 1px solid var(--accent-color);
      color: var(--text-primary);
      border-radius: 3px;
      padding: 2px 4px;
      font-size: inherit;
      font-weight: inherit;
      width: 100%;
  }


  .colapseColumnButton {

      display: none;
  }



  .drag-over {
      background-color: rgba(0, 123, 255, 0.1);
      border-color: var(--accent-color);
  }

  @media (max-width: 768px) {

      .add-board-btn,
      .delete-board {
          opacity: 1;
          visibility: visible;
      }

      .column-header .btn {
          opacity: 1;
          visibility: visible;
      }

      .columns-container {
          flex-direction: column;
      }

      .column,
      .column-btn {
          min-width: 100%;
          max-width: 100%;
      }

      .card-actions,
      .card-menu-btn {
          opacity: 1;
          visibility: visible;
      }


  }


  @media (min-width: 769px) {

      .column {

          flex: 1;


      }

      .board-tab {
          max-width: 30%;
      }

      #columnsContainer>div:nth-child(1) {
          margin-left: 15px;
      }

      .column.collapsed {
          min-width: 40px;
          max-width: 40px;
          padding: 15px 5px;
      }

      .column.collapsed .column-header {
          flex-direction: column;
          border-bottom: none;
          margin-bottom: 0;
          padding-bottom: 0;
      }

      .column.collapsed .column-title {
          writing-mode: vertical-rl;
          text-orientation: mixed;
          font-size: 14px;
          white-space: nowrap;
      }

      .column.collapsed .column-actions {
          flex-direction: column;
          margin-top: 10px;
      }

      .column.collapsed .column-icon {
          display: none;
      }


      #columnsContainer {
          display: flex;
          height: 100%;
          /* overflow-x: auto;
          /* Allow horizontal scrolling for columns */
          /* overflow-y: hidden;  */

      }

      .column {
          flex-shrink: 0;
          height: 100%;
          overflow: hidden;
          display: flex;
          flex-direction: column;
      }

      .column-body {
          flex: 1;
          overflow-y: hidden;
          overflow-x: hidden;
      }

      .cards-container {
          height: 100%;

      }
  }







  /* Add this CSS to handle mobile column collapse behavior */


  /* Mobile behavior - columns stay straight, just hide body */
  @media (max-width: 768px) {
      .column.collapsed {
          width: 100%;
          /* Keep full width on mobile */
          transform: none;
          /* No rotation on mobile */
          transform-origin: none;
      }

      .kanban-board {
          flex: 1;
          padding: 20px;
          overflow-x: auto;
          overflow-y: auto;
      }

      .column.collapsed {

          padding: 0px;

      }

      .colapseColumnButton {

          display: block;
      }

      .column.collapsed .column-header {
          writing-mode: horizontal-tb;
          /* Keep horizontal text */
          text-orientation: mixed;
          display: flex;
          align-items: center;
          justify-content: space-between;
          padding: 10px;
          border-radius: 8px;
      }

      .column.collapsed .column-body {
          display: none;
          /* Hide body completely on mobile */
      }

      .column.expanded {
          width: 100%;
          transform: none;
      }

      .column.expanded .column-header {
          writing-mode: horizontal-tb;
          text-orientation: mixed;
          display: flex;
          align-items: center;
          justify-content: space-between;
      }
  }


  /* Template Grid Styles */
  .template-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
      gap: 15px;
      margin-top: 10px;
      max-height: 300px;
      overflow-y: auto;
      padding: 5px;
  }

  .template-card {
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 15px;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 10px;
  }

  .template-card:hover {
      transform: translateY(-2px);
      background: rgba(255, 255, 255, 0.05);
      border-color: var(--text-secondary);
  }

  .template-card.selected {
      border-color: var(--accent-color);
      background: rgba(0, 123, 255, 0.1);
      box-shadow: 0 0 0 2px var(--accent-color);
  }

  .template-icon {
      font-size: 24px;
      margin-bottom: 5px;
  }

  .template-name {
      font-size: 14px;
      font-weight: 500;
      color: var(--text-primary);
  }

  .template-desc {
      font-size: 11px;
      color: var(--text-secondary);
      display: none;
      /* Hidden for now to save space, can be shown if needed */
  }

  /* Tab Bar Right Actions */
  .tab-right-actions {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 10px;
  }

  /* Theme Selector */
  .theme-selector {
      display: flex;
      gap: 10px;
      margin-top: 5px;
  }

  .theme-option {
      cursor: pointer;
      text-align: center;
      opacity: 0.7;
      transition: all 0.2s;
  }

  .theme-option:hover {
      opacity: 1;
      transform: translateY(-2px);
  }

  .theme-option.active {
      opacity: 1;
      font-weight: bold;
  }

  .theme-preview {
      width: 50px;
      height: 50px;
      border-radius: 8px;
      margin-bottom: 5px;
      border: 2px solid transparent;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .theme-option.active .theme-preview {
      border-color: var(--accent-color);
      box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
  }

  /* Space Selector Dropdown */
  .space-dropdown-toggle {
      width: auto;
      min-width: 32px;
      height: 32px;
      padding: 0 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: white;
      font-weight: bold;
      gap: 6px;
  }

  .space-dropdown-toggle:hover,
  .space-dropdown-toggle:focus {
      background: rgba(255, 255, 255, 0.2);
      border-color: rgba(255, 255, 255, 0.3);
      color: white;
      box-shadow: none;
  }

  /* Ensure caret is shown */
  .space-dropdown-toggle::after {
      display: inline-block;
      margin-left: 0.255em;
      vertical-align: 0.255em;
      content: "";
      border-top: 0.3em solid;
      border-right: 0.3em solid transparent;
      border-bottom: 0;
      border-left: 0.3em solid transparent;
  }

  .space-initial {
      font-size: 14px;
      text-transform: uppercase;
  }

  .tab-right-actions .dropdown-menu {
      position: absolute;
      /* Ensure absolute positioning */
      background: var(--glass-bg);
      backdrop-filter: blur(10px);
      border: 1px solid var(--glass-border);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
      z-index: 1000;
  }

  .tab-right-actions .dropdown-item {
      color: var(--text-color);
  }

  .tab-right-actions .dropdown-item:hover {
      background: rgba(255, 255, 255, 0.1);
      color: white;
  }

  .tab-right-actions .dropdown-item.active {
      background: var(--accent-color);
      color: white;
  }

  .tab-right-actions .dropdown-divider {
      border-top-color: rgba(255, 255, 255, 0.1);
  }

  .search-btn {
      border-radius: 50%;
      width: 32px;
      height: 32px;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
  }

  .search-btn:hover {
      background-color: rgba(255, 255, 255, 0.2);
      transform: scale(1.1);
  }

  /* Card Colors */

  .card.color-default {}

  .card.color-red {

      background: rgba(255, 95, 95, 0.1);
  }

  .card.color-green {

      background: rgba(76, 175, 80, 0.1);
  }

  .card.color-blue {

      background: rgba(33, 150, 243, 0.1);
  }

  .card.color-yellow {

      background: rgba(255, 235, 59, 0.1);
  }

  .card.color-purple {

      background: rgba(156, 39, 176, 0.1);
  }

  .card.color-orange {

      background: rgba(255, 152, 0, 0.1);
  }

  /* Filter Dropdown */
  .filter-dropdown-menu {
      width: 380px;
      min-height: 200px;
      max-height: 500px;
      overflow-y: auto;
      padding: 15px;
      background: white;
      backdrop-filter: none;
      border: 1px solid var(--glass-border);
  }

  .color-filter-option {
      display: flex;
      align-items: center;
      padding: 8px;
      cursor: pointer;
      border-radius: 4px;
      transition: background 0.2s;
      color: var(--text-primary);
  }

  .color-filter-option:hover {
      background: rgba(255, 255, 255, 0.1);
  }

  .color-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      margin-right: 10px;
      border: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* Card selection styling */
  .card.card-selected {
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5), 2px 2px 4px rgba(0,0,0,0.3);
    z-index: 10;
  }

  .column {
      min-width: var(--column-width, 320px);
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(10px);
      border-radius: 12px;
      margin-right: 15px;
      display: flex;
      flex-direction: column;
      max-height: 100%;
      border: 1px solid rgba(255, 255, 255, 0.1);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  /* No column background filter */
  body.no-column-filter .column {
      backdrop-filter: none;
      background: rgba(0, 0, 0, 0.3);
  }

  /* Board Backgrounds */
  .kanban-board.board-bg-green {
      background: linear-gradient(135deg, #0f2e18, #1b4d2e);
  }

  .kanban-board.board-bg-blue {
      background: linear-gradient(135deg, #0f182e, #1b2e4d);
  }

  .kanban-board.board-bg-red {
      background: linear-gradient(135deg, #2e0f0f, #4d1b1b);
  }

  .kanban-board.board-bg-yellow {
      background: linear-gradient(135deg, #2e2e0f, #4d4d1b);
  }

  .kanban-board.board-bg-purple {
      background: linear-gradient(135deg, #1a0f2e, #2d1b4d);
  }

  /* Dark Menus */
  .dropdown-menu {
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      color: var(--text-primary);
  }

  .dropdown-item {
      color: var(--text-primary);
  }

  .dropdown-item:hover {
      background: var(--bg-primary);
      color: var(--text-primary);
  }

  /* Search Modal Dark Theme */
  #searchModal .modal-content {
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      color: var(--text-primary);
  }

  #searchModal .list-group-item {
      background: var(--bg-primary);
      border-color: var(--border-color);
      color: var(--text-primary);
  }

  #searchModal .list-group-item:hover {
      background: var(--accent-color);
      color: white;
  }

  #searchModal .list-group-item .text-muted {
      color: var(--text-secondary) !important;
  }

  #searchModal .list-group-item:hover .text-muted {
      color: rgba(255, 255, 255, 0.8) !important;
  }

  .plugin-manager-modal {
      background: rgba(15, 23, 42, 0.97);
      backdrop-filter: blur(24px);
      border: 1px solid rgba(20, 184, 166, 0.28);
      color: #e2e8f0;
  }

  .plugin-manager-header-icon {
      color: #2dd4bf;
      font-size: 1.1rem;
  }

  .plugin-manager-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 18px;
  }

  .plugin-manager-section-title {
      color: #f8fafc;
      font-size: 0.8rem;
      font-weight: 700;
      margin-bottom: 9px;
      text-transform: uppercase;
  }

  .plugin-manager-list {
      display: grid;
      gap: 10px;
  }

  .plugin-manager-row {
      align-items: flex-start;
      background: rgba(255, 255, 255, 0.045);
      border: 1px solid rgba(255, 255, 255, 0.09);
      border-radius: 8px;
      display: grid;
      gap: 12px;
      grid-template-columns: 38px minmax(0, 1fr) auto;
      padding: 12px;
  }

  .plugin-manager-icon {
      align-items: center;
      background: rgba(20, 184, 166, 0.16);
      border: 1px solid rgba(45, 212, 191, 0.32);
      border-radius: 8px;
      color: #5eead4;
      display: flex;
      height: 38px;
      justify-content: center;
      width: 38px;
  }

  .plugin-manager-main {
      min-width: 0;
  }

  .plugin-manager-title-line {
      align-items: center;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 4px;
  }

  .plugin-manager-title {
      color: #f8fafc;
      font-size: 0.95rem;
      font-weight: 700;
  }

  .plugin-manager-badge {
      background: rgba(148, 163, 184, 0.16);
      border: 1px solid rgba(148, 163, 184, 0.22);
      border-radius: 999px;
      color: #cbd5e1;
      font-size: 0.68rem;
      font-weight: 700;
      padding: 2px 7px;
  }

  .plugin-manager-badge.is-enabled {
      background: rgba(34, 197, 94, 0.16);
      border-color: rgba(34, 197, 94, 0.28);
      color: #86efac;
  }

  .plugin-manager-description {
      color: #94a3b8;
      font-size: 0.78rem;
      line-height: 1.45;
      margin-bottom: 9px;
  }

  .plugin-manager-permissions {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
  }

  .plugin-permission-pill {
      background: rgba(255, 255, 255, 0.055);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 999px;
      color: #cbd5e1;
      font-size: 0.68rem;
      padding: 2px 7px;
  }

  .plugin-manager-actions {
      display: flex;
      gap: 8px;
      justify-content: flex-end;
  }

  .plugin-manager-btn {
      align-items: center;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 7px;
      color: #e2e8f0;
      display: inline-flex;
      font-size: 0.78rem;
      font-weight: 700;
      gap: 6px;
      min-height: 34px;
      padding: 7px 10px;
  }

  .plugin-manager-btn.primary {
      background: rgba(20, 184, 166, 0.18);
      border-color: rgba(45, 212, 191, 0.34);
      color: #ccfbf1;
  }

  .plugin-manager-empty,
  .plugin-manager-status {
      color: #94a3b8;
      font-size: 0.78rem;
  }

  .plugin-manager-empty {
      border: 1px dashed rgba(148, 163, 184, 0.24);
      border-radius: 8px;
      padding: 12px;
  }

  .plugin-manager-status {
      margin-top: 12px;
      min-height: 18px;
  }

  @media (max-width: 620px) {
      .plugin-manager-row {
          grid-template-columns: 34px minmax(0, 1fr);
      }

      .plugin-manager-actions {
          grid-column: 1 / -1;
          justify-content: stretch;
      }

      .plugin-manager-btn {
          justify-content: center;
          width: 100%;
      }
  }

  /* Card Highlight Animation */
  @keyframes highlightPulse {
      0% {
          box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0.7);
          transform: scale(1);
      }

      50% {
          box-shadow: 0 0 0 10px rgba(var(--accent-color-rgb), 0);
          transform: scale(1.02);
      }

      100% {
          box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0);
          transform: scale(1);
      }
  }

  .highlight-card {
      animation: highlightPulse 2s ease-out;
      border: 2px solid var(--accent-color) !important;
      z-index: 10;
  }

  /* Filter Dropdown Tabs */
  .filter-dropdown-menu {
      width: 380px;
      padding: 0;
      overflow: hidden;
  }

  .filter-tabs {
      display: flex;
      background: rgba(255, 255, 255, 0.05);
      border-bottom: 1px solid var(--border-color);
  }

  .filter-tab {
      flex: 1;
      padding: 10px;
      text-align: center;
      cursor: pointer;
      font-size: 15px;
      color: var(--text-secondary);
      transition: all 0.2s;
      border-bottom: 2px solid transparent;
  }

  .filter-tab:hover {
      background: rgba(255, 255, 255, 0.1);
      color: var(--text-primary);
  }

  .filter-tab.active {
      color: var(--text-primary);
      border-bottom-color: var(--accent-color);
      background: rgba(255, 255, 255, 0.1);
  }

  .filter-content {
      padding: 10px;
      max-height: 300px;
      overflow-y: auto;
  }

  .filter-tab-content {
      display: none;
  }

  .filter-tab-content.active {
      display: block;
  }

  /* Date Filter Options */
  .filter-date-option {
      display: flex;
      align-items: center;
      padding: 8px;
      cursor: pointer;
      border-radius: 4px;
      transition: background 0.2s;
  }

  .filter-date-option:hover {
      background: rgba(255, 255, 255, 0.1);
  }

  .filter-date-option input[type="radio"] {
      margin-right: 10px;
      accent-color: var(--accent-color);
  }

  .custom-date-inputs {
      margin-top: 10px;
      padding-left: 25px;
      display: none;
  }

  .custom-date-inputs.show {
      display: block;
  }

  .custom-date-inputs input {
      width: 100%;
      margin-bottom: 5px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      color: var(--text-primary);
      padding: 5px;
      border-radius: 4px;
  }

  /* Favorite Icon Active State */
  .card-favorite-toggle.text-warning i {
      font-weight: 900;
      /* Ensure solid style for fas */
      color: #ffc107;
      /* Bootstrap warning color */
  }

  /* Card Description Color */
  .card-description {
      color: white !important;
  }

  /* Active Card Highlight */
  .card.active-card {
      border: 2px solid white !important;
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
      /* transform: scale(1.02);  REMOVED: No more scale animation on click */
      transition: all 0.3s ease;
      z-index: 100;
  }

  /* Mobile adjustments */
  @media (max-width: 768px) {
      #spaceDropdownMenu {
          display: none !important;
      }

      /* Ensure favorite button is visible on mobile */
      .card-favorite-toggle {
          opacity: 1 !important;
          visibility: visible !important;
      }
  }

  /* Ensure timer text is visible */
  .card-timer-text {
      display: inline-block;
      color: white !important;
  }

  /* Ensure favorite button is visible */
  .card-favorite-toggle {
      opacity: 1;
      visibility: visible;
  }

  /* Disable all global animations */
  * {
      transition: none !important;
      animation: none !important;
  }

  /* Input group text styling */
  .input-group-text {
      background: transparent !important;
      color: white !important;
      border: 1px solid var(--border-color) !important;
  }


/* ══════════════════════════════════════════════════════════════
   UPGRADE / BILLING MODAL
   ══════════════════════════════════════════════════════════════ */

/* ── Overlay ── */
.upgrade-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.upgrade-modal-overlay.upgrade-modal-visible {
    opacity: 1;
}

/* ── Panel ── */
.upgrade-modal-panel {
    position: relative;
    background: linear-gradient(160deg, #141427 0%, #1c1c35 60%, #12122a 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05) inset;
    max-width: 880px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 0;
    transform: translateY(20px);
    transition: transform 0.28s cubic-bezier(.34,1.56,.64,1);
}

.upgrade-modal-overlay.upgrade-modal-visible .upgrade-modal-panel {
    transform: translateY(0);
}

/* ── Close ── */
.upgrade-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}

.upgrade-modal-close:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

/* ── Hero Header ── */
.upgrade-modal-hero {
    position: relative;
    padding: 40px 40px 32px;
    overflow: hidden;
    text-align: center;
}

.upgrade-hero-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 220px;
    background: radial-gradient(ellipse, rgba(130,80,255,0.28) 0%, transparent 70%);
    pointer-events: none;
}

.upgrade-hero-content {
    position: relative;
}

.upgrade-reason-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,165,0,0.12);
    border: 1px solid rgba(255,165,0,0.3);
    color: #ffc857;
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
    font-weight: 500;
}

.upgrade-reason-icon {
    font-size: 15px;
}

.upgrade-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.upgrade-gradient-text {
    background: linear-gradient(90deg, #a78bfa, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.upgrade-hero-sub {
    color: rgba(255,255,255,0.55);
    font-size: 15px;
    margin: 0;
}

/* ── Plans Grid ── */
.upgrade-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 32px 24px;
}

@media (max-width: 680px) {
    .upgrade-plans-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 20px;
    }
    .upgrade-modal-hero {
        padding: 28px 20px 20px;
    }
    .upgrade-hero-title {
        font-size: 24px;
    }
}

/* ── Plan Card Base ── */
.upgrade-plan-card {
    position: relative;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.upgrade-plan-card:hover {
    border-color: rgba(255,255,255,0.22);
    transform: translateY(-3px);
}

.upgrade-plan-current {
    opacity: 0.55;
    pointer-events: none;
}

/* ── Free Card ── */
.upgrade-plan-free .upgrade-plan-header h3 {
    color: rgba(255,255,255,0.7);
}

/* ── Premium Card ── */
.upgrade-plan-premium {
    border-color: rgba(167,139,250,0.4);
    box-shadow: 0 0 30px rgba(130,80,255,0.12);
}

.upgrade-plan-premium:hover {
    border-color: rgba(167,139,250,0.7);
    box-shadow: 0 0 40px rgba(130,80,255,0.2);
}

.upgrade-plan-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #7c3aed, #4f46e5);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* ── Pro Card ── */
.upgrade-plan-pro {
    border-color: rgba(52,211,153,0.35);
    box-shadow: 0 0 30px rgba(16,185,129,0.08);
}

.upgrade-plan-pro:hover {
    border-color: rgba(52,211,153,0.6);
    box-shadow: 0 0 40px rgba(16,185,129,0.15);
}

/* ── Plan Header ── */
.upgrade-plan-header {
    text-align: center;
}

.upgrade-plan-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 6px;
}

.upgrade-plan-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.upgrade-plan-price {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.upgrade-plan-price .upgrade-plan-period {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
}

.upgrade-plan-trial {
    font-size: 12px;
    color: rgba(52,211,153,0.9);
    margin-top: 5px;
    font-weight: 500;
}

/* ── Features List ── */
.upgrade-plan-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.upgrade-plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.upgrade-plan-features li i.fa-check {
    color: #34d399;
    font-size: 11px;
    flex-shrink: 0;
}

.upgrade-feature-no {
    color: rgba(255,255,255,0.3) !important;
    text-decoration: line-through;
}

.upgrade-feature-no i.fa-times {
    color: rgba(255,100,100,0.5) !important;
    font-size: 11px;
    flex-shrink: 0;
}

/* ── Plan Actions ── */
.upgrade-plan-action {
    margin-top: auto;
}

.upgrade-plan-action-pro {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upgrade-pro-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Buttons */
.upgrade-btn-current {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.35);
    border-radius: 10px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: not-allowed;
}

.upgrade-btn-premium {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(124,58,237,0.5);
}

.upgrade-btn-premium:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(124,58,237,0.65);
}

.upgrade-btn-pro {
    width: 100%;
    background: rgba(52,211,153,0.12);
    border: 1px solid rgba(52,211,153,0.4);
    color: #34d399;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.upgrade-btn-pro:hover {
    background: rgba(52,211,153,0.22);
    box-shadow: 0 4px 16px rgba(52,211,153,0.25);
    transform: translateY(-1px);
}

.upgrade-btn-pro-lifetime {
    width: 100%;
    background: linear-gradient(135deg, #065f46, #047857);
    border: 1px solid rgba(52,211,153,0.5);
    color: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(5,150,105,0.4);
}

.upgrade-btn-pro-lifetime:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ── Footer ── */
.upgrade-modal-footer {
    padding: 16px 32px 28px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.upgrade-link-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    cursor: pointer;
    padding: 2px 4px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.upgrade-link-btn:hover {
    color: rgba(255,255,255,0.8);
}

.upgrade-footer-divider {
    color: rgba(255,255,255,0.2);
    font-size: 13px;
}

.upgrade-footer-secure {
    color: rgba(255,255,255,0.3);
    font-size: 12px;
}

/* ── Split Header Styles ── */
.app-header.split-header {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    background: transparent !important;
}

.app-header.split-header .header-actions {
    order: 1;
    height: 42px;
    padding: 5px 20px;
    justify-content: flex-start;
    width: 100%;
}

.app-header.split-header .header-actions-right-start {
    margin-left: auto !important;
}

.app-header.split-header .board-tabs {
    order: 2;
    padding: 10px 20px;
    width: 100%;
    margin-right: 0;
}

.app-header.split-header .board-switcher-btn {
    background: transparent !important;
    border: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-right: 15px !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.app-header.split-header .board-switcher-btn:hover {
    background: transparent !important;
    color: #fff !important;
}

/* Ensure header buttons in split-header top bar are properly vertically centered */
.app-header.split-header .header-actions > * {
    align-self: center;
}

/* ── Right Bar Icon Customize Items ── */
.icon-customize-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.icon-customize-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.icon-customize-item .btn {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.15s ease;
}

.icon-customize-item .btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.icon-customize-item .btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ── Board Switcher Dropdown Style ── */
.board-switcher-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.board-switcher-btn:hover,
.board-switcher-btn:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    box-shadow: none !important;
}

.board-switcher-btn::after {
    display: none !important; /* Hide caret on mobile */
}

.board-initial {
    font-size: 14px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .board-initial {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .board-switcher-btn {
        width: auto !important;
        min-width: 32px !important;
        height: 32px !important;
        padding: 0 12px !important;
        border-radius: 16px !important;
        gap: 6px;
    }

    .board-switcher-btn::after {
        display: inline-block !important;
        margin-left: 0.255em;
        vertical-align: 0.255em;
        content: "";
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
    }
}
