﻿        :root {
            /* --- PALETA PROFESSIONAL CLEAN --- */
            /* Base */
            --bg-app: #F9FAFB;
            /* Fundo geral levemente off-white */
            --bg-surface: #FFFFFF;
            /* Cartões e Paineis */
            --bg-subtle: #F3F4F6;
            /* Colunas e inputs inativos */

            /* Texto */
            --text-primary: #111827;
            /* Quase preto, contraste forte */
            --text-secondary: #6B7280;
            /* Cinza médio para metadados */
            --text-tertiary: #9CA3AF;
            /* Ícones inativos */

            /* Acentos */
            --accent: #2563EB;
            /* Azul Royal profissional */
            --accent-soft: #EFF6FF;
            /* Fundo azul muito claro */
            --danger: #EF4444;
            --success: #10B981;

            /* Bordas e Linhas */
            --border-light: #E5E7EB;
            --border-focus: #2563EB;

            /* UI Utils */
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 16px;

            --modal-overlay: rgba(17, 24, 39, 0.4);
            /* Backdrop escuro neutro */
            --font-main: 'Geologica', sans-serif;
        }

        /* --- DARK MODE PROFESSIONAL --- */
        html.dark-mode,
        html.dark-mode * {
            color-scheme: dark;
        }

        html.dark-mode {
            --bg-app: #0B0F19;
            /* Preto azulado profundo */
            --bg-surface: #151B2B;
            /* Superfície elevada */
            --bg-subtle: #1E2538;
            /* Colunas */

            --text-primary: #F9FAFB;
            --text-secondary: #9CA3AF;
            --text-tertiary: #4B5563;

            --accent: #3B82F6;
            --accent-soft: rgba(59, 130, 246, 0.15);

            --border-light: #2D3748;
            --modal-overlay: rgba(0, 0, 0, 0.75);
        }

        .badge-soon {
            animation: pulse-badge 2s infinite;
        }

        @keyframes pulse-badge {
            0% {
                box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
            }

            70% {
                box-shadow: 0 0 0 6px rgba(37, 99, 235, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
            }
        }

        html.dark-mode .badge-soon {
            animation: pulse-badge-dark 2s infinite;
        }

        @keyframes pulse-badge-dark {
            0% {
                box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
            }

            70% {
                box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
            }
        }

        /*
         * MODAL HEADERS - Estilos opcionais para modais que usam .modal-header
         */
        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            border-bottom: 1px solid var(--border-light);
            margin-bottom: 20px;
        }

        /*
         * PAGE HEADERS - Altura padronizada para todas as páginas
         * Baseado na altura visual da header do modal de edição de tarefa (52px)
         */
        .top-bar {
            height: 56px;
            min-height: 56px;
            display: flex;
            align-items: center;
            padding: 0 24px;
        }

        .dash-header {
            height: 56px;
            min-height: 56px;
            display: flex;
            align-items: center;
            padding: 0 24px;
        }

        .modal-title {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
        }

        .modal-title .material-icons-round {
            font-size: 22px;
            color: var(--accent);
        }

        .btn-close-modal {
            width: 36px;
            height: 36px;
            border-radius: var(--radius-md);
            border: 1px solid var(--border-light);
            background: var(--bg-surface);
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-close-modal:hover {
            background: var(--bg-subtle);
            color: var(--danger);
            border-color: var(--danger);
        }

        .btn-close-modal .material-icons-round {
            font-size: 20px;
        }

        /* Modal Box padrão */
        .modal-box {
            background: var(--bg-surface);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-lg);
            padding: 24px;
            max-width: 90%;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            outline: none;
        }

        /* --- CUSTOM SCROLLBAR - ELEGANTE E DISCRETO --- */
        /* Para Firefox */
        * {
            scrollbar-width: thin;
            scrollbar-color: rgba(107, 114, 128, 0.4) transparent;
        }

        /* Para Chrome, Edge, Safari */
        ::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(107, 114, 128, 0.3);
            border-radius: 5px;
            transition: background 0.3s ease;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(107, 114, 128, 0.6);
        }

        /* Dark mode scrollbar */
        body.dark-mode ::-webkit-scrollbar-thumb {
            background: rgba(75, 85, 99, 0.3);
        }

        body.dark-mode ::-webkit-scrollbar-thumb:hover {
            background: rgba(75, 85, 99, 0.6);
        }

        /* Dark mode glassmorphism para board-meta-items */
        body.dark-mode .board-meta-item {
            background: rgba(0, 0, 0, 0.3);
            border-color: rgba(255, 255, 255, 0.1);
        }

        /* Dark mode gradiente para board-card-cover */
        body.dark-mode .board-card-cover::after {
            background: linear-gradient(to top, rgba(21, 27, 43, 1) 0%, rgba(21, 27, 43, 0) 100%);
        }

        /* Dark mode gradientes */
        body.dark-mode .modal-task-header-overlay {
            background: linear-gradient(to bottom, rgba(21, 27, 43, 0.2) 0%, rgba(21, 27, 43, 0.2) 20%, rgba(21, 27, 43, 1) 100%);
        }

        body.dark-mode .task-cover::before {
            background: linear-gradient(to bottom, rgba(21, 27, 43, 0.2) 0%, rgba(21, 27, 43, 1) 100%);
        }

        /* Dark mode estilos do modal de editar projeto */
        body.dark-mode .modal-edit-board-title {
            color: white;
        }

        body.dark-mode .modal-edit-board-header-bg {
            background-color: var(--bg-subtle);
        }

        /* Dark mode estilos do modal task */
        body.dark-mode .modal-task-title {
            color: white;
        }

        body.dark-mode .modal-task-title:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        body.dark-mode .modal-task-title:focus {
            background: rgba(255, 255, 255, 0.15);
        }

        /* Dark mode botões do kanban */
        body.dark-mode .task-actions {
            background: transparent;
            backdrop-filter: none;
        }

        body.dark-mode .task-card:hover .task-actions {
            opacity: 1;
        }

        body.dark-mode .task-card.has-cover:hover .task-actions {
            background: transparent;
            backdrop-filter: none;
        }

        body.dark-mode .btn-icon-task {
            color: var(--text-secondary);
            background: var(--bg-subtle);
            border: 1px solid var(--border-light);
            text-shadow: none;
        }

        body.dark-mode .btn-icon-task:hover {
            color: var(--accent);
            border-color: var(--accent);
        }

        body.dark-mode .btn-icon-del {
            color: var(--text-secondary);
            background: var(--bg-subtle);
            border: 1px solid var(--border-light);
            text-shadow: none;
        }

        body.dark-mode .btn-icon-del:hover {
            color: var(--danger);
            border-color: var(--danger);
        }

        /* Dark mode botão fechar */
        body.dark-mode .btn-close-modal {
            background: var(--bg-app);
            color: var(--text-secondary);
            border: 1px solid var(--border-light);
        }

        body.dark-mode .btn-close-modal:hover {
            color: var(--danger);
            border-color: var(--danger);
        }

        body {
            font-family: var(--font-main);
            background: var(--bg-app);
            color: var(--text-primary);
            height: 100vh;
            overflow: hidden;
            user-select: none;
            -webkit-font-smoothing: antialiased;
            transition: background 0.3s ease, color 0.3s ease;
        }

        /* --- COMPONENTES UI GERAIS --- */
        .btn-reset {
            background: none;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            transition: all 0.2s;
            border-radius: var(--radius-sm);
        }

        .btn-reset:hover {
            color: var(--text-primary);
            background: var(--bg-subtle);
        }

        .view-mode-toggle {
            display: inline-flex;
            align-items: center;
            padding: 4px;
            gap: 4px;
            border-radius: var(--radius-md);
            border: 1px solid var(--border-light);
            background: var(--bg-surface);
            height: 48px;
        }

        body.dark-mode .view-mode-toggle {
            background: #151B2B;
            border-color: rgba(255, 255, 255, 0.08);
        }

        .view-mode-toggle button {
            border: 1px solid transparent;
            background: transparent;
            color: var(--text-secondary);
            font-weight: 500;
            padding: 8px 14px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            height: 40px;
        }

        .view-mode-toggle button:hover:not(.active) {
            color: var(--accent);
            border-color: var(--accent-soft);
            background: var(--accent-soft);
        }

        .view-mode-toggle button.active {
            background: var(--accent-soft);
            color: var(--accent);
            border-color: var(--accent);
        }

        .view-mode-toggle button:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

        .collab-presence-tray {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-height: 48px;
            padding: 4px 0;
            transition: opacity 0.2s ease;
        }

        .collab-presence-tray[data-hidden="true"] {
            display: none;
        }

        .collab-presence-tray .presence-chip {
            position: relative;
            width: 36px;
            height: 36px;
            border-radius: 999px;
            border: 1px solid var(--border-light);
            background: var(--bg-surface);
            color: var(--text-primary);
            font-weight: 600;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            overflow: hidden;
        }

        .collab-presence-tray .presence-chip span {
            position: relative;
            z-index: 1;
        }

        .collab-presence-tray .presence-chip::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: var(--presence-color, var(--accent));
            opacity: 0.15;
            transition: opacity 0.2s ease;
        }

        .collab-presence-tray .presence-chip:hover::before {
            opacity: 0.25;
        }

        .collab-presence-tray .presence-chip:hover {
            border-color: var(--presence-color, var(--accent));
            color: var(--presence-color, var(--accent));
        }

        .collab-presence-tray .presence-chip.following {
            border-color: var(--presence-color, var(--accent));
            color: var(--presence-color, var(--accent));
        }

        .collab-presence-tray .presence-chip.following::before {
            opacity: 0.35;
        }

        .collab-presence-tray .presence-info {
            color: var(--text-secondary);
            font-size: 0.85rem;
            white-space: nowrap;
        }

        .collab-presence-tray .presence-empty {
            color: var(--text-tertiary);
            font-size: 0.85rem;
            white-space: nowrap;
        }

        body.dark-mode .collab-presence-tray .presence-chip {
            border-color: rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.04);
            color: rgba(249, 250, 251, 0.92);
        }

        body.dark-mode .collab-presence-tray .presence-chip.following {
            border-color: var(--presence-color, var(--accent));
        }

        body.dark-mode .collab-presence-tray .presence-info,
        body.dark-mode .collab-presence-tray .presence-empty {
            color: rgba(249, 250, 251, 0.6);
        }

        .icon-sm {
            font-size: 18px;
        }

        .icon-md {
            font-size: 24px;
        }

        .hidden {
            display: none !important;
        }

        input,
        textarea {
            font-family: var(--font-main);
            color: var(--text-primary);
        }

        button,
        select,
        option {
            font-family: var(--font-main);
        }

        /* --- SCROLLBAR DINÂMICO --- */
        .dashboard-content,
        .kanban-container,
        .modal-task-content {
            scroll-behavior: smooth;
        }

        /* Estado padrão: scrollbar discreto */
        .dashboard-content::-webkit-scrollbar-thumb,
        .kanban-container::-webkit-scrollbar-thumb,
        .modal-task-content::-webkit-scrollbar-thumb {
            background: rgba(107, 114, 128, 0.25);
            transition: background 0.3s ease;
        }

        /* Estado ao fazer scroll: scrollbar mais visível */
        .dashboard-content.scrolling::-webkit-scrollbar-thumb,
        .kanban-container.scrolling::-webkit-scrollbar-thumb,
        .modal-task-content.scrolling::-webkit-scrollbar-thumb {
            background: rgba(107, 114, 128, 0.5);
        }

        .dashboard-content.scrolling::-webkit-scrollbar-thumb:hover,
        .kanban-container.scrolling::-webkit-scrollbar-thumb:hover,
        .modal-task-content.scrolling::-webkit-scrollbar-thumb:hover {
            background: rgba(107, 114, 128, 0.7);
        }

        /* Dark mode - scrollbar durante scroll */
        body.dark-mode .dashboard-content.scrolling::-webkit-scrollbar-thumb,
        body.dark-mode .kanban-container.scrolling::-webkit-scrollbar-thumb,
        body.dark-mode .modal-task-content.scrolling::-webkit-scrollbar-thumb {
            background: rgba(75, 85, 99, 0.5);
        }

        body.dark-mode .dashboard-content.scrolling::-webkit-scrollbar-thumb:hover,
        body.dark-mode .kanban-container.scrolling::-webkit-scrollbar-thumb:hover,
        body.dark-mode .modal-task-content.scrolling::-webkit-scrollbar-thumb:hover {
            background: rgba(75, 85, 99, 0.7);
        }

        /* --- MODALS --- */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--modal-overlay);
            z-index: 999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s;
            backdrop-filter: blur(2px);
        }

        .modal-overlay.open {
            opacity: 1;
            pointer-events: all;
        }

        #modal-edit-task-cover {
            z-index: 1001;
        }

        /* Modal de deletar permanentemente fica por cima */
        #modal-delete-permanent {
            z-index: 1001;
        }

        #modal-delete-permanent.open {
            z-index: 1001;
        }

        .modal-box {
            background: var(--bg-surface);
            padding: 24px;
            border-radius: var(--radius-lg);
            width: 90%;
            max-width: 440px;
            border: 1px solid var(--border-light);
            transform: scale(0.95);
            transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .modal-box.modal-task-layout {
            max-width: 1100px;
            width: 95%;
            padding: 0;
            display: flex;
            flex-direction: column;
            max-height: 90vh;
            min-height: 0;
            overflow: hidden;
        }

        .modal-overlay.open .modal-box {
            transform: scale(1);
        }

        .modal-share-box {
            max-width: 520px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .share-section {
            display: grid;
            gap: 14px;
            background: var(--bg-subtle);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            padding: 18px;
        }

        .share-label {
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: var(--text-secondary);
        }

        .share-owner-email {
            font-weight: 600;
            color: var(--text-primary);
        }

        .collaborators-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 8px;
        }

        .collaborator-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 10px 12px;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-sm);
            background: var(--bg-surface);
        }

        .collaborator-item .collaborator-email {
            font-size: 0.95rem;
            color: var(--text-primary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .collaborator-item .collaborator-meta {
            font-size: 0.75rem;
            color: var(--text-secondary);
        }

        .collaborator-remove {
            border: 1px solid var(--border-light);
            border-radius: var(--radius-sm);
            padding: 6px 10px;
            font-size: 0.85rem;
            color: var(--text-secondary);
            background: transparent;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .collaborator-remove:hover {
            border-color: var(--danger);
            color: var(--danger);
        }

        .collaborator-remove:focus-visible {
            outline: 2px solid var(--danger);
            outline-offset: 2px;
        }

        .collaborators-empty {
            padding: 12px;
            border-radius: var(--radius-sm);
            background: var(--bg-surface);
            border: 1px dashed var(--border-light);
            color: var(--text-secondary);
            font-size: 0.9rem;
            text-align: center;
        }

        .collaborator-form {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .collaborator-form input[type="email"] {
            flex: 1;
            height: 44px;
            padding: 0 14px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-light);
            background: var(--bg-surface);
            transition: all 0.2s ease;
        }

        .collaborator-form input[type="email"]:focus {
            border-color: var(--accent);
        }

        .share-feedback {
            min-height: 20px;
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .share-feedback.error {
            color: var(--danger);
        }

        .share-feedback.success {
            color: var(--success);
        }

        .share-note {
            font-size: 0.78rem;
            color: var(--text-secondary);
        }

        /* Estilos para input do modal de capa */
        #modal-cover-url-input {
            border-color: var(--border-light) !important;
            transition: all 0.2s ease !important;
        }

        #modal-cover-url-input:focus {
            border-color: var(--accent) !important;
        }

        /* === FULL-SCREEN TASK VIEW (Notion-Style) === */

        #view-task {
            position: fixed;
            inset: 0;
            z-index: 1000;
            background: var(--bg-app);
            display: none;
            flex-direction: column;
        }

        #view-task.active {
            display: flex;
        }

        /* Top Bar */
        .task-view-topbar {
            position: sticky;
            top: 0;
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding: 12px 24px;
            background: var(--bg-surface);
            border-bottom: 1px solid var(--border-light);
            flex-shrink: 0;
        }

        .task-view-back-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: transparent;
            border: none;
            border-radius: var(--radius-md);
            color: var(--text-secondary);
            font-size: 0.95rem;
            font-weight: 500;
            font-family: var(--font-main);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .task-view-back-btn:hover {
            background: var(--bg-subtle);
            color: var(--text-primary);
        }

        .task-view-back-btn .material-icons-round {
            font-size: 20px;
        }

        .task-view-topbar-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .task-view-topbar-actions .btn-primary {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .task-view-topbar-actions .btn-primary .material-icons-round {
            font-size: 18px;
        }

        /* Scrollable Content */
        .task-view-scroll {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
        }

        /* Hide scrollbar but keep functionality */
        .task-view-scroll::-webkit-scrollbar {
            width: 0;
            display: none;
        }

        .task-view-scroll {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        /* Cover Section */
        .task-view-cover-wrapper {
            position: relative;
            width: 100%;
            min-height: 80px;
            overflow: visible;
            display: flex;
            align-items: center;
            padding: 24px 24px;
            margin-bottom: 12px;
        }

        .task-view-cover-wrapper.has-cover {
            height: 280px;
            min-height: 280px;
            overflow: hidden;
            padding: 0;
            margin-bottom: 0;
        }

        /* CHECKBOXES REDONDOS - Estilo global */
        input[type="checkbox"] {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            border: 2px solid var(--border-light);
            border-radius: 50%;
            background: var(--bg-surface);
            cursor: pointer;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        input[type="checkbox"]:checked {
            background: var(--accent);
            border-color: var(--accent);
        }

        input[type="checkbox"]:checked::after {
            content: '';
            display: block;
            width: 6px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg) translate(-1px, -1px);
            margin-left: 4px;
            margin-top: 1px;
        }

        input[type="checkbox"]:hover {
            border-color: var(--accent);
        }

        .task-view-cover-bg {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            background-color: var(--bg-subtle);
        }

        .task-view-cover-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom,
                    transparent 0%,
                    transparent 40%,
                    var(--bg-app) 100%);
            pointer-events: none;
        }

        .task-view-cover-btn {
            position: relative;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: var(--bg-surface);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            color: var(--text-secondary);
            font-size: 0.9rem;
            font-weight: 500;
            font-family: var(--font-main);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .task-view-cover-wrapper.has-cover .task-view-cover-btn {
            position: absolute;
            top: 16px;
            left: 24px;
        }

        .task-view-cover-btn:hover {
            background: var(--bg-subtle);
            color: var(--text-primary);
            border-color: var(--accent);
        }

        .task-view-cover-btn .material-icons-round {
            font-size: 20px;
        }

        /* Has cover - change button text */
        .task-view-cover-wrapper.has-cover .task-view-cover-btn span:last-child {
            display: none;
        }

        .task-view-cover-wrapper.has-cover .task-view-cover-btn::after {
            content: 'Alterar capa';
        }

        /* Centered Content - Default */
        .task-view-content {
            max-width: 720px;
            margin: 0 auto;
            padding: 0 24px 40px 24px;
            margin-top: -40px;
            position: relative;
        }

        /* Full-Width Mode */
        .task-view-content.task-view-fullwidth {
            max-width: none;
            padding: 0 24px 24px 24px;
            margin-left: 0;
            margin-right: 0;
            margin-top: 0;
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: calc(100vh - 340px);
        }

        /* 3-Column Grid */
        .task-view-columns {
            display: grid;
            grid-template-columns: 320px 1fr 280px;
            gap: 24px;
            flex: 1;
        }

        .task-view-column {
            display: flex;
            flex-direction: column;
            background: var(--bg-surface);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-lg);
            padding: 20px;
            overflow: hidden;
            min-height: 100%;
        }

        .task-view-column .task-view-section-header {
            margin-bottom: 16px;
            flex-shrink: 0;
        }

        /* Checklist column - allow scroll */
        .task-view-column .task-view-checklist {
            flex: 1;
            overflow-y: auto;
        }

        /* Notes column - allow scroll */
        .task-view-column .task-view-notes {
            flex: 1;
            min-height: 150px;
            border: none;
            background: transparent;
            padding: 0;
        }

        .task-view-column .task-view-notes:focus {
            box-shadow: none;
        }

        /* Options column */
        .task-view-options {
            gap: 0;
        }

        .task-view-option-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 16px 0;
            border-bottom: 1px solid var(--border-light);
        }

        .task-view-option-group:last-child {
            border-bottom: none;
        }

        .task-view-option-label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .task-view-option-label .material-icons-round {
            font-size: 18px;
            color: var(--text-tertiary);
        }

        /*
         * DATE INPUT - FLAT DESIGN
         * Nota: O datepicker nativo do navegador não pode ser completamente estilizado.
         * Estes estilos afetam apenas o input, não o popup do calendário.
         */
        .task-view-date-input {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            background: var(--bg-surface);
            color: var(--text-primary);
            font-family: var(--font-main);
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            transition: border-color 0.2s ease, background-color 0.2s ease;
        }

        .task-view-date-input:hover {
            border-color: var(--accent);
            background: var(--bg-subtle);
        }

        .task-view-date-input:focus {
            outline: none;
            border-color: var(--accent);
            background: var(--bg-app);
        }

        /*
         * DATE PICKER BUTTON - FLAT DESIGN
         */
        .task-view-date-btn {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            background: var(--bg-surface);
            color: var(--text-primary);
            font-family: var(--font-main);
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            transition: border-color 0.2s ease, background-color 0.2s ease;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .task-view-date-btn:hover {
            border-color: var(--accent);
            background: var(--bg-subtle);
        }

        .task-view-date-btn .material-icons-round {
            font-size: 18px;
            color: var(--text-tertiary);
        }

        /* OPTION BUTTON - Para capa e outras opções */
        .task-view-option-btn {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            background: var(--bg-surface);
            color: var(--text-primary);
            font-family: var(--font-main);
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .task-view-option-btn:hover {
            border-color: var(--accent);
            background: var(--bg-subtle);
        }

        .task-view-option-btn .material-icons-round {
            font-size: 18px;
            color: var(--accent);
        }

        /* Cover wrapper - ocultar quando não tem capa */
        .task-view-cover-wrapper:not(.has-cover) {
            display: none;
        }

        /*
         * DATE PICKER MODAL - FLAT DESIGN
         */
        .date-picker-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--modal-overlay);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1100;
        }

        .date-picker-modal.open {
            display: flex;
        }

        .date-picker-box {
            background: var(--bg-surface);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-lg);
            padding: 24px;
            width: 320px;
            max-width: 90%;
        }

        .date-picker-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .date-picker-nav {
            width: 36px;
            height: 36px;
            border-radius: var(--radius-md);
            border: 1px solid var(--border-light);
            background: var(--bg-surface);
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: border-color 0.2s ease, color 0.2s ease;
        }

        .date-picker-nav:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        .date-picker-month-year {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .date-picker-weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
            margin-bottom: 12px;
        }

        .date-picker-weekdays span {
            text-align: center;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--text-tertiary);
            padding: 8px 0;
        }

        .date-picker-days {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
            margin-bottom: 20px;
        }

        .date-picker-day {
            width: 100%;
            aspect-ratio: 1;
            border-radius: var(--radius-md);
            border: 1px solid transparent;
            background: transparent;
            color: var(--text-primary);
            font-size: 0.9rem;
            font-weight: 500;
            font-family: var(--font-main);
            cursor: pointer;
            transition: background-color 0.15s ease, border-color 0.15s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .date-picker-day:hover {
            background: var(--bg-subtle);
            border-color: var(--border-light);
        }

        .date-picker-day.other-month {
            color: var(--text-tertiary);
        }

        .date-picker-day.today {
            border-color: var(--accent);
            color: var(--accent);
            font-weight: 600;
        }

        .date-picker-day.selected {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
        }

        .date-picker-actions {
            display: flex;
            gap: 8px;
            justify-content: flex-end;
            flex-wrap: wrap;
        }

        .date-picker-actions .btn-ui {
            flex-shrink: 0;
            font-size: 0.85rem;
            padding: 10px 14px;
        }

        /*
         * LABEL MANAGER - FLAT DESIGN
         * Gerenciador de etiquetas do projeto
         */
        .label-manager-box {
            width: 450px;
            max-width: 90%;
            padding: 24px;
        }

        .label-manager-box .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border-light);
            margin-bottom: 24px;
        }

        .label-manager-box .modal-title {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 0;
            font-size: 1.15rem;
        }

        .label-manager-content {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .label-add-form {
            display: flex;
            gap: 12px;
            align-items: stretch;
        }

        .label-color-preview {
            width: 44px;
            min-height: 44px;
            border-radius: var(--radius-md);
            background: var(--accent);
            border: 1px solid var(--border-light);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            transition: border-color 0.2s ease;
            flex-shrink: 0;
        }

        .label-add-form .btn-ui {
            padding: 12px 16px;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .label-add-form .btn-ui .material-icons-round {
            font-size: 18px;
        }

        .label-color-preview:hover {
            border-color: var(--accent);
        }

        .label-color-preview .material-icons-round {
            font-size: 20px;
        }

        .label-name-input {
            flex: 1;
            padding: 12px 14px;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            background: var(--bg-surface);
            color: var(--text-primary);
            font-family: var(--font-main);
            font-size: 0.95rem;
        }

        .label-name-input:focus {
            outline: none;
            border-color: var(--accent);
        }

        .label-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-height: 300px;
            overflow-y: auto;
        }

        .label-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            background: var(--bg-surface);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
        }

        .label-item-color {
            width: 24px;
            height: 24px;
            border-radius: var(--radius-sm);
            flex-shrink: 0;
        }

        .label-item-name {
            flex: 1;
            font-weight: 500;
            color: var(--text-primary);
        }

        .label-item-actions {
            display: flex;
            gap: 4px;
        }

        .label-item-actions button {
            width: 28px;
            height: 28px;
            border-radius: var(--radius-sm);
            border: 1px solid transparent;
            background: transparent;
            color: var(--text-tertiary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease;
        }

        .label-item-actions button:hover {
            background: var(--bg-subtle);
            color: var(--text-primary);
        }

        .label-item-actions button.danger:hover {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger);
        }

        .label-item-actions .material-icons-round {
            font-size: 16px;
        }

        /* Pílulas de etiqueta (para cards e modal de tarefa) */
        .task-labels {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-top: 8px;
        }

        .task-label-pill {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 600;
            color: white;
            white-space: nowrap;
        }

        /* Seletor de etiquetas no modal de tarefa */
        .label-selector {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .label-selector-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            background: var(--bg-surface);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: border-color 0.15s ease;
        }

        .label-selector-item:hover {
            border-color: var(--accent);
        }

        .label-selector-item.selected {
            border-color: var(--accent);
            background: var(--accent-soft);
        }

        .label-selector-item input[type="checkbox"] {
            accent-color: var(--accent);
        }

        .label-selector-empty {
            text-align: center;
            padding: 20px;
            color: var(--text-tertiary);
            font-size: 0.9rem;
        }


        .task-view-tag-clear-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 12px;
            margin-top: 8px;
            background: transparent;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-sm);
            color: var(--text-secondary);
            font-size: 0.85rem;
            font-family: var(--font-main);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .task-view-tag-clear-btn:hover {
            background: var(--bg-subtle);
            border-color: var(--danger);
            color: var(--danger);
        }

        .task-view-tag-clear-btn .material-icons-round {
            font-size: 16px;
        }

        /* Responsive for 3-column */
        @media (max-width: 1200px) {
            .task-view-columns {
                grid-template-columns: 1fr 1fr;
            }

            .task-view-options {
                grid-column: span 2;
            }
        }

        @media (max-width: 768px) {
            .task-view-columns {
                grid-template-columns: 1fr;
            }

            .task-view-options {
                grid-column: span 1;
            }

            .task-view-content.task-view-fullwidth {
                padding: 0 16px 80px 16px;
            }
        }

        /* Title */
        .task-view-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--text-primary);
            margin: 0 0 24px 0;
            padding: 8px 12px;
            margin-left: -12px;
            border-radius: var(--radius-md);
            line-height: 1.2;
            letter-spacing: -0.02em;
            outline: none;
            transition: background 0.2s ease;
        }

        .task-view-title:hover {
            background: var(--bg-subtle);
        }

        .task-view-title:focus {
            background: var(--bg-surface);
        }

        .task-view-title:empty::before {
            content: attr(placeholder);
            color: var(--text-tertiary);
        }

        /* Metadata Row */
        .task-view-meta {
            display: flex;
            align-items: center;
            gap: 24px;
            flex-wrap: wrap;
            margin-bottom: 32px;
            padding-bottom: 24px;
            border-bottom: 1px solid var(--border-light);
        }

        .task-view-meta-item {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--text-secondary);
        }

        .task-view-meta-item>.material-icons-round {
            font-size: 20px;
            color: var(--text-tertiary);
        }

        .task-view-date-input {
            padding: 8px 12px;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-sm);
            background: var(--bg-surface);
            color: var(--text-primary);
            font-size: 0.9rem;
            font-family: var(--font-main);
            transition: border-color 0.2s ease;
        }

        .task-view-date-input:focus {
            outline: none;
            border-color: var(--accent);
        }

        .task-view-tags {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .task-view-tag-clear {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            background: transparent;
            color: var(--text-tertiary);
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .task-view-tag-clear:hover {
            background: var(--bg-subtle);
            color: var(--danger);
        }

        .task-view-tag-clear .material-icons-round {
            font-size: 16px;
        }

        /* Sections */
        .task-view-section {
            margin-bottom: 32px;
        }

        .task-view-section-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .task-view-section-header>.material-icons-round {
            font-size: 20px;
            color: var(--accent);
        }

        .task-view-section-actions {
            margin-left: auto;
        }

        .task-view-add-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: transparent;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-sm);
            color: var(--text-secondary);
            font-size: 0.85rem;
            font-weight: 500;
            font-family: var(--font-main);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .task-view-add-btn:hover {
            background: var(--bg-subtle);
            border-color: var(--accent);
            color: var(--accent);
        }

        .task-view-add-btn .material-icons-round {
            font-size: 16px;
        }

        /* Textarea */
        .task-view-textarea {
            width: 100%;
            padding: 16px;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            background: var(--bg-surface);
            color: var(--text-primary);
            font-size: 1rem;
            font-family: var(--font-main);
            line-height: 1.6;
            resize: vertical;
            min-height: 120px;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .task-view-textarea:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-soft);
        }

        .task-view-textarea::placeholder {
            color: var(--text-tertiary);
        }

        /* Notes */
        .task-view-notes {
            width: 100%;
            min-height: 150px;
            padding: 16px;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            background: var(--bg-surface);
            color: var(--text-primary);
            font-size: 1rem;
            font-family: var(--font-main);
            line-height: 1.6;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .task-view-notes:empty::before {
            content: attr(data-placeholder);
            color: var(--text-tertiary);
            pointer-events: none;
        }

        .task-view-notes:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-soft);
        }

        .task-view-notes a {
            color: var(--accent);
            text-decoration: underline;
        }

        /* Checklist in View */
        .task-view-checklist {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        /* === LEGACY STYLES (keep for compatibility) === */
        .modal-task-content,
        .modal-task-column,
        .task-page-body,
        .task-page-grid,
        .task-page-main,
        .task-page-sidebar,
        .task-page-section,
        .task-page-footer {
            display: none;
        }

        /* === MODAL TASK HEADER COM IMAGEM === */
        .modal-task-header-wrapper {
            position: relative;
            width: 100%;
            height: 200px;
            overflow: hidden;
            border-radius: var(--radius-sm) var(--radius-sm) 0 0;
            flex-shrink: 0;
            margin-bottom: 0;
        }

        .modal-task-header-bg {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-size: cover;
            background-position: center;
            background-color: var(--bg-subtle);
        }

        .modal-task-header-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom,
                    transparent 0%,
                    transparent 30%,
                    var(--bg-surface) 100%);
            z-index: 1;
            pointer-events: none;
        }

        .modal-task-header-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 2;
            padding: 24px 24px 20px;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 16px;
        }

        .modal-task-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: -0.02em;
            flex: 1;
            line-height: 1.3;
            word-break: break-word;
            overflow-wrap: break-word;
            text-shadow: none;
            transition: all 0.2s ease;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            user-select: text;
        }

        .modal-task-title:hover {
            background: rgba(0, 0, 0, 0.05);
            text-shadow: none;
        }

        .modal-task-title:focus {
            outline: none;
            background: rgba(0, 0, 0, 0.08);
        }

        .modal-task-header-btn {
            position: absolute;
            top: 16px;
            right: 16px;
            z-index: 3;
            background: var(--bg-app);
            color: var(--text-secondary);
            border: 1px solid var(--border-light);
            border-radius: 8px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 20px;
        }

        .modal-task-header-btn:hover {
            color: var(--accent);
            border-color: var(--accent);
        }

        /* --- ESTILOS DO MODAL EDITAR PROJETO (similar ao modal de tarefa) --- */
        .modal-box.modal-edit-board-layout {
            max-width: 600px;
            width: 90%;
            padding: 0;
            display: flex;
            flex-direction: column;
            max-height: 90vh;
            min-height: 0;
            overflow: hidden;
        }

        .modal-edit-board-header-wrapper {
            position: relative;
            width: 100%;
            height: 200px;
            overflow: hidden;
            border-radius: var(--radius-sm) var(--radius-sm) 0 0;
            flex-shrink: 0;
            margin-bottom: 0;
        }

        .modal-edit-board-header-bg {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-size: cover;
            background-position: center;
            background-color: var(--bg-subtle);
        }

        .modal-edit-board-header-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 1) 100%);
            z-index: 1;
            pointer-events: none;
        }

        body.dark-mode .modal-edit-board-header-overlay {
            background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 20%, rgba(21, 27, 43, 1) 100%);
        }

        .modal-edit-board-header-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 2;
            padding: 24px 24px 20px;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 16px;
        }

        .modal-edit-board-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: -0.02em;
            flex: 1;
            line-height: 1.3;
            word-break: break-word;
            overflow-wrap: break-word;
            text-shadow: none;
            transition: all 0.2s ease;
        }

        .modal-edit-board-header-btn {
            position: absolute;
            top: 16px;
            left: 16px;
            z-index: 3;
            background: var(--bg-app);
            color: var(--text-secondary);
            border: 1px solid var(--border-light);
            border-radius: 8px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 20px;
        }

        .modal-edit-board-header-btn:hover {
            color: var(--accent);
            border-color: var(--accent);
        }

        .modal-edit-board-content {
            flex: 1;
            overflow-y: auto;
            padding: 24px;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .modal-box.modal-edit-board-layout .modal-actions {
            justify-content: flex-end;
            padding: 12px 24px 24px 24px;
        }

        .modal-box.modal-edit-board-layout .btn-ui {
            padding: 10px 18px;
        }

        /* Modal Task Title Edit Inline */
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            flex-shrink: 0;
        }

        .modal-title {
            font-size: 1.15rem;
            font-weight: 600;
            letter-spacing: -0.02em;
        }

        .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            padding-top: 20px;
            flex-shrink: 0;
        }

        .btn-ui {
            padding: 10px 18px;
            border-radius: var(--radius-sm);
            font-weight: 500;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid transparent;
        }

        .btn-secondary {
            background: transparent;
            border-color: var(--border-light);
            color: var(--text-primary);
        }

        .btn-secondary:hover {
            background: var(--bg-subtle);
        }

        .btn-primary {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
        }

        .btn-primary:hover {
            background: #1d4ed8;
        }

        /* Darker blue on hover */

        /* Botões de fechar */
        .btn-close-modal {
            background: var(--bg-app);
            color: var(--text-secondary);
            border: 1px solid var(--border-light);
            border-radius: 8px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .btn-close-modal:hover {
            color: var(--danger);
            border-color: var(--danger);
        }

        .btn-danger {
            background: var(--danger);
            color: white;
        }

        .btn-danger:hover {
            opacity: 0.9;
        }

        /* --- ACCOUNT MANAGER --- */
        .account-manager-modal .modal-box {
            background: var(--bg-app);
            border: none;
            overflow: hidden;
        }

        .account-manager-modal .modal-header {
            background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
            border-bottom: none;
            padding: 24px;
        }

        .account-manager-modal .modal-title {
            color: white;
            font-size: 1.1rem;
        }

        .account-manager-modal .btn-close-modal {
            color: rgba(255, 255, 255, 0.8);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .account-manager-modal .btn-close-modal:hover {
            color: white;
            border-color: rgba(255, 255, 255, 0.4);
            background: rgba(255, 255, 255, 0.1);
        }

        .account-current {
            padding: 20px;
            margin: 16px;
            background: var(--bg-surface);
            border-radius: var(--radius-md);
            border: 1px solid var(--border-light);
            position: relative;
            overflow: hidden;
        }

        .account-current::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--accent) 0%, #22D3EE 100%);
        }

        .account-current-label {
            font-size: 0.65rem;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 12px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .account-current-label::before {
            content: '';
            width: 6px;
            height: 6px;
            background: #34D399;
            border-radius: 50%;
            animation: pulse-dot 2s ease-in-out infinite;
        }

        @keyframes pulse-dot {

            0%,
            100% {
                opacity: 1;
                transform: scale(1);
            }

            50% {
                opacity: 0.5;
                transform: scale(0.8);
            }
        }

        .account-current-info {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .account-avatar {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.2rem;
            text-transform: uppercase;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

        .account-details {
            flex: 1;
            min-width: 0;
        }

        .account-email {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 0.95rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .account-status {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-top: 3px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .account-list-section {
            padding: 0 16px 20px;
        }

        .account-list-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding: 0 4px;
        }

        .account-list-header span {
            font-size: 0.7rem;
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-weight: 600;
        }

        .account-add-btn {
            width: 32px;
            height: 32px;
            border-radius: 10px;
            background: var(--bg-surface);
            border: 1px dashed var(--border-light);
            color: var(--text-tertiary);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .account-add-btn:hover {
            background: var(--accent);
            border-style: solid;
            border-color: var(--accent);
            color: white;
            transform: scale(1.05);
        }

        .account-add-btn .material-icons-round {
            font-size: 20px;
        }

        .account-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .account-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            border-radius: var(--radius-md);
            background: var(--bg-surface);
            border: 1px solid var(--border-light);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .account-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 0;
            background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
            transition: width 0.2s ease;
        }

        .account-item:hover {
            border-color: var(--accent);
            transform: translateX(4px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        .account-item:hover::before {
            width: 4px;
        }

        .account-item .account-avatar {
            width: 40px;
            height: 40px;
            font-size: 1rem;
            border-radius: 12px;
            position: relative;
            z-index: 1;
        }

        .account-item .account-details {
            position: relative;
            z-index: 1;
        }

        .account-item .account-email {
            font-size: 0.9rem;
            font-weight: 500;
        }

        .account-item .account-status {
            font-size: 0.7rem;
            color: var(--text-tertiary);
        }

        .account-item-saved {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 0.65rem;
            color: #34D399;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .account-item-saved .material-icons-round {
            font-size: 12px;
        }

        .account-item-actions {
            display: flex;
            gap: 6px;
            margin-left: auto;
            position: relative;
            z-index: 1;
        }

        .account-item-btn {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            background: var(--bg-subtle);
            color: var(--text-tertiary);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            opacity: 0;
            transform: scale(0.9);
        }

        .account-item:hover .account-item-btn {
            opacity: 1;
            transform: scale(1);
        }

        .account-item-btn:hover {
            background: var(--accent);
            color: white;
        }

        .account-item-btn.delete:hover {
            background: var(--danger);
            color: white;
        }

        .account-item-btn .material-icons-round {
            font-size: 18px;
        }

        .account-empty {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 24px;
            text-align: center;
            background: var(--bg-surface);
            border-radius: var(--radius-md);
            border: 1px dashed var(--border-light);
        }

        .account-empty .material-icons-round {
            font-size: 56px;
            margin-bottom: 16px;
            color: var(--accent);
            opacity: 0.4;
        }

        .account-empty p {
            margin-bottom: 20px;
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        /* --- DASHBOARD VIEW --- */
        .view {
            display: none;
            height: 100%;
            flex-direction: column;
            background: var(--bg-app);
        }

        .view.active {
            display: flex;
        }

        .dashboard-container {
            padding: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            background: var(--bg-app);
        }

        .dash-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 64px;
            padding: 0 32px;
            background: var(--bg-surface);
            border-bottom: 1px solid var(--border-light);
            flex-shrink: 0;
            gap: 32px;
        }

        .dash-header-left {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .dash-logo {
            height: 36px;
            display: flex;
            align-items: center;
        }

        .dash-logo img {
            height: 100%;
            width: auto;
            object-fit: contain;
        }

        .dash-title {
            display: none;
        }

        .dash-title h1 {
            font-size: 1.4rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: var(--text-primary);
            margin: 0;
        }

        .dash-title p {
            color: var(--text-secondary);
            font-size: 0.8rem;
            font-weight: 500;
            margin: 0;
        }

        .dash-controls {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .dash-search-wrapper {
            flex: 1;
            max-width: 320px;
            height: 48px;
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--bg-app);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            padding: 0 12px;
            transition: all 0.2s;
        }

        .dash-search-wrapper:focus-within {
            border-color: var(--accent);
            background: var(--bg-surface);
        }

        .dash-search-wrapper .material-icons-round {
            font-size: 20px;
            color: var(--text-secondary);
            flex-shrink: 0;
        }

        .dash-search-input {
            flex: 1;
            border: none;
            background: transparent;
            color: var(--text-primary);
            font-size: 0.95rem;
            font-family: var(--font-main);
        }

        .dash-search-input::placeholder {
            color: var(--text-tertiary);
        }

        .dash-search-input:focus {
            outline: none;
        }

        .dash-search-clear {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            cursor: pointer;
            border-radius: 4px;
            transition: all 0.2s;
            opacity: 0;
            pointer-events: none;
        }

        .dash-search-wrapper:has(.dash-search-input:not(:placeholder-shown)) .dash-search-clear {
            opacity: 1;
            pointer-events: all;
        }

        .dash-search-clear:hover {
            color: var(--text-primary);
            background: var(--bg-subtle);
        }

        .dashboard-content {
            flex: 1;
            overflow-y: auto;
            padding: 48px;
            background: var(--bg-app);
        }

        .grid-boards {
            display: flex;
            flex-direction: column;
            gap: 24px;
            position: relative;
            min-height: 320px;
        }

        .board-filter-bar {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 24px;
            flex-wrap: wrap;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border-light);
        }

        body.dark-mode .board-filter-bar {
            border-color: rgba(255, 255, 255, 0.08);
        }

        .board-filter-heading {
            display: flex;
            flex-direction: column;
            gap: 6px;
            min-width: 0;
        }

        .board-filter-title {
            font-size: 1.35rem;
            font-weight: 600;
            letter-spacing: -0.01em;
            color: var(--text-primary);
        }

        .board-filter-subtitle {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .board-filter-toggle {
            display: inline-flex;
            align-items: center;
            padding: 4px;
            gap: 4px;
            border-radius: var(--radius-md);
            border: 1px solid var(--border-light);
            background: var(--bg-surface);
            height: 48px;
        }

        body.dark-mode .board-filter-toggle {
            background: #151B2B;
            border-color: rgba(255, 255, 255, 0.08);
        }

        .board-filter-toggle button {
            border: 1px solid transparent;
            background: transparent;
            color: var(--text-secondary);
            font-weight: 600;
            letter-spacing: -0.01em;
            padding: 8px 18px;
            border-radius: var(--radius-sm);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            height: 40px;
            font-size: 0.95rem;
        }

        .board-filter-toggle button .material-icons-round {
            font-size: 18px;
            color: inherit;
        }

        .board-filter-label {
            white-space: nowrap;
        }

        .board-filter-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 26px;
            height: 20px;
            padding: 0 8px;
            font-size: 0.75rem;
            font-weight: 600;
            border-radius: 999px;
            background: var(--bg-subtle);
            color: var(--text-secondary);
            transition: all 0.2s ease;
        }

        body.dark-mode .board-filter-count {
            background: rgba(255, 255, 255, 0.08);
            color: rgba(249, 250, 251, 0.82);
        }

        .board-filter-toggle button:hover:not(.active) {
            color: var(--accent);
            border-color: var(--accent-soft);
            background: var(--accent-soft);
        }

        .board-filter-toggle button:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

        .board-filter-toggle button.active {
            background: var(--accent-soft);
            color: var(--accent);
            border-color: var(--accent);
        }

        .board-filter-toggle button.active .board-filter-count {
            background: var(--accent);
            color: white;
        }

        .board-filter-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .board-filter-archive-btn {
            border: 1px solid var(--border-light);
            background: var(--bg-surface);
            color: var(--text-secondary);
            font-weight: 600;
            padding: 8px;
            border-radius: var(--radius-md);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            height: 48px;
            width: 48px;
            flex-shrink: 0;
        }

        .board-filter-archive-btn .board-filter-label,
        .board-filter-archive-btn .board-filter-count {
            display: none;
            /* Only icon as requested */
        }

        body.dark-mode .board-filter-archive-btn {
            background: #151B2B;
            border-color: rgba(255, 255, 255, 0.08);
        }

        .board-filter-archive-btn:hover:not(.active) {
            color: var(--accent);
            border-color: var(--accent-soft);
            background: var(--accent-soft);
        }

        .board-filter-archive-btn.active {
            background: var(--accent-soft);
            color: var(--accent);
            border-color: var(--accent);
        }

        .board-filter-archive-btn .material-icons-round {
            font-size: 22px;
        }

        .board-list-grid {
            display: grid;
            grid-template-columns: repeat(6, minmax(160px, 1fr));
            gap: 24px;
            margin-top: 16px;
        }

        .board-empty-state {
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 40px 0;
            text-align: center;
            color: var(--text-secondary);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
        }

        .board-empty-state .material-icons-round {
            font-size: 40px;
            color: var(--text-tertiary);
        }

        .board-card {
            background: var(--bg-surface);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-light);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            flex-direction: column;
            min-height: 280px;
            position: relative;
            overflow: hidden;
        }

        .pin-lock-input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-sm);
            background: var(--bg-app);
            color: var(--text-primary);
            font-size: 0.95rem;
            transition: border-color 0.2s ease;
        }

        .pin-lock-input:focus {
            outline: none;
            border-color: var(--accent);
        }

        .pin-lock-helper {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-top: 6px;
        }

        .pin-lock-error {
            color: var(--danger);
            font-size: 0.85rem;
            margin-top: 12px;
        }

        .board-card.pinned {
            border: 1px solid var(--border-light);
        }

        .board-card.pinned:hover {
            border-color: var(--accent);
        }

        .board-card.has-cover {
            padding: 0;
        }

        .board-card-cover {
            width: 100%;
            height: 140px;
            background-size: cover;
            background-position: center;
            flex-shrink: 0;
            border-bottom: none;
            position: relative;
            overflow: hidden;
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .board-card-cover::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
            pointer-events: none;
            z-index: 2;
        }

        .board-card-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            position: relative;
            z-index: 1;
        }

        .board-card-content {
            padding: 20px;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 0;
        }

        .board-card:not(.has-cover) {
            padding: 0;
        }

        .board-card:not(.has-cover) .board-card-content {
            padding: 24px;
        }

        /* Dá respiro extra quando fixado sem capa para o título não colidir com o ícone */
        .board-card.pinned:not(.has-cover) .board-card-content {
            padding-top: 56px;
            /* sobe o conteúdo abaixo dos botões fixar/ação */
        }

        /* Garante espaçamento vertical do título em cards fixados sem capa */
        .board-card.pinned:not(.has-cover) h3 {
            margin-top: 6px;
        }

        .board-card:hover {
            border-color: var(--accent);
        }

        .board-card h3 {
            font-size: 1.35rem;
            font-weight: 600;
            margin-bottom: 8px;
            letter-spacing: -0.01em;
            color: var(--text-primary);
            position: relative;
            z-index: 1;
            overflow-wrap: anywhere;
        }

        .board-card p {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-bottom: 12px;
            line-height: 1.5;
            flex: 1;
            position: relative;
            z-index: 1;
            min-height: 0;
            overflow-wrap: anywhere;
        }

        .board-meta {
            font-size: 0.85rem;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 12px;
            position: relative;
            z-index: 1;
            flex-wrap: wrap;
            margin-top: auto;
        }

        .board-meta-item {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 6px 10px;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            white-space: nowrap;
            font-weight: 500;
        }

        .board-meta-item .material-icons-round {
            font-size: 16px;
            flex-shrink: 0;
        }

        .board-card-action {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 40px;
            height: 40px;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--border-light);
            background: var(--bg-app);
            color: var(--text-secondary);
            transition: all 0.2s ease;
            opacity: 0;
            pointer-events: none;
            z-index: 100;
        }

        /* Header menu button */
        .board-header-menu-btn {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid transparent;
            transition: background 0.12s ease, border-color 0.12s ease;
        }

        .board-header-menu-btn:hover {
            background: var(--bg-subtle);
            border-color: var(--border-light);
        }

        .board-card:hover .board-card-action {
            opacity: 1;
            pointer-events: all;
        }

        .board-card.menu-open .board-card-action {
            opacity: 1;
            pointer-events: all;
        }

        .board-card-action:hover {
            color: var(--accent);
            border-color: var(--accent);
            background: var(--accent-soft);
        }

        body.dark-mode .board-card-action {
            background: #151B2B;
        }

        .board-card-unpin {
            position: absolute;
            top: 16px;
            left: 16px;
            width: 40px;
            height: 40px;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--border-light);
            background: var(--bg-app);
            color: var(--text-secondary);
            transition: all 0.2s ease;
            z-index: 100;
        }

        .board-card-unpin:hover {
            color: var(--accent);
            border-color: var(--accent);
            background: var(--accent-soft);
        }

        body.dark-mode .board-card-unpin {
            background: #151B2B;
        }

        .board-card-menu {
            position: fixed;
            top: 0;
            left: 0;
            min-width: 220px;
            border-radius: calc(var(--radius-md) + 2px);
            border: 1px solid var(--border-light);
            /* Use same background as header for flat design */
            background: var(--bg-surface);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            opacity: 0;
            transform: translateY(-6px) scale(.998);
            pointer-events: none;
            transition: opacity 0.14s cubic-bezier(0.2, 0.9, 0.2, 1), transform 0.14s cubic-bezier(0.2, 0.9, 0.2, 1);
            z-index: 200;
            /* Flat design: remove shadows and blur */
            box-shadow: none;
            backdrop-filter: none;
        }

        body.dark-mode .board-card-menu {
            background: var(--bg-surface);
            border-color: rgba(255, 255, 255, 0.05);
            box-shadow: none;
        }

        body:not(.dark-mode) .board-card-menu {
            background: var(--bg-surface);
            border-color: rgba(15, 23, 42, 0.06);
            box-shadow: none;
        }

        .board-card-menu.open {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }

        /* Generic menu buttons */
        .board-card-menu button {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 10px 16px;
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-size: 0.95rem;
            font-weight: 500;
            text-align: left;
            cursor: pointer;
            transition: background 0.12s ease, color 0.12s ease, transform 0.06s ease;
            min-height: 44px;
            align-items: center;
        }

        .board-card-menu button:hover {
            background: var(--bg-subtle);
        }

        .board-card-menu button:hover .label {
            color: var(--text-primary);
        }

        .board-card-menu button:hover .material-icons-round {
            color: var(--accent);
            opacity: 1;
        }

        .board-card-menu button:active {
            transform: translateY(1px);
        }

        .board-card-menu button .material-icons-round {
            font-size: 18px;
            color: var(--text-tertiary);
            width: 26px;
            text-align: center;
            opacity: 0.92;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 20px;
            margin-left: 0;
        }

        /* Ensure any menu icons using icon-sm have the same layout metrics */
        .board-card-menu .icon-sm {
            width: 26px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 20px;
        }

        .board-card-menu button .label {
            flex: 1;
            display: inline-flex;
            align-items: center;
            color: var(--text-primary);
            font-weight: 500;
            line-height: 1.2;
        }

        .board-card-menu .menu-switch span {
            line-height: 1.2;
        }

        /* Danger button styling */
        .board-card-menu button.danger {
            color: var(--danger);
        }

        .board-card-menu button.danger .material-icons-round {
            color: var(--danger);
            opacity: 0.95;
        }

        .board-card-menu button.danger:hover {
            background: rgba(239, 68, 68, 0.08);
            color: var(--danger);
        }

        /* Visual separator for groups */
        .board-card-menu .menu-divider {
            height: 1px;
            background: var(--border-light);
            margin: 10px 8px;
            opacity: 0.12;
        }

        /* Switch row layout (consistent with theme switch) */
        /* Use a grid so the label column lines up exactly with button content (icon + text) */
        .board-card-menu .menu-switch {
            display: grid;
            grid-template-columns: 1fr auto;
            align-items: center;
            gap: 12px;
            padding: 10px 16px;
            min-height: 44px;
        }

        .board-card-menu .menu-switch .label-wrapper {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .board-card-menu .menu-switch span {
            font-size: 0.95rem;
            color: var(--text-primary);
            font-weight: 500;
            letter-spacing: -0.01em;
            display: inline-flex;
            align-items: center;
            height: 20px;
        }

        .board-card-menu .menu-switch .label-wrapper .material-icons-round {
            font-size: 18px;
            color: var(--text-tertiary);
            opacity: 0.9;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 20px;
            text-align: center;
            margin-left: 0;
        }

        /* Make the Pomodoro row highlight like a button on hover */
        .board-card-menu .menu-switch:hover {
            background: var(--bg-subtle);
            cursor: pointer;
        }

        .board-card-menu .menu-switch:hover .label {
            color: var(--text-primary);
        }

        .board-card-menu .menu-switch:hover .material-icons-round {
            color: var(--accent);
            opacity: 1;
        }

        /* Ensure the Pomodoro label aligns identically to other menu labels */
        .board-card-menu .menu-switch .label {
            flex: 1;
            display: inline-flex;
            align-items: center;
            color: var(--text-primary);
            font-weight: 500;
            line-height: 1.2;
            height: 20px;
        }

        /* Refined header menu switch: larger, visible, and in brand colors */
        .board-card-menu .menu-switch .theme-switch {
            display: inline-block;
            width: 48px;
            height: 26px;
            position: relative;
            vertical-align: middle;
        }

        .board-card-menu .menu-switch .theme-switch input[type="checkbox"] {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            margin: 0;
            opacity: 0;
            z-index: 2;
            cursor: pointer;
        }

        .board-card-menu .menu-switch .theme-switch .switch-slider {
            display: block;
            width: 100%;
            height: 100%;
            border-radius: 999px;
            padding: 3px;
            box-sizing: border-box;
            background: var(--bg-subtle);
            border: 1px solid var(--border-light);
            transition: background 160ms ease, border-color 160ms ease, box-shadow 180ms ease;
            position: relative;
            overflow: hidden;
        }

        .board-card-menu .menu-switch .theme-switch .switch-slider::before {
            content: '';
            position: absolute;
            left: 4px;
            top: 50%;
            transform: translateY(-50%);
            width: 18px;
            height: 18px;
            background: var(--text-tertiary);
            border-radius: 50%;
            transition: left 180ms cubic-bezier(0.22, 1, 0.36, 1), background 120ms ease, box-shadow 120ms ease;
            box-shadow: 0 1px 2px rgba(2, 6, 23, 0.12);
        }

        .board-card-menu .menu-switch .theme-switch input:focus-visible+.switch-slider {
            box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.12);
            border-color: rgba(59, 130, 246, 0.28);
        }

        .board-card-menu .menu-switch .theme-switch input:checked+.switch-slider {
            background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.06));
            border-color: var(--accent);
            box-shadow: 0 6px 18px rgba(37, 99, 235, 0.06);
        }

        .board-card-menu .menu-switch .theme-switch input:checked+.switch-slider::before {
            /* Position using 'left' so the knob never overlaps the border and respects padding */
            left: calc(100% - 4px - 18px);
            transform: translateY(-50%);
            background: #fff;
            box-shadow: 0 4px 12px rgba(2, 6, 23, 0.12), 0 8px 20px rgba(37, 99, 235, 0.08);
        }

        /* Dark-mode tweaks to keep contrast when off */
        body.dark-mode .board-card-menu .menu-switch .theme-switch .switch-slider {
            background: rgba(255, 255, 255, 0.03);
            border-color: rgba(255, 255, 255, 0.06);
        }

        body.dark-mode .board-card-menu .menu-switch .theme-switch .switch-slider::before {
            background: var(--text-tertiary);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
        }

        /* Make sure switch and label are vertically centered and balanced */
        .board-card-menu .menu-switch,
        .board-card-menu .menu-switch .label-wrapper {
            align-items: center;
        }

        .board-card-menu .menu-switch {
            gap: 16px;
        }

        /* Visual state when Pomodoro is active */
        .board-card-menu .menu-switch.pomodoro-on .label-wrapper .material-icons-round {
            color: var(--accent);
            opacity: 1;
        }

        .board-card-menu .menu-switch.pomodoro-on span {
            color: var(--text-primary);
        }



        /* Improve spacing for header-like first item */
        .board-card-menu .menu-title {
            padding: 10px 14px;
            font-weight: 600;
            color: var(--text-secondary);
            border-bottom: 1px solid transparent;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .board-card-menu .menu-title .material-icons-round {
            margin-right: 4px;
            color: var(--text-tertiary);
            opacity: 0.9;
        }


        .btn-new-board {
            border: 2px dashed var(--border-light);
            background: transparent;
            color: var(--border-light);
            font-weight: 600;
            flex-direction: column;
            gap: 16px;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .btn-new-board:hover {
            border-color: var(--accent);
            color: var(--accent);
            background: var(--accent-soft);
        }

        .btn-new-board .material-icons-round {
            font-size: 40px;
            color: inherit;
        }

        .btn-new-board span {
            font-size: 1.05rem;
            color: inherit;
        }

        .dash-controls .btn-reset {
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            padding: 8px 16px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .dash-controls .btn-reset:hover {
            border-color: var(--accent);
            background: var(--bg-subtle);
        }

        /* Estilo especial para botão de logout */
        .logout-btn {
            border-color: var(--danger) !important;
            color: var(--danger);
        }

        .logout-btn:hover {
            background: rgba(239, 68, 68, 0.1) !important;
            border-color: var(--danger) !important;
            color: var(--danger) !important;
        }

        .board-card-checkbox {
            position: absolute;
            top: 12px;
            left: 12px;
            z-index: 3;
            width: 20px;
            height: 20px;
            accent-color: var(--accent);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
        }

        .board-card.selected .board-card-checkbox {
            opacity: 1;
        }

        .board-card.selected {
            border-color: var(--accent);
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25), 0 12px 28px rgba(59, 130, 246, 0.2);
        }

        .board-card.selected:not(.has-cover) {
            background: var(--accent-soft);
        }

        .board-card.selected .board-meta-item {
            background: rgba(59, 130, 246, 0.16);
            border-color: rgba(59, 130, 246, 0.3);
        }

        .bulk-actions-bar {
            position: fixed;
            bottom: 24px;
            left: 24px;
            min-height: 68px;
            max-width: 420px;
            background: rgba(17, 24, 39, 0.92);
            color: #F9FAFB;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
            border-radius: 16px;
            display: none;
            align-items: center;
            gap: 18px;
            padding: 14px 18px;
            z-index: 140;
            backdrop-filter: blur(8px);
            animation: slideUp 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
            transition: transform 0.2s ease, opacity 0.2s ease;
        }

        .bulk-actions-bar.active {
            display: flex;
        }

        .bulk-actions-info {
            display: flex;
            align-items: center;
            gap: 10px;
            color: inherit;
            font-weight: 600;
            font-size: 0.95rem;
        }

        .bulk-actions-info .material-icons-round {
            font-size: 20px;
            color: var(--accent);
        }

        .bulk-actions-count {
            color: var(--accent);
            font-weight: 700;
        }

        .bulk-actions-buttons {
            display: flex;
            gap: 10px;
            align-items: center;
            margin-left: auto;
        }

        body.dark-mode .bulk-actions-bar {
            background: rgba(11, 15, 25, 0.9);
            border-color: rgba(255, 255, 255, 0.05);
        }

        body:not(.dark-mode) .bulk-actions-bar {
            background: rgba(255, 255, 255, 0.98);
            color: var(--text-primary);
            border: 1px solid var(--border-light);
            box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
        }

        /* --- WORKSPACE VIEW --- */
        .top-bar {
            height: 64px;
            background: var(--bg-surface);
            border-bottom: 1px solid var(--border-light);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            z-index: 20;
        }

        .nav-group {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .divider {
            width: 1px;
            height: 24px;
            background: var(--border-light);
        }

        /* --- TIMER POMODORO --- */
        .pomodoro-timer {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 16px;
            background: var(--bg-app);
            border-radius: var(--radius-md);
            border: 1px solid var(--border-light);
            transition: all 0.2s;
        }

        .pomodoro-timer:hover {
            border-color: var(--accent);
            background: var(--accent-soft);
        }

        .pomodoro-timer~.btn-ui.btn-secondary {
            padding: 8px 16px;
            border-radius: var(--radius-md);
            border: 1px solid var(--border-light);
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .pomodoro-display {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-primary);
            min-width: 50px;
            text-align: center;
            font-family: var(--font-main);
            transition: all 0.3s;
        }

        .pomodoro-display.running {
            color: var(--danger);
            animation: pulse-timer 1s infinite;
        }

        @keyframes pulse-timer {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.8;
            }
        }

        .pomodoro-controls {
            display: flex;
            gap: 6px;
            align-items: center;
            justify-content: flex-start;
        }

        .pomodoro-btn {
            width: 32px;
            height: 32px;
            min-width: 32px;
            min-height: 32px;
            border-radius: 50%;
            border: none;
            background: var(--accent);
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: all 0.2s;
            flex-shrink: 0;
            padding: 0;
            opacity: 1;
            pointer-events: auto;
        }

        .pomodoro-btn:hover {
            background: #1d4ed8;
        }

        .pomodoro-btn.pause {
            background: var(--text-secondary);
            opacity: 0.4;
            pointer-events: none;
        }

        .pomodoro-btn.pause.active {
            opacity: 1;
            pointer-events: auto;
        }

        .pomodoro-btn.pause:hover {
            background: var(--text-primary);
        }

        .pomodoro-btn.play-inactive {
            opacity: 0.4;
            pointer-events: none;
        }

        .pomodoro-btn.reset {
            background: var(--text-tertiary);
            width: 28px;
            height: 28px;
            min-width: 28px;
            min-height: 28px;
        }

        .pomodoro-btn.reset:hover {
            background: var(--text-secondary);
        }

        .pomodoro-settings-btn {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: none;
            background: transparent;
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: all 0.2s;
            flex-shrink: 0;
        }

        .pomodoro-settings-btn:hover {
            color: var(--text-primary);
            background: var(--accent-soft);
        }

        /* --- TRASH ITEMS --- */
        .trash-item {
            background: var(--bg-app);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            padding: 16px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all 0.2s;
        }

        .trash-item:hover {
            border-color: var(--accent);
            background: var(--accent-soft);
        }

        .trash-item-info {
            flex: 1;
        }

        .trash-item-title {
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .trash-item-meta {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .trash-item-actions {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .trash-item-btn {
            padding: 8px 12px;
            border: none;
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-family: var(--font-main);
            font-size: 0.85rem;
            font-weight: 500;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .trash-item-restore {
            background: var(--success);
            color: white;
        }

        .trash-item-restore:hover {
            background: #059669;
            box-shadow: none;
        }

        .trash-item-delete {
            background: var(--danger);
            color: white;
            opacity: 0.7;
        }

        .trash-item-delete:hover {
            opacity: 1;
            box-shadow: none;
        }

        .board-title-input {
            font-size: 1.1rem;
            font-weight: 600;
            border: 1px solid transparent;
            padding: 6px 12px;
            border-radius: var(--radius-sm);
            background: transparent;
            color: var(--text-primary);
            width: 300px;
        }

        .board-title-input:hover {
            background: var(--bg-subtle);
        }

        .board-title-input:focus {
            background: var(--bg-surface);
            border-color: var(--accent);
        }

        .workspace {
            flex: 1;
            display: flex;
            overflow: hidden;
            position: relative;
            background: var(--bg-app);
        }

        .kanban-area {
            flex: 1;
            overflow-x: auto;
            padding: 32px 40px;
            display: flex;
            align-items: stretch;
            gap: 24px;
            min-height: calc(100vh - 180px);
            position: relative;
            background: var(--bg-app);
        }

        .collaboration-overlay {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 40;
        }

        .ghost-cursor {
            position: absolute;
            transform: translate(-10px, -12px);
            pointer-events: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            transition: left 0.08s linear, top 0.08s linear;
        }

        .ghost-cursor .cursor-dot {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            border: 2px solid rgba(249, 250, 251, 0.9);
        }

        .ghost-cursor .cursor-label {
            padding: 4px 10px;
            background: rgba(17, 24, 39, 0.85);
            color: #F9FAFB;
            border-radius: 999px;
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.01em;
            white-space: nowrap;
        }

        body.dark-mode .ghost-cursor .cursor-label {
            background: rgba(11, 15, 25, 0.9);
            color: #F9FAFB;
        }

        .kanban-area.blocks-mode {
            display: flex;
            flex-wrap: wrap;
            align-items: stretch;
            align-content: flex-start;
            justify-content: flex-start;
            overflow-x: hidden;
            overflow-y: auto;
            padding: 32px 40px;
            gap: var(--block-gap, 24px);
            --block-gap: 24px;
            --block-column-width: calc((100% - (var(--block-gap) * 5)) / 6);
        }

        .kanban-area.blocks-mode .column,
        .kanban-area.blocks-mode .ghost-column {
            flex: 0 0 var(--block-column-width);
            min-width: var(--block-column-width);
            max-width: var(--block-column-width);
            max-height: none;
            min-height: 280px;
            width: var(--block-column-width);
        }

        .kanban-area.blocks-mode .ghost-column {
            min-height: 280px;
            padding: 24px;
            font-size: 0.95rem;
        }

        body.dark-mode .ghost-column {
            background: #0B0F19;
        }

        /* --- COLUNAS --- */
        .column,
        .ghost-column {
            min-width: 320px;
            width: 320px;
            max-height: calc(100vh - 140px);
            min-height: calc(100vh - 180px);
        }

        .column {
            background: var(--bg-subtle);
            border-radius: var(--radius-md);
            display: flex;
            flex-direction: column;
            border: 1px solid transparent;
            transition: border-color 0.2s ease;
            box-shadow: none;
        }

        .column.column-selected {
            border-color: var(--accent);
            background: var(--accent-soft);
        }

        /* Ao arrastar coluna */
        .column.dragging {
            opacity: 0.5;
            border: 2px dashed var(--text-secondary);
            background: transparent;
            pointer-events: none;
        }

        /* Desabilita hover durante drag */
        .column.dragging:hover {
            box-shadow: none;
        }

        /* Feedback visual ao passar coluna sobre outra (mesmo estilo do checklist) */
        .column.drag-over {
            border-color: var(--accent);
            background: var(--accent-soft);
            border-style: dashed;
            opacity: 0.8;
        }

        .column-header {
            padding: 16px 16px 8px 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .col-drag-handle {
            cursor: grab;
            padding: 4px;
            color: var(--text-tertiary);
            transition: opacity 0.12s ease, color 0.12s ease;
            opacity: 0.45;
        }

        .column-header:hover .col-drag-handle {
            opacity: 1;
            color: var(--text-tertiary);
        }

        .col-drag-handle:active {
            cursor: grabbing;
        }

        .col-title {
            font-weight: 600;
            background: transparent;
            border: 1px solid transparent;
            font-size: 0.95rem;
            color: var(--text-primary);
            flex: 1;
            margin: 0;
            padding: 4px 8px;
            border-radius: var(--radius-sm);
            min-width: 0;
        }

        .col-title:focus {
            background: var(--bg-surface);
            border-color: var(--accent);
        }

        .btn-select-column {
            padding: 4px;
            color: var(--text-tertiary);
            transition: all 0.2s ease;
            border-radius: var(--radius-sm);
            border: none;
        }

        .btn-select-column:hover {
            color: var(--accent);
            background: var(--accent-soft);
        }

        .btn-select-column.active {
            color: var(--accent);
            background: var(--accent-soft);
            border: none;
        }

        .btn-del-column {
            padding: 4px;
            color: var(--text-tertiary);
            transition: all 0.2s;
        }

        .btn-del-column:hover {
            color: var(--danger);
            background: rgba(239, 68, 68, 0.1);
        }

        .task-list {
            padding: 8px 12px;
            flex: 1;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 8px;
            min-height: 50px;
        }

        /* --- TAREFAS (CARDS) --- */
        .task-card {
            background: var(--bg-surface);
            padding: 14px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-light);
            position: relative;
            transition: border-color 0.15s ease;
            box-shadow: none;
        }

        /* During the brief moment right after a drag ends, disable transitions to avoid a flashing border */
        body.drag-end .task-card {
            transition: none !important;
        }

        .task-card:hover {
            border-color: var(--accent);
            box-shadow: none;
        }

        /* Quando um drag está em progresso, impedir que hover destaque outras tarefas */
        body.is-dragging .task-card:hover {
            border-color: var(--border-light) !important;
            box-shadow: none !important;
        }

        /* Esconder as ações (3 pontinhos) durante um drag global */
        body.is-dragging .task-actions {
            opacity: 0 !important;
            display: none !important;
            pointer-events: none !important;
        }

        /* Destacar apenas o card sendo arrastado */
        .task-card.drag-source {
            border-color: var(--accent) !important;
            border-style: solid !important;
            box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
        }

        .task-card.dragging {
            opacity: 0.4;
            background: transparent;
            border: 1px dashed var(--text-secondary);
            pointer-events: none;
        }

        /* Desabilita hover durante drag para evitar piscar */
        .task-card.dragging:hover {
            border-color: var(--text-secondary);
            box-shadow: none;
        }

        .task-card.dragging:hover .task-handle {
            color: var(--text-tertiary);
        }

        /* --- CAPAS DE TAREFAS --- */
        .task-card.has-cover {
            padding: 0;
            display: flex;
            flex-direction: column;
            height: auto;
            border-radius: var(--radius-sm);
        }

        .task-cover {
            width: 100%;
            height: 120px;
            flex-shrink: 0;
            position: relative;
            overflow: hidden;
            border-radius: var(--radius-sm) var(--radius-sm) 0 0;
        }

        .task-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .task-cover::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 1) 100%);
            pointer-events: none;
            z-index: 2;
        }

        .task-card-content {
            padding: 14px;
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 0;
        }

        .task-main {
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }

        .task-handle {
            cursor: grab;
            color: var(--text-tertiary);
            margin-top: 3px;
            flex-shrink: 0;
            transition: none;
        }

        .task-card:hover .task-handle {
            color: var(--text-tertiary);
        }

        .task-handle:hover {
            color: var(--text-tertiary) !important;
        }

        .task-content {
            flex: 1;
            font-size: 0.95rem;
            line-height: 1.5;
            color: var(--text-primary);
            word-break: break-word;
            font-weight: 400;
        }

        /* Metadados da Tarefa */
        .task-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
            padding-left: 0;
            /* Alinhado ao handle */
        }

        .task-labels {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-bottom: 8px;
            /* Mais espaço do título */
        }

        .task-label-pill {
            font-size: 0.7rem;
            padding: 2px 8px;
            border-radius: 12px;
            font-weight: 600;
            color: #fff;
            display: inline-block;
        }

        .tag-pill {
            font-size: 0.7rem;
            padding: 2px 8px;
            border-radius: 12px;
            font-weight: 600;
            letter-spacing: 0.02em;
            text-transform: uppercase;
        }

        .meta-info {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 0.75rem;
            color: var(--text-secondary);
            background: var(--bg-app);
            padding: 2px 8px;
            border-radius: 4px;
            border: 1px solid transparent;
        }

        .meta-info.overdue {
            color: var(--danger);
            background: rgba(239, 68, 68, 0.1);
            border-color: rgba(239, 68, 68, 0.2);
        }

        /* Ações do Card (Hover) */
        .task-actions {
            position: absolute;
            top: 8px;
            right: 8px;
            display: flex;
            gap: 6px;
            opacity: 0;
            transition: opacity 0.2s ease;
            background: transparent;
            padding: 0;
            border-radius: 6px;
            backdrop-filter: none;
            z-index: 3;
        }

        .task-card:hover .task-actions {
            opacity: 1;
        }

        /* Esconde task-actions durante drag para evitar piscar */
        .task-card.dragging .task-actions {
            display: none !important;
        }

        .task-card.has-cover:hover .task-actions {
            background: transparent;
            backdrop-filter: none;
        }

        .btn-icon-task {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            color: var(--text-secondary);
            font-weight: 600;
            text-shadow: none;
            background: var(--bg-subtle);
            border: 1px solid var(--border-light);
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .btn-icon-task:hover {
            color: var(--accent);
            border-color: var(--accent);
        }

        /* Task Menu Dropdown */
        .task-menu-container {
            position: relative;
        }

        .task-menu-dropdown {
            position: fixed;
            background: var(--bg-surface);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            min-width: 160px;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-8px);
            transition: all 0.2s ease;
        }

        .task-menu-dropdown.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .task-menu-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            font-size: 0.9rem;
            color: var(--text-primary);
            cursor: pointer;
            transition: background 0.15s;
            border: none;
            background: transparent;
            width: 100%;
            text-align: left;
            font-family: var(--font-main);
        }

        .task-menu-item:first-child {
            border-radius: var(--radius-md) var(--radius-md) 0 0;
        }

        .task-menu-item:last-child {
            border-radius: 0 0 var(--radius-md) var(--radius-md);
        }

        .task-menu-item:hover {
            background: var(--bg-subtle);
        }

        .task-menu-item .material-icons-round {
            font-size: 18px;
            color: var(--text-secondary);
        }

        .task-menu-item.danger {
            color: var(--danger);
        }

        .task-menu-item.danger .material-icons-round {
            color: var(--danger);
        }

        /* Task Selection Mode */
        .task-card.task-selected {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3), 0 4px 12px rgba(37, 99, 235, 0.25);
        }

        html.dark-mode .task-card.task-selected {
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4), 0 4px 12px rgba(59, 130, 246, 0.3);
        }

        /* When in selection mode - hide actions and make card fully clickable */
        body.task-selection-mode .task-card {
            cursor: pointer;
        }

        body.task-selection-mode .task-card .task-actions {
            display: none !important;
        }

        body.task-selection-mode .task-card .task-content {
            pointer-events: none;
        }

        /* --- ADD TASK UPGRADE --- */
        .add-task-wrapper {
            padding: 8px 12px 16px 12px;
        }

        .input-add-task {
            width: 100%;
            background: transparent;
            border: 1px solid transparent;
            padding: 10px 12px;
            border-radius: var(--radius-sm);
            font-size: 0.95rem;
            transition: all 0.2s;
            color: var(--text-secondary);
            cursor: pointer;
        }

        .input-add-task:hover {
            background: rgba(0, 0, 0, 0.03);
            color: var(--text-primary);
        }

        .input-add-task:focus {
            background: var(--bg-surface);
            border-color: var(--accent);
            color: var(--text-primary);
            cursor: text;
        }

        .input-add-task::placeholder {
            color: var(--text-tertiary);
            font-weight: 500;
        }

        /* Quando focado, muda o placeholder */
        .input-add-task:focus::placeholder {
            color: var(--text-tertiary);
            font-weight: 400;
        }

        /* Ghost Column */
        .ghost-column {
            border: 1px dashed var(--border-light);
            border-radius: var(--radius-md);
            background: var(--bg-subtle);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s ease;
            font-weight: 500;
            padding: 16px;
            text-align: center;
        }

        .ghost-column:hover {
            border-color: var(--accent);
            color: var(--accent);
            background: var(--accent-soft);
        }

        /* --- NOTES PANEL --- */
        .notes-panel {
            width: 400px;
            background: var(--bg-surface);
            border-left: 1px solid var(--border-light);
            display: flex;
            flex-direction: column;
            transition: margin-right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            z-index: 10;
        }

        .notes-panel.collapsed {
            margin-right: -400px;
        }

        .notes-header {
            padding: 20px 24px;
            border-bottom: 1px solid var(--border-light);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--bg-app);
        }

        .notes-editor {
            flex: 1;
            padding: 32px;
            border: none;
            resize: none;
            background: var(--bg-surface);
            color: var(--text-primary);
            font-size: 1rem;
            line-height: 1.7;
        }

        .notes-editor::placeholder {
            color: var(--text-tertiary);
        }

        /* --- DETALHES TAREFA (MODAL) --- */
        .detail-group {
            margin-bottom: 24px;
        }

        .detail-label {
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-secondary);
            margin-bottom: 8px;
            display: block;
        }

        /* Tag Dots */
        .tag-selector {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            align-items: center;
        }

        .color-dot {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.2s;
        }

        .color-dot:hover {
            border-color: var(--accent);
        }

        .color-dot.selected {
            border-color: var(--text-primary);
        }

        .bg-red {
            background: #F87171;
        }

        .bg-orange {
            background: #FB923C;
        }

        .bg-green {
            background: #34D399;
        }

        .bg-blue {
            background: #60A5FA;
        }

        .bg-purple {
            background: #A78BFA;
        }

        .color-picker-btn {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid var(--border-light);
            background: linear-gradient(135deg, #FF6B6B 0%, #FFC107 25%, #34D399 50%, #3B82F6 75%, #A78BFA 100%);
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
            font-weight: bold;
        }

        .color-picker-btn:hover {
            border-color: var(--accent);
        }

        .hidden-color-input {
            display: none;
        }

        /* Custom Color Picker Modal */
        .color-picker-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--modal-overlay);
            z-index: 1100;
            display: none;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(2px);
            opacity: 0;
            transition: opacity 0.2s;
            pointer-events: none;
        }

        .color-picker-modal.open {
            display: flex;
            opacity: 1;
            pointer-events: all;
        }

        .color-picker-box {
            background: var(--bg-surface);
            padding: 28px;
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-light);
            width: 90%;
            max-width: 600px;
            max-height: 85vh;
            overflow-y: auto;
            animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes slideUp {
            from {
                transform: translateY(20px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .color-picker-title {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .color-picker-content {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: 32px;
            margin-bottom: 24px;
            align-items: start;
        }

        @media (max-width: 600px) {
            .color-picker-content {
                grid-template-columns: 1fr;
                gap: 24px;
            }
        }

        .color-wheel-container {
            flex-shrink: 0;
            display: flex;
            justify-content: center;
        }

        .color-wheel {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background: conic-gradient(from 0deg, red, yellow, lime, cyan, blue, magenta, red);
            cursor: crosshair;
            position: relative;
            transition: all 0.2s;
        }

        .color-wheel-pointer {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            border: 4px solid white;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) translate(var(--x, 0px), var(--y, 0px));
            pointer-events: none;
            transition: all 0.1s ease-out;
        }

        .color-picker-inputs {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .color-picker-input-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .color-picker-label {
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--text-secondary);
        }

        .color-picker-input-wrapper {
            display: flex;
            gap: 14px;
            align-items: center;
        }

        .color-picker-preview {
            width: 70px;
            height: 70px;
            border-radius: var(--radius-md);
            border: 2px solid var(--border-light);
            flex-shrink: 0;
            transition: all 0.2s;
        }

        .color-picker-hex {
            flex: 1;
            padding: 11px 14px;
            border: 2px solid var(--border-light);
            border-radius: var(--radius-sm);
            background: var(--bg-app);
            color: var(--text-primary);
            font-family: var(--font-main);
            font-size: 0.9rem;
            font-weight: 600;
            text-transform: uppercase;
            transition: all 0.2s;
        }

        .color-picker-hex:focus {
            border-color: var(--accent);
            outline: none;
            background: var(--bg-surface);
        }

        .color-picker-hex.error {
            border-color: var(--danger);
        }

        .color-picker-hex::placeholder {
            color: var(--text-tertiary);
        }

        .color-picker-presets {
            margin-top: 12px;
        }

        .color-picker-presets-title {
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--text-secondary);
            margin-bottom: 14px;
        }

        .color-picker-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 12px;
        }

        @media (max-width: 600px) {
            .color-picker-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        .color-preset {
            width: 100%;
            aspect-ratio: 1;
            border-radius: var(--radius-md);
            border: 3px solid transparent;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .color-preset.selected {
            border-color: var(--accent);
        }

        .color-picker-actions {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            padding-top: 20px;
            border-top: 1px solid var(--border-light);
        }

        /*
         * CHECKLIST ITEMS
         * IMPORTANTE: O site segue identidade visual FLAT DESIGN.
         * Não usar box-shadow, gradientes ou efeitos 3D.
         */
        .checklist-item {
            display: flex;
            align-items: flex-start;
            gap: 6px;
            margin-bottom: 6px;
            padding: 10px 14px;
            border-radius: 6px;
            transition: background-color 0.15s ease, border-color 0.15s ease;
            background: var(--bg-surface);
            border: 1px solid var(--border-light);
        }

        .checklist-item:hover {
            background: var(--bg-subtle);
            border-color: var(--accent);
        }

        .checklist-item.drag-over {
            border-color: var(--accent);
            background: var(--accent-soft);
            border-style: dashed;
        }

        .checklist-item.dragging {
            opacity: 0.4;
            border: 1px dashed var(--accent);
            background: transparent;
        }

        /* Inputs e botões têm cursor próprio */
        .checklist-item .checklist-input {
            cursor: text;
        }

        .checklist-item .checklist-check {
            cursor: pointer;
        }

        .checklist-item .btn-checklist-del {
            cursor: pointer;
        }

        /* --- DRAG GHOST (Elemento que segue o cursor) --- */
        .drag-ghost {
            position: fixed;
            pointer-events: none;
            z-index: 10000;
            opacity: 0.95;
            box-shadow: none;
            border-radius: var(--radius-sm);
            transition: none;
            margin: 0;
            /* Sem transform - usamos offset absoluto para manter posição relativa do cursor */
        }

        .drag-ghost.task-ghost {
            background: var(--bg-surface);
            border: 1px solid var(--accent);
        }

        .drag-ghost.column-ghost {
            background: var(--bg-subtle);
            border: 2px solid var(--accent);
            border-radius: var(--radius-md);
        }

        .drag-ghost.checklist-ghost {
            background: var(--bg-surface);
            border: 1px solid var(--accent);
            border-radius: 6px;
        }

        /* Esconde elementos internos que não devem aparecer no ghost */
        .drag-ghost .task-menu-dropdown,
        .drag-ghost .task-actions,
        .drag-ghost .add-task-wrapper {
            display: none !important;
        }

        .checklist-drag-handle {
            cursor: grab;
            color: var(--text-tertiary);
            flex-shrink: 0;
            transition: none;
            font-size: 18px;
            margin-top: 6px;
        }

        .checklist-item:hover .checklist-drag-handle {
            color: var(--text-tertiary);
        }

        .checklist-drag-handle:hover {
            color: var(--text-tertiary) !important;
        }

        .checklist-drag-handle:active {
            cursor: grabbing;
        }

        .checklist-check {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: var(--accent);
            border-radius: 4px;
            border: 1px solid var(--border-light);
            flex-shrink: 0;
            margin-top: 6px;
        }

        .checklist-input {
            flex: 1;
            border: none;
            background: transparent;
            padding: 6px 8px;
            font-size: 0.95rem;
            border-radius: 4px;
            color: var(--text-primary);
            font-family: var(--font-main);
            resize: none;
            overflow: hidden;
            min-height: 28px;
            line-height: 1.2;
            white-space: pre-wrap;
            word-break: break-word;
            -webkit-font-smoothing: antialiased;
            transition: height 0.12s ease;
        }

        .checklist-input:focus {
            background: var(--bg-subtle);
            outline: none;
            border: 1px solid var(--accent);
            padding: 5px 7px;
        }

        .checklist-input.done {
            text-decoration: line-through;
            color: var(--text-secondary);
        }

        .btn-checklist-del {
            width: 24px;
            height: 24px;
            border-radius: 4px;
            color: var(--text-tertiary);
            flex-shrink: 0;
            transition: all 0.2s;
            margin-top: 6px;
        }

        .btn-checklist-del:hover {
            color: var(--danger);
            background: rgba(239, 68, 68, 0.1);
        }

        /* Checklist Container */
        .checklist-container {
            flex: 1;
            margin-bottom: 12px;
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 0;
            padding-left: 0;
            display: flex;
            flex-direction: column;
            /* Hide native scroll visuals but keep scrolling available */
            scrollbar-width: none;
            /* Firefox */
            -ms-overflow-style: none;
            /* IE 10+ */
        }

        /* Hide WebKit scrollbar */
        .checklist-container::-webkit-scrollbar {
            width: 0;
            height: 0;
            display: none;
        }

        .checklist-container::-webkit-scrollbar-track {
            background: transparent;
        }

        .checklist-container::-webkit-scrollbar-thumb {
            background: transparent;
            /* hidden */
            border-radius: 3px;
        }

        .checklist-container::-webkit-scrollbar-thumb:hover {
            background: transparent;
        }

        /* --- NOTAS --- */
        .task-notes-area {
            flex: 1;
            padding: 12px;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            background: var(--bg-surface);
            color: var(--text-primary);
            font-size: 0.9rem;
            font-family: inherit;
            line-height: 1.5;
            word-break: break-word;
            white-space: pre-wrap;
            transition: all 0.2s;
            overflow-y: auto;
            outline: none;
            min-height: 80px;
            min-width: 0;
            resize: none;
        }

        .task-notes-area:focus {
            border-color: var(--accent);
            outline: none;
        }

        .task-notes-area:empty:before {
            content: attr(data-placeholder);
            color: var(--text-tertiary);
            pointer-events: none;
        }

        .task-notes-area a {
            color: var(--accent);
            text-decoration: none;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.2s;
        }

        .task-notes-area a:hover {
            text-decoration: underline;
            color: #1d4ed8;
        }

        /* --- SWITCH TOGGLE --- */
        .theme-switch {
            position: relative;
            width: 56px;
            height: 32px;
            display: inline-block;
            cursor: pointer;
        }

        .theme-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .switch-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--border-light);
            border-radius: 32px;
            transition: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
            display: flex;
            align-items: center;
            padding: 0 4px;
        }

        .switch-slider::before {
            content: '';
            position: absolute;
            height: 22px;
            width: 22px;
            left: 3px;
            top: 50%;
            transform: translateY(-50%);
            background-color: var(--bg-surface);
            border-radius: 50%;
            transition: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
            box-shadow: 0 2px 6px rgba(2, 6, 23, 0.3);
        }

        input:checked+.switch-slider {
            background-color: var(--accent);
        }

        input:checked+.switch-slider::before {
            transform: translate(20px, -50%);
        }

        /* Menu switch layout */
        .board-header-menu .menu-switch {
            padding: 8px 12px;
        }

        .board-header-menu .menu-switch span {
            font-size: 0.95rem;
            color: var(--text-primary);
        }

        .board-header-menu .menu-switch .theme-switch {
            width: 44px;
            height: 24px;
        }

        /* Specific overrides for the header menu switch to ensure menu styles win over generic switch CSS */
        .board-card-menu .menu-switch .theme-switch .switch-slider {
            background: var(--bg-subtle) !important;
            border-color: var(--border-light) !important;
            padding: 3px !important;
            box-shadow: none !important;
            transition: background 160ms ease, border-color 160ms ease, box-shadow 120ms ease !important;
        }

        .board-card-menu .menu-switch .theme-switch .switch-slider::before {
            left: 4px !important;
            top: 50% !important;
            transform: translateY(-50%) !important;
            width: 18px !important;
            height: 18px !important;
            background: var(--text-tertiary) !important;
            box-shadow: 0 1px 2px rgba(2, 6, 23, 0.12) !important;
        }

        .board-card-menu .menu-switch .theme-switch input:checked+.switch-slider {
            background: var(--accent) !important;
            border-color: var(--accent) !important;
            box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08) !important;
        }

        .board-card-menu .menu-switch .theme-switch input:checked+.switch-slider::before {
            left: calc(100% - 4px - 18px) !important;
            background: #fff !important;
            box-shadow: 0 4px 12px rgba(2, 6, 23, 0.12), 0 8px 20px rgba(37, 99, 235, 0.08) !important;
            transform: translateY(-50%) !important;
        }

        /* --- RESPONSIVE MODAL TASK HEADER --- */
        @media (max-width: 768px) {
            .modal-task-header-wrapper {
                height: 180px;
                margin-bottom: 20px;
            }

            .modal-task-header-content {
                padding: 20px 20px 16px;
            }

            .modal-task-title {
                font-size: 1.3rem;
            }

            .modal-task-title-input {
                font-size: 1.3rem;
                padding: 10px 14px;
                min-width: 150px;
            }

            .modal-task-header-btn {
                width: 36px;
                height: 36px;
                font-size: 18px;
            }
        }

        @media (max-width: 600px) {
            .modal-task-header-wrapper {
                height: 160px;
                margin-bottom: 16px;
            }

            .modal-task-header-content {
                padding: 16px 16px 12px;
            }

            .modal-task-title {
                font-size: 1.15rem;
            }

            .modal-task-title-input {
                font-size: 1.15rem;
                padding: 8px 12px;
                min-width: 120px;
            }

            .modal-task-header-btn {
                width: 32px;
                height: 32px;
                font-size: 16px;
                top: 12px;
                right: 12px;
            }

            .btn-reset[onclick*="closeTaskModal"] {
                width: 32px;
                height: 32px;
                top: 12px;
                left: 12px;
            }

            .modal-task-edit-actions {
                bottom: 12px;
                left: 16px;
                gap: 6px;
            }

            .modal-task-edit-btn {
                padding: 6px 12px;
                font-size: 0.8rem;
            }
        }

        /* --- RESPONSIVE MOBILE --- */
        @media (max-width: 768px) {

            /* Dashboard Mobile */
            .dashboard-container {
                padding: 0;
            }

            .dash-header {
                height: auto;
                padding: 12px 20px;
                gap: 16px;
                flex-wrap: wrap;
            }

            .dash-header-left {
                gap: 12px;
                order: 1;
                width: 100%;
            }

            .dash-logo {
                height: 32px;
            }

            .dash-title h1 {
                font-size: 1.2rem;
            }

            .dash-title p {
                font-size: 0.7rem;
            }

            .dash-header>div:nth-child(2) {
                order: 2;
                width: 100%;
                max-width: 100%;
                margin-top: 8px;
                gap: 8px;
            }

            .dash-search-wrapper {
                flex: 1;
                max-width: none;
            }

            .dash-controls {
                order: 3;
                width: 100%;
                margin-top: 8px;
            }

            .board-filter-toggle {
                width: 100%;
                min-width: 0;
                height: 48px;
            }

            .board-filter-toggle button {
                font-size: 0.9rem;
                padding: 0 12px;
            }

            .dashboard-content {
                padding: 24px 16px;
            }

            .grid-boards {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: 16px;
            }

            .board-card {
                height: 220px;
                padding: 24px;
            }

            .board-card.has-cover {
                padding: 0;
                height: auto;
            }

            .board-card.has-cover .board-card-cover {
                height: 100px;
            }

            .board-card.has-cover .board-card-content {
                padding: 20px;
            }

            .board-meta-item {
                font-size: 0.8rem;
                padding: 4px 8px;
            }

            .board-card-action {
                opacity: 1;
                pointer-events: all;
            }

            /* Workspace Mobile */
            .top-bar {
                height: 64px;
                padding: 0 16px;
                flex-wrap: wrap;
                gap: 8px;
            }

            .board-title-input {
                width: 100%;
                font-size: 1rem;
            }

            .nav-group {
                gap: 8px;
            }

            .divider {
                display: none;
            }

            /* Kanban Mobile */
            .workspace {
                flex-direction: column;
            }

            .kanban-area {
                padding: 16px 12px;
                gap: 16px;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                min-height: calc(100vh - 160px);
            }

            .kanban-area.blocks-mode {
                display: flex;
                flex-direction: column;
                flex-wrap: nowrap;
                overflow-x: hidden;
                overflow-y: auto;
                gap: 16px;
            }

            .kanban-area.blocks-mode .column,
            .kanban-area.blocks-mode .ghost-column {
                flex: 1 1 auto;
                width: 100%;
                min-width: 0;
                max-width: 100%;
                max-height: none;
                min-height: 220px;
            }

            .kanban-area.blocks-mode .ghost-column {
                min-height: 220px;
                padding: 20px;
            }

            .column,
            .ghost-column {
                min-width: 280px;
                width: 280px;
                max-height: calc(100vh - 140px);
                min-height: calc(100vh - 160px);
            }

            .task-list {
                gap: 6px;
            }

            .task-card {
                padding: 12px;
                border-radius: var(--radius-sm);
            }

            .task-card.has-cover {
                padding: 0;
            }

            .task-cover {
                height: 100px;
            }

            .task-card-content {
                padding: 12px;
            }

            .task-card:hover {
                transform: none;
                border-color: var(--border-light);
            }

            .task-actions {
                position: static;
                opacity: 1;
                background: transparent;
                padding: 0;
                margin-top: 8px;
                padding-left: 0;
                display: flex;
                gap: 8px;
            }

            .btn-icon-task {
                width: 32px;
                height: 32px;
            }

            .add-task-wrapper {
                padding: 8px 12px 12px 12px;
            }

            .input-add-task {
                padding: 12px;
                font-size: 1rem;
                -webkit-appearance: none;
                appearance: none;
            }

            /* Notes Panel Mobile */
            .notes-panel {
                width: 100%;
                border-left: none;
                border-top: 1px solid var(--border-light);
                max-height: 40%;
            }

            .notes-panel.collapsed {
                margin-right: 0;
                margin-top: -40%;
                display: none;
            }

            .notes-panel.collapsed.active {
                display: flex;
            }

            .notes-editor {
                padding: 16px;
                font-size: 1rem;
            }

            /* Modals Mobile */
            .modal-box {
                width: 95%;
                max-width: 100%;
                padding: 20px;
                max-height: 90vh;
                overflow-y: auto;
            }

            .modal-box.modal-task-layout {
                width: 95%;
                padding: 16px;
                max-height: 90vh;
            }

            .modal-task-content {
                grid-template-columns: 1fr;
                gap: 16px;
                flex: 1;
                min-height: 0;
            }

            .modal-task-column {
                min-height: auto;
                max-height: none;
                overflow-y: auto;
            }

            .detail-group {
                margin-bottom: 16px;
            }

            .detail-label {
                font-size: 0.75rem;
                margin-bottom: 6px;
            }

            /* Color Picker Mobile */
            .color-picker-box {
                width: 95%;
                padding: 20px;
            }

            .color-picker-content {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .color-wheel-container {
                justify-content: center;
            }

            .color-wheel {
                width: 160px;
                height: 160px;
            }

            .color-picker-grid {
                grid-template-columns: repeat(4, 1fr);
            }

            /* Buttons Mobile */
            .btn-ui {
                padding: 12px 16px;
                font-size: 0.95rem;
                min-height: 44px;
                min-width: 44px;
            }

            .btn-reset {
                min-height: 44px;
                min-width: 44px;
            }
        }

        @media (max-width: 480px) {

            /* Extra Small Mobile */
            .dash-header {
                padding: 12px 16px;
            }

            .dash-logo {
                height: 32px;
            }

            .dash-title h1 {
                font-size: 1.1rem;
            }

            .dash-title p {
                font-size: 0.7rem;
            }

            .dashboard-content {
                padding: 16px 12px;
            }

            .grid-boards {
                display: grid;
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .board-card {
                height: 220px;
                padding: 24px;
            }

            .board-card.has-cover {
                padding: 0;
                height: auto;
            }

            .board-card.has-cover .board-card-cover {
                height: 90px;
            }

            .board-card.has-cover .board-card-content {
                padding: 16px;
            }

            .board-card h3 {
                font-size: 1.1rem;
            }

            .board-card p {
                font-size: 0.85rem;
            }

            .dash-header {
                height: auto;
                padding: 10px 12px;
            }

            .dash-logo {
                height: 28px;
            }

            .dash-title h1 {
                font-size: 1rem;
            }

            .dash-title p {
                font-size: 0.65rem;
            }

            .top-bar {
                height: 60px;
                padding: 0 12px;
            }

            .board-title-input {
                font-size: 0.95rem;
                padding: 8px 10px;
            }

            .kanban-area {
                flex-direction: column;
                padding: 12px;
                min-height: calc(100vh - 160px);
            }

            .column,
            .ghost-column {
                min-width: 100%;
                width: 100%;
                max-height: none;
                min-height: calc(100vh - 160px);
            }

            .modal-task-content {
                gap: 12px;
                max-height: 50vh;
            }

            .modal-task-column {
                max-height: 250px;
            }

            .color-picker-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            .btn-new-board .material-icons-round {
                font-size: 36px;
            }

            .btn-new-board span {
                font-size: 0.95rem;
            }

            .bulk-actions-bar {
                height: 64px;
                padding: 0 16px;
                gap: 16px;
            }

            .bulk-actions-info {
                font-size: 0.9rem;
                gap: 8px;
            }

            .bulk-actions-buttons {
                gap: 8px;
            }

        }

        /* Landscape Mobile */
        @media (max-height: 600px) and (max-width: 1024px) {
            .dashboard-content {
                padding: 20px 16px;
            }

            .grid-boards {
                gap: 12px;
            }

            .board-card {
                height: 180px;
            }

            .top-bar {
                height: 56px;
            }

            .kanban-area {
                gap: 12px;
                padding: 12px;
                min-height: calc(100vh - 140px);
            }

            .modal-task-column {
                overflow-y: auto;
            }
        }

        /* --- TABLET & HD (1366x768) OPTIMIZATION --- */
        @media (min-width: 769px) and (max-width: 1366px) {

            /* Dashboard Tablet */
            .dash-header {
                height: 64px;
                padding: 0 32px;
                gap: 32px;
            }

            .dash-logo {
                height: 32px;
            }

            .dash-title h1 {
                font-size: 1.2rem;
            }

            .dash-title p {
                font-size: 0.75rem;
            }

            .dash-search-wrapper {
                flex: 1;
                max-width: 280px;
                height: 36px;
            }

            .dash-controls {
                gap: 8px;
            }

            .dashboard-content {
                padding: 32px 24px;
            }

            .grid-boards {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: 20px;
            }

            .board-card {
                height: 260px;
                padding: 20px;
            }

            .board-card h3 {
                font-size: 1.2rem;
            }

            .board-card p {
                font-size: 0.85rem;
            }

            .board-meta-item {
                font-size: 0.75rem;
                padding: 4px 8px;
            }

            /* Workspace Tablet */
            .top-bar {
                height: 64px;
                padding: 0 24px;
            }

            .board-title-input {
                width: 280px;
                font-size: 1rem;
            }

            .nav-group {
                gap: 12px;
            }

            /* Kanban Tablet */
            .kanban-area {
                padding: 24px 32px;
                gap: 20px;
            }

            .column {
                min-width: 300px;
                width: 300px;
                max-height: calc(100vh - 130px);
            }

            .task-card {
                padding: 12px;
            }

            .task-card.has-cover {
                padding: 0;
            }

            .task-cover {
                height: 110px;
            }

            .task-card-content {
                padding: 12px;
            }

            .task-handle {
                margin-right: 4px;
            }

            .task-content {
                font-size: 0.9rem;
            }

            /* Notes Panel Tablet */
            .notes-panel {
                width: 360px;
            }

            .notes-editor {
                padding: 24px;
                font-size: 0.95rem;
            }

            /* Modals Tablet */
            .modal-box {
                width: 90%;
                max-width: 420px;
                padding: 20px;
            }

            .modal-box.modal-task-layout {
                max-width: 1000px;
                width: 92%;
                padding: 20px;
                max-height: 85vh;
            }

            .modal-task-content {
                grid-template-columns: repeat(3, 1fr);
                gap: 16px;
                max-height: 55vh;
            }

            .modal-task-column {
                min-height: 360px;
                padding: 16px;
            }

            .detail-group {
                margin-bottom: 20px;
            }

            .detail-label {
                font-size: 0.8rem;
            }

            /* Color Picker Tablet */
            .color-picker-box {
                width: 90%;
                max-width: 550px;
                padding: 24px;
            }

            .color-wheel {
                width: 180px;
                height: 180px;
            }

            .color-picker-preview {
                width: 60px;
                height: 60px;
            }

            /* Bulk Actions Tablet */
            .bulk-actions-bar {
                height: 64px;
                padding: 0 32px;
                gap: 20px;
            }

            .bulk-actions-info {
                font-size: 0.95rem;
            }
        }

        /* --- SMALL LAPTOP / HD SCREENS (1280px - 1440px, max-height 800px) --- */
        @media (min-width: 1280px) and (max-width: 1440px) and (max-height: 800px) {

            /* Dashboard Header */
            .dash-header {
                height: 56px;
                padding: 0 24px;
                gap: 20px;
            }

            .dash-logo {
                height: 28px;
            }

            .dash-logo img {
                height: 28px;
            }

            .dash-title h1 {
                font-size: 1.05rem;
            }

            .dash-title p {
                font-size: 0.65rem;
                display: none;
            }

            .dash-search-wrapper {
                max-width: 220px;
                height: 32px;
            }

            .dash-search-input {
                font-size: 0.85rem;
            }

            .dash-controls {
                gap: 6px;
            }

            .dash-controls .btn-reset {
                padding: 6px;
            }

            .dash-controls .material-icons-round {
                font-size: 20px;
            }

            /* Dashboard Content */
            .dashboard-content {
                padding: 20px 24px;
            }

            /* Board Filter Bar */
            .board-filter-bar {
                gap: 16px;
                padding-bottom: 12px;
            }

            .board-filter-title {
                font-size: 1.15rem;
            }

            .board-filter-subtitle {
                font-size: 0.8rem;
            }

            .board-filter-toggle {
                height: 40px;
                padding: 3px;
            }

            .board-filter-toggle button {
                padding: 6px 12px;
                font-size: 0.85rem;
                height: 34px;
            }

            .board-filter-toggle button .material-icons-round {
                font-size: 16px;
            }

            .board-filter-count {
                min-width: 22px;
                height: 18px;
                font-size: 0.7rem;
                padding: 0 6px;
            }

            /* Board Grid */
            .board-list-grid {
                grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
                gap: 16px;
                margin-top: 12px;
            }

            .board-card {
                height: 200px;
            }

            .board-card.has-cover {
                height: 200px;
            }

            .board-card-cover {
                height: 90px;
            }

            .board-card-content {
                padding: 14px;
            }

            .board-card:not(.has-cover) .board-card-content {
                padding: 16px;
            }

            .board-card.pinned:not(.has-cover) .board-card-content {
                padding-top: 44px;
            }

            .board-card h3 {
                font-size: 1rem;
                margin-bottom: 4px;
            }

            .board-card p {
                font-size: 0.75rem;
                margin-bottom: 8px;
                line-height: 1.4;
            }

            .board-meta {
                gap: 6px;
            }

            .board-meta-item {
                font-size: 0.65rem;
                padding: 3px 6px;
                gap: 2px;
            }

            .board-meta-item .material-icons-round {
                font-size: 12px;
            }

            .board-card-action {
                width: 32px;
                height: 32px;
                top: 10px;
                right: 10px;
            }

            .board-card-action .material-icons-round {
                font-size: 18px;
            }

            .pin-indicator {
                top: 10px;
                left: 10px;
            }

            .pin-indicator .material-icons-round {
                font-size: 16px;
            }

            .btn-new-board {
                min-height: 200px;
            }

            .btn-new-board .material-icons-round {
                font-size: 32px;
            }

            .btn-new-board span {
                font-size: 0.85rem;
            }

            /* Workspace Top Bar */
            .top-bar {
                height: 54px;
                padding: 0 20px;
            }

            .board-title-input {
                width: 220px;
                font-size: 0.9rem;
                padding: 6px 10px;
            }

            .nav-group {
                gap: 8px;
            }

            .divider {
                height: 20px;
            }

            .view-mode-toggle {
                height: 38px;
                padding: 3px;
            }

            .view-mode-toggle button {
                padding: 6px 10px;
                height: 32px;
                font-size: 0.8rem;
            }

            .view-mode-toggle button .material-icons-round {
                font-size: 16px;
            }

            .collab-presence-tray {
                min-height: 38px;
                gap: 6px;
            }

            .collab-presence-tray .presence-chip {
                width: 30px;
                height: 30px;
                font-size: 0.75rem;
            }

            /* Pomodoro Timer */
            .pomodoro-timer {
                padding: 6px 12px;
                gap: 8px;
            }

            .pomodoro-display {
                font-size: 0.9rem;
                min-width: 44px;
            }

            .pomodoro-btn {
                width: 28px;
                height: 28px;
            }

            .pomodoro-btn .material-icons-round {
                font-size: 16px;
            }

            /* Kanban Area */
            .kanban-area {
                padding: 16px 20px;
                gap: 14px;
                min-height: calc(100vh - 54px);
            }

            .column,
            .ghost-column {
                min-width: 260px;
                width: 260px;
                max-height: calc(100vh - 90px);
                min-height: calc(100vh - 120px);
            }

            .column-header {
                padding: 10px 10px 6px 10px;
            }

            .col-title {
                font-size: 0.85rem;
                padding: 3px 6px;
            }

            .col-drag-handle .material-icons-round {
                font-size: 18px;
            }

            .btn-del-column .material-icons-round {
                font-size: 18px;
            }

            .task-list {
                padding: 6px 8px;
                gap: 6px;
            }

            .task-card {
                padding: 10px;
            }

            .task-card.has-cover {
                padding: 0;
            }

            .task-cover {
                height: 80px;
            }

            .task-card-content {
                padding: 10px;
            }

            .task-handle {
                font-size: 16px;
                margin-right: 2px;
            }

            .task-content {
                font-size: 0.8rem;
                line-height: 1.35;
            }

            .task-meta {
                margin-top: 6px;
                padding-left: 24px;
                gap: 4px;
            }

            .tag-pill {
                font-size: 0.6rem;
                padding: 2px 5px;
            }

            .meta-info {
                font-size: 0.65rem;
                padding: 2px 5px;
            }

            .meta-info .material-icons-round {
                font-size: 11px;
            }

            .task-actions {
                top: 4px;
                right: 4px;
                gap: 2px;
            }

            .btn-icon-task {
                width: 22px;
                height: 22px;
            }

            .btn-icon-task .material-icons-round {
                font-size: 14px;
            }

            .add-task-wrapper {
                padding: 6px 8px 10px 8px;
            }

            .input-add-task {
                padding: 8px;
                font-size: 0.8rem;
            }

            /* Blocks Mode */
            .kanban-area.blocks-mode {
                padding: 16px 20px;
                --block-gap: 14px;
            }

            .kanban-area.blocks-mode .column,
            .kanban-area.blocks-mode .ghost-column {
                min-height: 220px;
            }

            /* Notes Panel */
            .notes-panel {
                width: 280px;
            }

            .notes-header {
                padding: 12px 16px;
            }

            .notes-header h3 {
                font-size: 0.9rem;
            }

            .notes-editor {
                padding: 16px;
                font-size: 0.85rem;
            }

            /* Modals - General */
            .modal-box {
                padding: 16px;
                max-width: 380px;
            }

            .modal-header {
                margin-bottom: 14px;
            }

            .modal-title {
                font-size: 1rem;
            }

            .modal-desc {
                font-size: 0.8rem;
            }

            .btn-ui {
                padding: 8px 14px;
                font-size: 0.8rem;
            }

            .btn-close-modal {
                width: 32px;
                height: 32px;
            }

            .btn-close-modal .material-icons-round {
                font-size: 18px;
            }

            /* Task Modal */
            .modal-box.modal-task-layout {
                max-width: 900px;
                width: 92%;
                max-height: 85vh;
            }

            .modal-task-header-wrapper {
                height: 140px;
            }

            .modal-task-header-content {
                padding: 16px 18px 14px;
            }

            .modal-task-title {
                font-size: 1.15rem;
                padding: 3px 6px;
            }

            .modal-task-header-btn {
                width: 32px;
                height: 32px;
                top: 12px;
                right: 12px;
            }

            .modal-task-header-btn .material-icons-round {
                font-size: 18px;
            }

            .modal-task-content {
                grid-template-columns: repeat(3, 1fr);
                gap: 12px;
                max-height: 45vh;
                margin: 12px 0;
                padding: 0 16px;
            }

            .modal-task-column {
                min-height: 260px;
                padding: 12px;
            }

            .modal-task-column-title {
                font-size: 0.7rem;
                margin-bottom: 10px;
            }

            .detail-group {
                margin-bottom: 14px;
            }

            .detail-label {
                font-size: 0.7rem;
                margin-bottom: 5px;
            }

            .detail-input,
            .detail-textarea {
                padding: 8px 10px;
                font-size: 0.8rem;
            }

            .detail-textarea {
                min-height: 80px;
            }

            .checklist-add-input {
                padding: 8px 10px;
                font-size: 0.8rem;
            }

            .checklist-item {
                padding: 8px 10px;
            }

            .checklist-item-text {
                font-size: 0.8rem;
            }

            .modal-task-footer {
                padding: 12px 16px;
                gap: 10px;
            }

            /* Edit Board Modal */
            .modal-box.modal-edit-board-layout {
                max-width: 480px;
            }

            .modal-edit-board-header-wrapper {
                height: 140px;
            }

            .modal-edit-board-header-content {
                padding: 16px;
            }

            .modal-edit-board-title {
                font-size: 1.1rem;
            }

            .modal-edit-board-content {
                padding: 16px;
            }

            /* Share Modal */
            .modal-share-box {
                max-width: 440px;
                gap: 14px;
            }

            .share-section {
                padding: 14px;
                gap: 10px;
            }

            .share-label {
                font-size: 0.7rem;
            }

            .collaborators-list {
                gap: 8px;
                max-height: 140px;
            }

            .collaborator-item {
                padding: 10px;
            }

            .collaborator-email {
                font-size: 0.85rem;
            }

            .collaborator-meta {
                font-size: 0.7rem;
            }

            .collaborator-form input[type="email"] {
                padding: 10px;
                font-size: 0.85rem;
            }

            /* Settings Modal */
            .modal-box.modal-settings-layout {
                max-width: 500px;
                max-height: 80vh;
            }

            .settings-section {
                padding: 14px 0;
            }

            .settings-section-title {
                font-size: 0.7rem;
            }

            .settings-item {
                padding: 10px 0;
                gap: 12px;
            }

            .settings-item-info h4 {
                font-size: 0.9rem;
            }

            .settings-item-info p {
                font-size: 0.75rem;
            }

            /* Color Picker */
            .color-picker-box {
                max-width: 450px;
                padding: 18px;
            }

            .color-picker-title {
                font-size: 0.95rem;
                margin-bottom: 16px;
            }

            .color-wheel {
                width: 140px;
                height: 140px;
            }

            .color-picker-preview {
                width: 44px;
                height: 44px;
            }

            .color-picker-hex {
                font-size: 0.75rem;
                padding: 6px 8px;
            }

            .color-picker-grid {
                gap: 8px;
            }

            .color-preset {
                width: 36px;
                height: 36px;
            }

            /* Bulk Actions */
            .bulk-actions-bar {
                height: 54px;
                padding: 0 16px;
                gap: 12px;
                min-height: 54px;
                max-width: 380px;
                bottom: 16px;
                left: 16px;
            }

            .bulk-actions-info {
                font-size: 0.8rem;
                gap: 8px;
            }

            .bulk-actions-info .material-icons-round {
                font-size: 18px;
            }

            .bulk-actions-buttons {
                gap: 8px;
            }

            .bulk-actions-buttons .btn-ui {
                padding: 6px 12px;
                font-size: 0.8rem;
            }

            /* Toast */
            .toast-container {
                bottom: 16px;
                right: 16px;
            }

            .toast {
                padding: 12px 16px;
                min-width: 280px;
                max-width: 360px;
            }

            .toast-title {
                font-size: 0.85rem;
            }

            .toast-message {
                font-size: 0.75rem;
            }
        }

        /* --- EXTRA OPTIMIZATION FOR EXACTLY 1366x768 --- */
        @media (width: 1366px) and (height: 768px) {
            .board-list-grid {
                grid-template-columns: repeat(5, 1fr);
            }

            .kanban-area.blocks-mode {
                --block-column-width: calc((100% - (var(--block-gap) * 4)) / 5);
            }
        }

        /* Touch Device Optimizations */
        @media (hover: none) and (pointer: coarse) {
            .board-card:hover {
                border-color: var(--border-light);
                transform: none;
            }

            .task-card:hover {
                border-color: var(--accent);
                transform: none;
            }

            .color-dot:hover {
                transform: none;
            }

            .color-preset:hover {
                transform: none;
            }

            /* Aumenta tamanho dos botões para toque */
            .btn-reset {
                min-width: 44px;
                min-height: 44px;
            }

            .btn-ui {
                min-height: 44px;
            }

            .color-dot {
                width: 32px;
                height: 32px;
            }

            .input-add-task:focus::placeholder {
                font-size: 0.95rem;
            }
        }

        /* --- TOAST NOTIFICATION --- */
        .toast-container {
            position: fixed;
            bottom: 24px;
            right: 24px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            z-index: 1000;
            pointer-events: none;
        }

        .toast {
            background: var(--bg-surface);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            padding: 16px 20px;
            display: flex;
            align-items: center;
            gap: 16px;
            pointer-events: all;
            animation: slideInUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            min-width: 320px;
            max-width: 420px;
            position: relative;
            overflow: hidden;
        }

        .toast.removing {
            animation: slideOutDown 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }

        .toast-content {
            display: flex;
            flex-direction: column;
            gap: 4px;
            flex: 1;
        }

        .toast-title {
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--text-primary);
        }

        .toast-message {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .toast-undo {
            background: var(--accent);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: var(--radius-sm);
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
            flex-shrink: 0;
            font-family: var(--font-main);
        }

        .toast-undo:hover {
            background: #1d4ed8;
        }

        .toast-timer {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 3px;
            background: var(--accent);
            border-radius: 0 0 var(--radius-md) 0;
            animation: timerBar 5s linear forwards;
        }

        @keyframes slideInUp {
            from {
                transform: translateY(100%);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        @keyframes slideOutDown {
            from {
                transform: translateY(0);
                opacity: 1;
            }

            to {
                transform: translateY(100%);
                opacity: 0;
            }
        }

        @keyframes timerBar {
            from {
                width: 100%;
            }

            to {
                width: 0%;
            }
        }


        /* --- TELA DE MOBILE INDISPONÍVEL --- */
        .mobile-unavailable {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
            background: var(--bg-app);
            z-index: 9999;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .mobile-unavailable.active {
            display: flex;
        }

        .mobile-unavailable-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 24px;
            text-align: center;
            max-width: 300px;
        }

        .mobile-unavailable-logo {
            width: 80px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .mobile-unavailable-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .mobile-unavailable-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-primary);
            margin: 0;
            letter-spacing: -0.01em;
        }

        .mobile-unavailable-message {
            font-size: 0.95rem;
            color: var(--text-secondary);
            line-height: 1.6;
            margin: 0;
        }

        .mobile-logo-light,
        .mobile-logo-dark {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: opacity 0.3s ease;
        }

        .mobile-unavailable-icon {
            font-size: 48px;
            color: var(--accent);
            margin-bottom: 12px;
        }

        @media (max-width: 768px) {
            .mobile-unavailable.active~* {
                display: none !important;
            }
        }