/* Focus Engine - Core Stylesheet */

/* Custom Properties & Color Palette */
:root {
    --bg-primary: #090d16;
    --bg-secondary: #0f172a;
    --sidebar-bg: #090d16;
    --card-bg: rgba(30, 41, 59, 0.4);
    --card-bg-solid: #1e293b;
    --border-color: rgba(71, 85, 105, 0.3);
    --border-color-glow: rgba(99, 102, 241, 0.3);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-accent: #6366f1;
    --color-accent-grad: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #06b6d4;
    
    --glass-blur: blur(12px);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --glow-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* Grayscale Mode Override */
body.grayscale-active {
    filter: grayscale(100%) contrast(105%) !important;
}

/* App container visible by default for multi-tenant accounts */

/* Base Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(circle at top right, #1e1b4b 0%, var(--bg-primary) 60%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: block;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Main Container Layout */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Sidebar Styling */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
    z-index: 100;
    position: relative;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand {
    position: relative;
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.sidebar-toggle-btn {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
    padding: 0;
}

.sidebar-toggle-btn:hover {
    color: var(--text-primary);
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.sidebar-toggle-btn i {
    font-size: 10px;
}

.brand-icon {
    font-size: 28px;
    background: var(--color-accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
    flex-shrink: 0;
}

.sidebar .brand-text {
    opacity: 1;
    max-width: 150px;
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s ease, max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 1px;
}

.brand-text span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-top: 0;
}

.sidebar-nav {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: padding 0.3s ease, justify-content 0.3s ease, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}

.nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.sidebar .nav-item span {
    opacity: 1;
    max-width: 180px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s ease, max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Collapsed Sidebar overrides */
.sidebar.collapsed {
    width: 72px;
}

.sidebar.collapsed .brand-text {
    opacity: 0;
    max-width: 0;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 12px;
    gap: 0;
}

.sidebar.collapsed .nav-item span {
    opacity: 0;
    max-width: 0;
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--border-color-glow);
    box-shadow: inset 0 0 10px rgba(99, 102, 241, 0.05);
}

.nav-item.active i {
    color: var(--color-accent);
    filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.5));
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.grayscale-toggle-container,
.notification-toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-meta {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-ok {
    color: var(--color-success);
}

/* Switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color-solid, #334155);
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}

input:checked + .slider {
    background-color: var(--color-accent);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Main Panel Layout */
.main-panel {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Panel Header */
.panel-header {
    height: 64px;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(9, 13, 22, 0.5);
    backdrop-filter: var(--glass-blur);
    flex-shrink: 0;
    position: relative;
    z-index: 50;
}

#view-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.header-left {
    min-width: 0;
    flex-shrink: 1;
}

#view-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.active-project-badge {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(244, 63, 94, 0.12) 100%);
    border: 1.5px solid rgba(239, 68, 68, 0.45);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.12);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: active-badge-pulse 3s infinite ease-in-out;
    transition: var(--transition-smooth);
    
    /* Absolute Centering on Desktop */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 10;
}

@keyframes active-badge-pulse {
    0%, 100% {
        border-color: rgba(239, 68, 68, 0.45);
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.12);
    }
    50% {
        border-color: rgba(244, 63, 94, 0.85);
        box-shadow: 0 0 25px rgba(244, 63, 94, 0.35);
    }
}

.badge-label {
    color: var(--text-muted);
    font-weight: 500;
}

.badge-value {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.clock-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 6px;
}

/* Content Area */
.content-container {
    padding: 10px 12px;
    flex-grow: 1;
    overflow-y: auto;
}

/* View Sections */
.view-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Grid layout & cards */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

@media (max-width: 1200px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.card-header {
    padding: 18px;
}

.card-header.border-bottom {
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.card-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}

.card-body {
    padding: 18px;
}

.icon-accent {
    color: var(--color-accent);
    filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.4));
}

/* Buttons */
.btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--color-accent-grad);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* Mind Dump Area */
.card-dump textarea {
    width: 100%;
    height: 96px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: var(--transition-smooth);
}

.card-dump textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.dump-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.char-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* Triage Workspace Matrix */
.triage-workspace {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workspace-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
}

.workspace-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

#mind-dump .grid-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mind-dump-top-row {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 16px auto;
}

#mind-dump .card-dump {
    width: 100%;
}

#mind-dump .card-dump .card-header {
    padding: 14px 20px 8px 20px;
}

#mind-dump .card-dump .card-body {
    padding: 8px 20px 14px 20px;
}

.card-current-focus {
    border-color: rgba(239, 68, 68, 0.2) !important;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.45) 0%, rgba(239, 68, 68, 0.04) 100%) !important;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.05);
    display: flex;
    flex-direction: column;
}

.card-current-focus:hover {
    border-color: rgba(239, 68, 68, 0.45) !important;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.15) !important;
}

#mind-dump .triage-workspace {
    width: 100%;
}

.triage-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 8px;
    width: 100%;
}

.triage-columns .triage-column {
    flex: 1 1 200px;
    min-width: 0;
}

/* Explicit column-count variants used in HTML (made no-op for flex compatibility) */
.triage-columns.seven-cols,
.triage-columns.five-cols,
.triage-columns.four-cols,
.triage-columns.three-cols {
    display: flex;
}

.triage-columns.centered-row {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.column-header[draggable="true"] {
    cursor: grab;
    user-select: none;
}
.column-header[draggable="true"]:active {
    cursor: grabbing;
}
.triage-column.dragging-column {
    opacity: 0.35;
    border: 1px dashed var(--color-accent) !important;
}

@media (max-width: 1300px) {
    .triage-columns {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .triage-columns {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }
    .triage-columns .triage-column {
        width: 100% !important;
        min-width: 100% !important;
        flex: 1 1 auto !important;
    }
}

/* Unsorted Tasks (Backlog) column */
.triage-column.col-backlog {
    border-color: rgba(99, 102, 241, 0.3) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(99, 102, 241, 0.06) 100%) !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.05);
}
.col-backlog h4 i { color: #818cf8 !important; filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.35)); }

.triage-column.col-done {
    border-color: rgba(16, 185, 129, 0.35) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(16, 185, 129, 0.08) 100%) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
}

.col-done h4 i {
    color: var(--color-success) !important;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.triage-item.triage-item-done {
    border-color: rgba(16, 185, 129, 0.5) !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(245, 158, 11, 0.04) 100%) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1), 0 0 4px rgba(245, 158, 11, 0.05) !important;
}

.triage-item.triage-item-done:hover {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25), 0 0 10px rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.6) !important;
}

.triage-done-trophy {
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
    margin-right: 4px;
}

.magical-goals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.triage-column {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px;
    height: auto;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.column-header h4 {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.col-backlog h4 i { color: #818cf8; }
.col-active h4 i { color: #ef4444 !important; text-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
.triage-column.col-active {
    border-color: rgba(239, 68, 68, 0.35) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(239, 68, 68, 0.08) 100%) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.05);
}
.triage-column.col-tomorrow {
    border-color: rgba(6, 182, 212, 0.25) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(6, 182, 212, 0.05) 100%) !important;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.03);
}
.col-tomorrow h4 i {
    color: var(--color-info) !important;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.45);
}
.triage-column.col-parking {
    border-color: rgba(168, 85, 247, 0.25) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(168, 85, 247, 0.05) 100%) !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.03);
}
.col-parking h4 i { color: #c084fc !important; text-shadow: 0 0 10px rgba(168, 85, 247, 0.45); }
.col-archive h4 i { color: var(--text-muted); }

.count-badge {
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--text-secondary);
}

.column-list {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: visible;
    overflow-x: hidden;
    padding-top: 8px; /* Safe space to prevent header/line overlap on hover */
}

.column-list:empty::after {
    content: attr(placeholder);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin: auto;
    padding: 16px 10px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Triage Card Item */
.triage-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 5px 7px 4px 7px;
    cursor: grab;
    transition: var(--transition-smooth);
    user-select: none;
    position: relative;
    animation: zoomIn 0.2s ease-out;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.triage-item:active {
    cursor: grabbing;
}

.triage-item:hover {
    border-color: var(--color-accent);
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 12px rgba(99, 102, 241, 0.1);
    z-index: 10;
}

.triage-item-text {
    font-size: 13px;
    word-break: break-word;
    padding-right: 0;
    line-height: 1.4;
    display: inline-block;
    max-width: 100%;
    width: auto;
    align-self: flex-start;
}

.triage-item.triage-item-done .triage-item-text {
    text-decoration: none;
}

.triage-item-controls {
    position: static;
    transform: none;
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    opacity: 0;
    transition: var(--transition-smooth);
    margin-top: 2px;
}

.triage-item:hover .triage-item-controls {
    opacity: 1;
}

.triage-control-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 24px; /* Increased from 20px for easier clicking */
    height: 24px; /* Increased from 20px */
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px; /* Increased from 11px */
    transition: var(--transition-smooth);
}

.triage-control-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.triage-control-btn.btn-backlog:hover {
    color: var(--color-info);
    background: rgba(6, 182, 212, 0.1);
}

.triage-control-btn.btn-active:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.triage-control-btn.btn-parking:hover {
    color: var(--color-warning);
    background: rgba(245, 158, 11, 0.1);
}

.triage-control-btn.btn-time-priority:hover {
    color: var(--color-accent) !important;
    background: rgba(99, 102, 241, 0.1) !important;
}

.triage-control-btn.btn-archive:hover {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
}

.triage-control-btn.btn-delete:hover {
    color: var(--color-danger);
    background: rgba(239, 68, 68, 0.1);
}

/* One Bridge Task List */
.one-bridge-container {
    max-width: 800px;
    margin: 0 auto;
}

.title-area h3 {
    font-size: 20px;
    color: var(--text-primary);
}

.title-area p {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400 !important;
}

.progress-area {
    width: 200px;
}

.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
    margin-bottom: 4px;
}

.progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--color-accent-grad);
    border-radius: 3px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bridge-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.task-inputs {
    display: flex;
    gap: 12px;
}

.task-inputs input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
}

.task-inputs input:focus {
    border-color: var(--color-accent);
}

.tasks-wrapper {
    min-height: 250px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.task-row:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(30, 41, 59, 0.7);
}

.task-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
}

.task-checkbox-btn {
    background: transparent;
    border: 2px solid var(--text-muted);
    border-radius: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 10px;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.task-checkbox-btn:hover {
    border-color: var(--color-accent);
    color: rgba(99, 102, 241, 0.3);
}

.task-row.completed .task-checkbox-btn {
    border-color: var(--color-success);
    background: var(--color-success);
    color: white;
}

.task-text {
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.task-row.completed .task-text {
    text-decoration: none;
}

.task-actions {
    display: flex;
    gap: 8px;
}

.btn-task-action {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-task-action:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-task-action.delete:hover {
    color: var(--color-danger);
    background: rgba(239, 68, 68, 0.1);
}

.btn-task-action.focus-aim:hover {
    color: var(--color-warning);
    background: rgba(245, 158, 11, 0.1);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    gap: 12px;
}

.empty-icon {
    font-size: 36px;
    background: var(--color-accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.6;
}

/* Focus Shield Timer Layout */
.timer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .timer-grid {
        grid-template-columns: 1fr;
    }
}

.timer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.timer-controls-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.session-selector {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 30px;
    gap: 4px;
}

.session-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.session-btn:hover {
    color: var(--text-primary);
}

.session-btn.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.timer-display-container {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    transition: box-shadow 0.5s ease;
}

.timer-ring-svg {
    transform: rotate(-90deg);
}

.timer-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.02);
    stroke-width: 8px;
}

.timer-ring-progress {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 8px;
    stroke-linecap: round;
    stroke-dasharray: 880; /* 2 * PI * r = 2 * 3.14159 * 140 = ~879.6 */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.1s linear, stroke 0.3s ease;
}

/* Active Timer Animations */
.timer-display-container::before,
.timer-display-container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

/* Outer rotating dashed ring */
.timer-display-container::before {
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed rgba(99, 102, 241, 0.2);
}

/* Glowing conic gradient halo */
.timer-display-container::after {
    top: -18px;
    left: -18px;
    right: -18px;
    bottom: -18px;
    background: conic-gradient(
        from 0deg,
        rgba(99, 102, 241, 0) 0%,
        rgba(99, 102, 241, 0.3) 25%,
        rgba(168, 85, 247, 0.7) 50%,
        rgba(99, 102, 241, 0.3) 75%,
        rgba(99, 102, 241, 0) 100%
    );
    -webkit-mask: radial-gradient(circle, transparent 68%, black 69%);
    mask: radial-gradient(circle, transparent 68%, black 69%);
}

/* Active State Trigger */
.timer-display-container.timer-active::before {
    opacity: 1;
    animation: rotate-clockwise 20s linear infinite;
}

.timer-display-container.timer-active::after {
    opacity: 1;
    animation: rotate-counter-clockwise 8s linear infinite;
}

/* Focus Mode active glow */
.timer-display-container.timer-active.timer-mode-focus {
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.25), inset 0 0 15px rgba(99, 102, 241, 0.1);
}
.timer-display-container.timer-mode-focus::before {
    border-color: rgba(99, 102, 241, 0.25);
}
.timer-display-container.timer-mode-focus::after {
    background: conic-gradient(
        from 0deg,
        rgba(99, 102, 241, 0) 0%,
        rgba(99, 102, 241, 0.3) 25%,
        rgba(168, 85, 247, 0.7) 50%,
        rgba(99, 102, 241, 0.3) 75%,
        rgba(99, 102, 241, 0) 100%
    );
}

/* Short Break Mode active glow */
.timer-display-container.timer-active.timer-mode-short {
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.25), inset 0 0 15px rgba(16, 185, 129, 0.1);
}
.timer-display-container.timer-mode-short::before {
    border-color: rgba(16, 185, 129, 0.25);
}
.timer-display-container.timer-mode-short::after {
    background: conic-gradient(
        from 0deg,
        rgba(16, 185, 129, 0) 0%,
        rgba(16, 185, 129, 0.3) 25%,
        rgba(52, 211, 153, 0.7) 50%,
        rgba(16, 185, 129, 0.3) 75%,
        rgba(16, 185, 129, 0) 100%
    );
}

/* Long Break Mode active glow */
.timer-display-container.timer-active.timer-mode-long {
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.25), inset 0 0 15px rgba(6, 182, 212, 0.1);
}
.timer-display-container.timer-mode-long::before {
    border-color: rgba(6, 182, 212, 0.25);
}
.timer-display-container.timer-mode-long::after {
    background: conic-gradient(
        from 0deg,
        rgba(6, 182, 212, 0) 0%,
        rgba(6, 182, 212, 0.3) 25%,
        rgba(34, 211, 238, 0.7) 50%,
        rgba(6, 182, 212, 0.3) 75%,
        rgba(6, 182, 212, 0) 100%
    );
}

/* Stroke color changes by mode */
.timer-mode-focus .timer-ring-progress {
    stroke: var(--color-accent);
}
.timer-mode-short .timer-ring-progress {
    stroke: var(--color-success);
}
.timer-mode-long .timer-ring-progress {
    stroke: var(--color-info);
}

/* Pulse progress stroke and glow when running */
.timer-display-container.timer-active .timer-ring-progress {
    animation: pulse-stroke 3s ease-in-out infinite alternate;
}

@keyframes rotate-clockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-counter-clockwise {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes pulse-stroke {
    0% {
        stroke-width: 8px;
        filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.4));
    }
    100% {
        stroke-width: 10px;
        filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.8));
    }
}

/* Override progress pulse colors depending on mode */
.timer-display-container.timer-active.timer-mode-short .timer-ring-progress {
    animation: pulse-stroke-short 3s ease-in-out infinite alternate;
}
.timer-display-container.timer-active.timer-mode-long .timer-ring-progress {
    animation: pulse-stroke-long 3s ease-in-out infinite alternate;
}

@keyframes pulse-stroke-short {
    0% {
        stroke-width: 8px;
        filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.4));
    }
    100% {
        stroke-width: 10px;
        filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.8));
    }
}

@keyframes pulse-stroke-long {
    0% {
        stroke-width: 8px;
        filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.4));
    }
    100% {
        stroke-width: 10px;
        filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.8));
    }
}

.timer-text-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-time {
    font-family: 'Outfit', sans-serif;
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.timer-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-top: 8px;
    text-transform: uppercase;
}

.timer-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-timer {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-timer:hover {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.08);
}

.btn-timer.btn-play {
    width: 64px;
    height: 64px;
    background: var(--color-accent-grad);
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-timer.btn-play:hover {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
    transform: scale(1.05);
}

.btn-timer.btn-zen {
    background: rgba(255, 255, 255, 0.03);
}

/* Fullscreen Zen Focus Mode Overlay */
.zen-mode-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 12, 0.65);
    backdrop-filter: blur(6px) saturate(130%);
    -webkit-backdrop-filter: blur(6px) saturate(130%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
    animation: fadeInZen 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInZen {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(6px);
    }
}

.btn-exit-zen {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    z-index: 10000;
}

.btn-exit-zen:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.zen-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 650px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.zen-target-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.zen-target-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.zen-target-text {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    text-shadow: 0 0 25px rgba(99, 102, 241, 0.2);
    margin: 0;
}

.zen-project-meta {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.zen-mode-overlay .timer-display-container {
    transform: scale(1.15);
    margin: 20px 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.zen-mode-overlay .timer-buttons {
    margin-top: 5px;
    gap: 16px;
}

/* Responsive vertical constraints to keep controls fully on-screen */
@media (max-height: 850px) {
    .zen-overlay-content {
        gap: 24px;
    }
    .zen-target-text {
        font-size: 28px;
    }
    .zen-mode-overlay .timer-display-container {
        transform: scale(1.08);
        margin: 15px 0;
    }
}

@media (max-height: 720px) {
    .zen-overlay-content {
        gap: 16px;
    }
    .zen-target-text {
        font-size: 24px;
    }
    .zen-mode-overlay .timer-display-container {
        transform: scale(0.95);
        margin: 10px 0;
    }
    .zen-mode-overlay .timer-buttons {
        margin-top: 0px;
        gap: 12px;
    }
}

@media (max-height: 600px) {
    .zen-overlay-content {
        gap: 8px;
    }
    .zen-target-text {
        font-size: 20px;
    }
    .zen-project-meta {
        font-size: 12px;
    }
    .zen-mode-overlay .timer-display-container {
        transform: scale(0.82);
        margin: 5px 0;
    }
}

.zen-mode-overlay .btn-timer {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary) !important;
}

.zen-mode-overlay .btn-timer i {
    color: var(--text-primary) !important;
}

.zen-mode-overlay .btn-timer:hover {
    background: rgba(255, 255, 255, 0.1);
}

.zen-mode-overlay .btn-timer.btn-play {
    background: var(--color-accent-grad);
}

.zen-mode-overlay .btn-timer.btn-play i {
    color: #ffffff !important;
}

.zen-mode-overlay .btn-timer.btn-zen {
    /* Hide the zen button while already in zen mode */
    display: none !important;
}

/* Active Shield focus info */
/* Active Shield focus info - Premium Focus Red Theme */
.current-focus-card {
    display: flex;
    flex-direction: column;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.current-focus-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 300px;
    gap: 24px;
}

.active-task-container {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(244, 63, 94, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.08);
    position: relative;
    overflow: hidden;
}

.active-task-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ef4444 0%, #ec4899 100%);
}

.active-task-header {
    font-size: 11px;
    font-weight: 800;
    color: #f43f5e;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.active-task-text {
    font-family: 'Outfit', sans-serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.active-task-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.active-task-meta span {
    color: var(--text-primary);
    font-weight: 600;
}

.focus-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.stat-val {
    display: block;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--color-accent);
}

.stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.focus-audio-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audio-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.select-audio {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 36px 10px 12px;
    border-radius: 8px;
    outline: none;
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    transition: var(--transition-smooth);
}

.select-audio:focus, .select-audio:hover {
    border-color: var(--color-accent);
    background-color: rgba(15, 23, 42, 0.8);
}

.select-audio option {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 10px;
}

/* Habit Stack API Builder & List */
.habit-stack-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    color: white;
}

.badge-accent {
    background: var(--color-accent);
}

.badge-primary {
    background: var(--color-success);
}

.form-group input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    border-color: var(--color-accent);
}

.arrow-down {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Habits list display */
.habits-list-container {
    max-height: 260px;
    overflow-y: auto;
    margin-bottom: 24px;
}

.habits-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.habit-row {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
    animation: zoomIn 0.2s ease-out;
}

.habit-row:hover {
    background: rgba(30, 41, 59, 0.6);
}

.habit-info {
    flex-grow: 1;
    padding-right: 16px;
}

.habit-trigger-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.habit-action-text {
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
}

.habit-status-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.habit-streak-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-warning);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-check-habit {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-success);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-check-habit:hover:not(:disabled) {
    background: var(--color-success);
    color: white;
    transform: scale(1.15) rotate(5deg);
}

.btn-check-habit:disabled {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Habit Commit Grid */
.commit-streak-wrapper {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.commit-streak-wrapper h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.commit-grid-container {
    position: relative;
    padding-top: 10px; /* Space for tooltips */
    margin-bottom: 4px;
}

.commit-grid {
    display: grid;
    grid-template-columns: repeat(30, 1fr);
    gap: 4px;
    width: 100%;
}

.commit-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.commit-stats-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.commit-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}

.commit-stat-item i {
    color: var(--color-accent);
}

.commit-stat-val {
    font-weight: 700;
    color: #ffffff;
}

.commit-cell {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    user-select: none;
}

.commit-cell::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    color: #f8fafc;
    font-size: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 50;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.commit-cell:hover {
    transform: scale(1.15);
    z-index: 10;
}

.commit-cell:hover::before {
    opacity: 1;
    visibility: visible;
}

.commit-cell.level-0 {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.25);
}
.commit-cell.level-1 {
    background-color: rgba(129, 140, 248, 0.25);
    border-color: rgba(129, 140, 248, 0.4);
    color: rgba(255, 255, 255, 0.6);
}
.commit-cell.level-2 {
    background-color: rgba(99, 102, 241, 0.6);
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.25);
    color: rgba(255, 255, 255, 0.9);
}
.commit-cell.level-3 {
    background-color: rgba(79, 70, 229, 0.95);
    border-color: rgba(79, 70, 229, 1);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    color: #ffffff;
}

.commit-grid-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    padding: 0 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.commit-legend {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
}

.legend-cells {
    display: flex;
    gap: 4px;
}

.legend-cell {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    box-sizing: border-box;
}

.legend-cell.level-0 {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.legend-cell.level-1 {
    background-color: rgba(129, 140, 248, 0.25);
    border: 1px solid rgba(129, 140, 248, 0.4);
}
.legend-cell.level-2 {
    background-color: rgba(99, 102, 241, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.8);
}
.legend-cell.level-3 {
    background-color: rgba(79, 70, 229, 0.95);
    border: 1px solid rgba(79, 70, 229, 1);
}

/* Vault Reader Layout Styles */
.vault-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    height: calc(100vh - 100px);
    align-items: stretch;
}

@media (max-width: 900px) {
    .vault-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .card-vault-sidebar {
        height: 300px;
    }
}

.card-vault-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-vault-sidebar .card-body {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.card-vault-viewer {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-vault-viewer .card-body {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.padding-none {
    padding: 0 !important;
}

.search-notes-container {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.search-notes-container input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: var(--transition-smooth);
}

.search-notes-container input:focus {
    border-color: var(--color-accent);
}

.tree-controls-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-tree-control {
    flex: 1;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid var(--border-color);
    padding: 6px 8px;
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.btn-tree-control:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--color-accent);
    color: var(--text-primary);
}

.vault-tree {
    flex-grow: 1;
    overflow-y: auto;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vault-category-group {
    display: flex;
    flex-direction: column;
}

.vault-folder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-smooth);
    user-select: none;
    position: relative;
}

.vault-folder-header:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.vault-folder-header.category-root {
    color: var(--color-accent);
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 8px;
    margin-bottom: 2px;
}

.folder-icon {
    font-size: 14px;
    color: var(--color-accent);
    opacity: 0.85;
}

.vault-folder-children {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vault-tree-node {
    display: flex;
    flex-direction: column;
}

.vault-note-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 12px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
    user-select: none;
    position: relative;
    width: 100%;
}

.vault-note-item-wrapper:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.vault-note-item-wrapper.active {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
    font-weight: 500;
    border-left: 2px solid var(--color-accent);
    border-radius: 0 6px 6px 0;
}

/* Drag & Drop Visual States in Vault tree */
.vault-folder-header.drag-over,
.vault-note-item-wrapper.drag-over {
    border: 1px dashed var(--color-accent) !important;
    background: rgba(99, 102, 241, 0.12) !important;
    box-shadow: inset 0 0 8px rgba(99, 102, 241, 0.15);
}

.vault-notes-list.drag-over {
    background: rgba(99, 102, 241, 0.03);
    border: 1.5px dashed rgba(99, 102, 241, 0.25);
    border-radius: 8px;
}

.vault-tree-node.dragging,
.vault-note-item-wrapper.dragging {
    opacity: 0.4;
}

/* Action button containers in notes/folder tree */
.tree-node-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.7;
    pointer-events: auto;
    transition: opacity 0.2s ease;
}

.vault-folder-header:hover .tree-node-actions,
.vault-note-item-wrapper:hover .tree-node-actions {
    opacity: 1;
}

.tree-action-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.tree-action-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.tree-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.note-meta-area h3 {
    font-size: 18px !important;
}

.note-category-badge {
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: inline-block;
}

.scrollable-body {
    overflow-y: auto;
    flex-grow: 1;
    padding: 24px;
    height: 100%;
}

.empty-state-small {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
}

/* Markdown Rendering Styles */
.markdown-body {
    line-height: 1.6;
    font-size: 14px;
    color: var(--text-secondary);
}

.markdown-body h1, 
.markdown-body h2, 
.markdown-body h3, 
.markdown-body h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.markdown-body h1 {
    font-size: 22px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    margin-top: 12px;
}

.markdown-body h2 { font-size: 18px; }
.markdown-body h3 { font-size: 15px; }
.markdown-body h4 { font-size: 13px; }

.markdown-body p {
    margin-bottom: 16px;
}

.markdown-body ul, 
.markdown-body ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.markdown-body li {
    margin-bottom: 6px;
}

.markdown-body blockquote {
    border-left: 4px solid var(--color-accent);
    background: rgba(99, 102, 241, 0.03);
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.markdown-body blockquote p {
    margin-bottom: 0;
}

.markdown-body hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 24px 0;
}

.markdown-body code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--color-warning);
}

.markdown-body pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.markdown-body pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: inherit;
    font-size: 12px;
}

.markdown-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.markdown-body input[type="checkbox"] {
    margin-right: 8px;
    width: 14px;
    height: 14px;
    accent-color: var(--color-success);
    cursor: pointer;
    vertical-align: middle;
}

/* Editor Styling */
.editor-body {
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.toolbar-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.toolbar-btn:hover {
    background: rgba(99, 102, 241, 0.12);
    color: var(--color-accent);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.toolbar-btn:active {
    transform: translateY(0) scale(0.95);
    background: rgba(99, 102, 241, 0.2);
}

.toolbar-separator {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 6px;
}

.editor-body textarea {
    width: 100%;
    flex-grow: 1;
    min-height: 380px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    padding: 16px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    resize: none;
    outline: none;
    line-height: 1.5;
    transition: var(--transition-smooth);
}

.editor-body textarea:focus {
    border-color: var(--color-accent);
}

/* Lock Screen Overlay Styles */
.lock-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #111827 0%, #030712 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
    opacity: 1;
    visibility: visible;
}

.lock-screen-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lock-card {
    background: #0f172a; /* Solid background to prevent text bleed-through */
    border: 1px solid var(--border-color);
    max-width: 420px;
    width: 90%;
    text-align: center;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    animation: zoomIn 0.3s ease-out;
}

.lock-header {
    margin-bottom: 30px;
}

.lock-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-top: 12px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.lock-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.input-lock-group {
    position: relative;
    margin-bottom: 20px;
}

.input-lock-group input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    font-size: 14px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
}

.input-lock-group input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

.btn-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
    transition: var(--transition-smooth);
    z-index: 10;
}

.btn-eye i {
    pointer-events: none;
}

.btn-eye:hover {
    color: var(--text-primary);
}

.lock-footer {
    margin-top: 30px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-lock-session {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.btn-lock-session:hover {
    color: var(--color-danger);
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.panel-header .grayscale-toggle-container,
.panel-header .notification-toggle-container {
    gap: 10px;
    margin-right: 4px;
}

.shake {
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* ----------------------------------------------------
   MOBILE & PWA RESPONSIVENESS STYLING (max-width: 768px)
   ---------------------------------------------------- */
@media (max-width: 768px) {
    /* Stack container vertically */
    .app-container {
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
    }

    /* Transform left Sidebar into a fixed bottom navigation bar */
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 65px;
        flex-direction: row;
        border-right: none;
        border-top: 1px solid var(--border-color);
        background-color: var(--sidebar-bg);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
        z-index: 1000;
        padding: 0;
        overflow: hidden;
    }

    /* Hide Brand logo/header on mobile bottom nav */
    .sidebar-brand {
        display: none !important;
    }

    /* Set nav to horizontal row layout */
    .sidebar-nav {
        flex-direction: row;
        padding: 0 8px;
        margin: 0;
        width: 100%;
        height: 100%;
        justify-content: flex-start;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-item {
        flex-direction: column;
        gap: 4px;
        padding: 8px 10px;
        font-size: 10px;
        font-weight: 500;
        border-radius: 8px;
        border: none;
        flex-grow: 1;
        flex-shrink: 0;
        min-width: 75px;
        text-align: center;
        background: transparent;
        justify-content: center;
    }
    
    .nav-item i {
        font-size: 16px;
        width: auto;
    }
    
    .nav-item span {
        font-size: 9px;
        white-space: nowrap;
    }

    .nav-item.active {
        background: rgba(99, 102, 241, 0.08);
        border: none;
        box-shadow: none;
    }

    /* Hide footer on bottom bar (operational meta status) */
    .sidebar-footer {
        display: none !important;
    }

    /* Adjust Panel Header for Mobile */
    .panel-header {
        height: auto;
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        background-color: rgba(9, 13, 22, 0.85);
        border-bottom: 1px solid var(--border-color);
    }
    
    .header-right {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    
    /* Layout details inside header on mobile */
    .panel-header .grayscale-toggle-container,
    .panel-header .notification-toggle-container {
        font-size: 11px;
    }
    
    .active-project-badge {
        padding: 4px 10px;
        font-size: 11px;
        position: static;
        transform: none;
        margin: 0;
    }
    
    .magical-goals-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .clock-display {
        padding: 4px 10px;
        font-size: 13px;
    }

    /* Adjust Content Container for bottom navigation */
    .content-container {
        padding: 20px 16px 85px 16px !important; /* Extra bottom padding prevents bottom bar overlaps */
        overflow-y: auto;
    }

    /* Stack grid column items */
    .grid-layout {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .triage-columns {
        grid-template-columns: 1fr !important;
    }

    .card-dump {
        max-width: 100% !important;
    }
    
    /* Adjust One Bridge input controls for mobile */
    .task-inputs {
        flex-direction: column;
        gap: 8px;
    }
    .task-inputs button {
        width: 100%;
        justify-content: center;
    }

    /* Center ambiance/auth floating cards on mobile viewports so they don't overflow the screen bounds */
    .ambiance-floating-card {
        position: fixed !important;
        top: 60px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 90vw !important;
        max-width: 340px !important;
        z-index: 10001 !important;
        transform-origin: top center !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.2) !important;
    }

    /* Hive Mind mobile responsive layout */
    .hive-mind-layout {
        flex-direction: column !important;
        height: auto !important;
        overflow-y: visible !important;
        gap: 16px !important;
    }
    .hive-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        flex-shrink: 0 !important;
        padding: 14px !important;
    }
    #btn-hive-sidebar-collapse {
        display: none !important; /* Sidebar shouldn't collapse vertically on mobile */
    }
    .hive-main-content {
        width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        flex-grow: 1 !important;
        overflow: visible !important;
    }
    #hive-content-board,
    #hive-content-notes,
    #hive-content-tasks {
        flex-direction: column !important;
        height: auto !important;
        overflow: visible !important;
        gap: 16px !important;
    }
    .sticky-boards-sidebar,
    .hive-notes-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        max-height: 250px !important;
        flex-shrink: 0 !important;
    }
    #hive-notes-viewer-card {
        width: 100% !important;
        height: 500px !important;
    }
    .sticky-canvas-area {
        height: 450px !important;
        width: 100% !important;
        min-width: 100% !important;
    }
    #hive-sticky-toolbar {
        height: auto !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    #hive-sticky-toolbar .toolbar-tools {
        flex-wrap: wrap !important;
        gap: 4px !important;
    }
    #hive-sticky-toolbar .toolbar-actions {
        width: 100% !important;
        justify-content: space-between !important;
    }
}

/* Vault Notes Sidebar Header additions */
.notes-sidebar-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}
.notes-sidebar-header > div:first-child {
    display: flex;
    flex-direction: column;
    min-width: 0 !important;
    flex: 1 !important;
    margin-right: 8px !important;
}

.notes-sidebar-header h3 {
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
}

#vault-count-subtitle {
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
}
.btn-note-action {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 12px;
}

.btn-note-action:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--color-accent);
    transform: translateY(-1px);
}

.btn-note-action#btn-delete-note:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
}

/* ----------------------------------------------------
   FOCUS TOOLKIT VIEW STYLING
   ---------------------------------------------------- */
.toolkit-grid {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 16px;
    height: calc(100vh - 100px);
    align-items: stretch;
}

.toolkit-content-card,
.toolkit-subview {
    min-width: 0;
}

@media (max-width: 900px) {
    .toolkit-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .toolkit-sidebar-card {
        height: auto !important;
    }
}

.toolkit-sidebar-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.toolkit-content-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.flex-column-nav {
    display: flex;
    flex-direction: column;
    padding: 16px !important;
    gap: 8px;
}

.toolkit-tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.toolkit-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.toolkit-tab-btn.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--border-color-glow);
}

.toolkit-tab-btn.active i {
    color: var(--color-accent);
}

.toolkit-subview {
    display: none;
    flex-direction: column;
    height: 100%;
}

.toolkit-subview.active {
    display: flex;
}

/* Eisenhower Matrix 2x2 Grid */
.eisenhower-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    height: auto;
}

@media (max-width: 1500px) {
    .eisenhower-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .eisenhower-container {
        grid-template-columns: 1fr;
    }
}

.eisenhower-quadrant {
    background: rgba(15, 23, 42, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 220px;
    transition: var(--transition-smooth);
    border-top: 3px solid var(--border-color); /* Premium Default Top Border */
}

.eisenhower-quadrant.quad-do {
    border-top: 3px solid #ef4444; /* Premium Red Border */
}

.eisenhower-quadrant.quad-schedule {
    border-top: 3px solid #3b82f6; /* Premium Blue Border */
}

.eisenhower-quadrant.quad-delegate {
    border-top: 3px solid #f59e0b; /* Premium Amber Border */
}

.eisenhower-quadrant.quad-eliminate {
    border-top: 3px solid #64748b; /* Premium Slate Border */
}

.eisenhower-quadrant:hover {
    border-color: rgba(255, 255, 255, 0.05);
}

.quad-header {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Prevent header overflow */
    gap: 4px 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quad-desc {
    font-size: 11px;
    text-transform: none;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0;
}

.quad-list {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 160px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quad-list:empty::after {
    content: attr(placeholder);
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    padding: 10px 0;
}

.quad-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: grab;
    transition: var(--transition-smooth);
}

.quad-item:hover {
    background: rgba(30, 41, 59, 0.5);
    border-color: var(--border-color-glow);
    transform: translateY(-1px);
}

.btn-quad-delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.btn-quad-delete:hover {
    color: var(--color-danger);
}

.quad-input-group {
    display: flex;
    gap: 8px;
}

.quad-input-group input {
    flex-grow: 1;
    min-width: 0; /* Important to prevent flex container overflow */
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: var(--transition-smooth);
}

.quad-input-group input:focus {
    border-color: var(--color-accent);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.25);
}

.quad-input-group button {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent button squishing */
}

/* Rule of 3 Outcomes Layout */
.rule-of-3-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
}

.psych-paragraph {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.rule-3-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rule-3-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.rule-3-row:hover {
    border-color: var(--border-color-glow);
}

.rule-3-num {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--color-accent);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rule-3-row input[type="text"] {
    flex-grow: 1;
    background: transparent;
    border: none;
    border-bottom: 1.5px dashed var(--border-color);
    padding: 6px 0;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.rule-3-row input[type="text"]:focus {
    border-color: var(--color-accent);
}

.rule-3-check {
    width: 20px;
    height: 20px;
    accent-color: var(--color-success);
    cursor: pointer;
}

/* Dopamine reset section */
.psych-guide-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 750px;
    margin: 0 auto;
}

.psych-guide-section h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.psych-guide-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.psych-guide-section blockquote {
    border-left: 4px solid var(--color-danger);
    background: rgba(239, 68, 68, 0.03);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 16px 0;
}

.psych-guide-section ul {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-secondary);
}

/* Emotional Grounding Box Breathing Widget */
.grounding-split-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .grounding-split-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.grounding-guide-text h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.grounding-guide-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.grounding-guide-text ol {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.grounding-guide-text ol li strong {
    color: var(--text-primary);
}

.breathing-widget-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.breathing-widget-container h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.widget-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.breathing-circle-wrapper {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 10px 0;
}

.breathing-circle {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.3) 0%, rgba(244, 63, 94, 0.1) 70%);
    border: 2px solid #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: white;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
    transition: all 4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation cycles classes dynamically controlled by JS */
.breathing-circle.inhale {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.6) 0%, rgba(244, 63, 94, 0.2) 70%);
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.5);
}

.breathing-circle.hold-inhale {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.6) 0%, rgba(244, 63, 94, 0.2) 70%);
    border-color: #fb7185;
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.5);
}

.breathing-circle.exhale {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.3) 0%, rgba(244, 63, 94, 0.1) 70%);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.breathing-circle.hold-exhale {
    width: 100px;
    height: 100px;
    border-color: #64748b;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
}

.breathing-phase-info {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    min-height: 22px;
}

.text-focus-red {
    color: #ef4444 !important;
}

/* Premium Glowing Red Theme for Current Focus Column */
.triage-column.col-active {
    border-color: rgba(239, 68, 68, 0.6) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(239, 68, 68, 0.08) 100%) !important;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.12) !important;
    position: relative;
    overflow: hidden;
}

.triage-column.col-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ef4444, #f43f5e, transparent);
    animation: active-glow-anim 4s infinite linear;
}

@keyframes active-glow-anim {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.col-active .triage-item {
    border-left: 4px solid #ef4444 !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.04) !important;
}

.col-active .triage-item:hover {
    border-color: #f43f5e !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.18) !important;
    transform: translateY(-2px);
}

/* Eisenhower Matrix Split Grid & Drag-Drop */
.eisenhower-split-view {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

.eisenhower-grid-side {
    flex-grow: 1;
    min-width: 0; /* Prevent flexbox overflow */
}

.eisenhower-backlog-side {
    flex-shrink: 0;
    width: 300px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 980px !important;
    overflow-y: auto;
}

@media (max-width: 1100px) {
    .eisenhower-split-view {
        flex-direction: column; /* Stack backlog below matrix quadrants */
    }
    .eisenhower-backlog-side {
        width: 100%;
        max-height: 400px !important;
    }
}

.backlog-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.backlog-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.backlog-drag-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    overflow-y: auto;
    min-height: 250px;
}

.backlog-drag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: grab;
    user-select: none;
    transition: var(--transition-smooth);
}

.backlog-drag-item:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--border-color-glow);
    transform: translateY(-1px);
}

.backlog-drag-item:active {
    cursor: grabbing;
}

.backlog-drag-item .drag-handle {
    color: var(--text-muted);
    font-size: 12px;
}

/* Quadrant height expansion */
.eisenhower-quadrant {
    min-height: 180px !important;
}

.quad-list {
    max-height: 500px !important;
    overflow-y: auto;
    flex-grow: 1;
}

.eisenhower-backlog-side {
    max-height: 980px !important;
}

/* Category status badges inside backlog drag items */
.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-red {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}
.badge-yellow {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}
.badge-blue {
    background: rgba(99, 102, 241, 0.12) !important;
    color: #818cf8 !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
}

/* Drag hover indicators for drop zones */
.eisenhower-quadrant.drag-over {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.06) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
}

.eisenhower-backlog-side.drag-over {
    border-color: var(--color-accent) !important;
    background: rgba(99, 102, 241, 0.06) !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1) !important;
}

.quad-item {
    cursor: grab;
    transition: var(--transition-smooth);
}

.quad-item:active {
    cursor: grabbing;
}

.quad-item.dragging, .backlog-drag-item.dragging {
    opacity: 0.4;
    border-style: dashed !important;
    border-color: var(--color-accent) !important;
}

/* Pomodoro Subtab Styles */
.pomodoro-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
}

@media (max-width: 768px) {
    .pomodoro-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.pomodoro-timer-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.pomodoro-timer-circle {
    position: relative;
    width: 220px;
    height: 220px;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 6px;
}

.timer-progress {
    fill: none;
    stroke: #ef4444;
    stroke-width: 6px;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
}

.timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Outfit', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: white;
}

.pomodoro-controls {
    display: flex;
    gap: 12px;
}

.pomodoro-settings-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pomo-setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pomo-setting-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.pomo-select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 13.5px;
    outline: none;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.pomo-select:focus {
    border-color: var(--color-accent);
}

.pomo-select option {
    background: #0f172a;
    color: white;
}

.audio-control-warning {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pomo-instructions h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.pomo-instructions ul {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Cognitive Parking Lot Styles */
.parking-lot-box {
    max-width: 680px;
    margin: 0 auto;
    padding: 10px;
}

.parking-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.parking-input-group input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
}

.parking-input-group input:focus {
    border-color: var(--color-accent);
}

.parked-ideas-section h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.parked-ideas-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.parked-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 41, 59, 0.35);
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.parked-item:hover {
    border-color: var(--border-color-glow);
}

.parked-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.parked-item-text {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
}

.parked-item-date {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.btn-park-delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-smooth);
    padding: 4px;
}

.btn-park-delete:hover {
    color: var(--color-danger);
}

/* Ambiance Mode Audio and Visual Styles */
.ambiance-control-container {
    position: relative;
    display: inline-block;
}

.ambiance-floating-card {
    position: absolute;
    right: 0;
    top: 48px;
    width: 320px;
    background: #0f172a; /* Solid Slate background to prevent text bleed-through */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    padding: 16px;
    z-index: 100;
    transform-origin: top right;
}

.ambiance-floating-card.hidden {
    display: none !important;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ambiance-floating-card:not(.hidden) {
    animation: floatIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Star icon spin micro-animation on primary button hover */
.btn-primary:hover i.fa-star {
    animation: starSpin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite alternate;
}
@keyframes starSpin {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(15deg) scale(1.2); color: #facc15; }
}

/* Logout icon shift animation on secondary button hover */
.btn-secondary:hover i.fa-right-from-bracket {
    transform: translateX(3px);
}
.btn-secondary i.fa-right-from-bracket {
    transition: transform 0.2s ease;
}

.ambiance-card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.ambiance-card-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ambiance-control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.ambiance-control-group:last-child {
    margin-bottom: 0;
}

.ambiance-control-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.volume-slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.volume-slider-row i {
    font-size: 14px;
}

.volume-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent);
    transition: transform 0.1s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent);
    border: none;
    transition: transform 0.1s ease;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

#ambiance-particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    display: block;
}

/* Commercial SaaS Styles */
.plan-badge {
    border-color: var(--color-accent) !important;
}

.plan-badge #plan-badge-value {
    background: linear-gradient(90deg, #00f2fe, #4facfe, #00eb80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 4s infinite linear;
}

@keyframes textShimmer {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.btn-payment {
    transition: all 0.2s ease-in-out;
}

.btn-payment:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-payment:active {
    transform: translateY(0);
}

.lock-card.pricing-card {
    background: #0f172a !important; /* Solid background to prevent text bleed-through */
}

.auth-modal {
    background: rgba(3, 7, 18, 0.7) !important;
    backdrop-filter: blur(15px) !important;
}

.wise-info-box p {
    margin-bottom: 8px !important;
}

/* Ambient Pause/Resume button styles */
.btn-ambiance-pause-resume {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-family: inherit;
    transition: all 0.2s ease-in-out;
}

.btn-ambiance-pause-resume:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-ambiance-pause-resume.paused {
    background: var(--color-success) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.btn-ambiance-pause-resume.paused:hover {
    filter: brightness(1.1);
}

/* Guest Sync Alert Banner */
.guest-sync-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    animation: slideDown 0.4s ease-out;
}

.guest-sync-banner i {
    color: var(--color-accent);
    margin-right: 8px;
    font-size: 14px;
}

.guest-sync-banner a {
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.guest-sync-banner a:hover {
    color: #00eb80;
}

.banner-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
    padding: 0 4px;
}

.banner-close-btn:hover {
    color: var(--text-primary);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

/* Admin Table & Dashboard Styles */
.admin-table th {
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-select-plan {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.admin-select-plan:focus {
    border-color: var(--color-accent);
}

.btn-save-admin {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #818cf8 !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    box-shadow: none !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-save-admin:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.3) !important;
    border-color: #818cf8 !important;
    color: white !important;
}

.btn-save-admin:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Golden Lock styling & visibility triggers */
.golden-lock {
    color: #eab308;
    margin-left: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: transform 0.2s ease, color 0.2s ease;
    display: none !important; /* Hidden by default - shown only for free/guest users */
}

.golden-lock:hover {
    transform: scale(1.2);
    color: #facc15;
}

.is-premium .golden-lock {
    display: none !important;
}

.is-free .golden-lock {
    display: inline-block !important;
}

/* Premium sync client floating layout */
.premium-sync-client {
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
    transition: opacity 0.3s ease;
}

.is-free .premium-sync-client {
    display: none !important;
}

.is-premium .premium-sync-client {
    display: block !important;
}

/* ============================================================
   AMBIANCE CARD REDESIGN - Futuristic UI
   ============================================================ */

#ambiance-floating-card { width: 320px !important; }

.amb-section-label {
    font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
    color: var(--text-muted); text-transform: uppercase; margin-bottom: 8px;
}
.amb-section-note { font-size: 9px; font-weight: 400; color: rgba(255,255,255,0.25); text-transform: none; letter-spacing: 0; }

.amb-audio-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }

.amb-sound-select {
    flex: 1;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 12px;
    font-family: inherit;
    padding: 8px 32px 8px 12px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 13px;
    transition: border-color 0.2s, background-color 0.2s;
}
.amb-sound-select:hover { border-color: rgba(99,102,241,0.5); background-color: rgba(15,23,42,0.9); }
.amb-sound-select:focus { border-color: rgba(99,102,241,0.7); outline: none; }
.amb-sound-select option { background: #0f172a; color: #f8fafc; padding: 8px; }

.amb-play-btn {
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, #6366f1, #4f46e5); color: white;
    font-size: 13px; cursor: pointer; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0; transition: transform 0.15s, box-shadow 0.2s;
}
.amb-play-btn:hover { transform: scale(1.12); box-shadow: 0 0 16px rgba(99,102,241,0.5); }
.amb-play-btn.is-playing {
    background: linear-gradient(135deg, #ec4899, #be185d);
    animation: amb-pulse 2s ease-in-out infinite;
}
@keyframes amb-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(236,72,153,0.4); }
    50% { box-shadow: 0 0 22px rgba(236,72,153,0.7); }
}

.amb-volume-row { display: flex; align-items: center; gap: 8px; margin: 12px auto 10px; width: 90%; justify-content: center; }
.amb-vol-icon { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
.amb-volume-slider {
    flex: 1; height: 4px; -webkit-appearance: none; appearance: none;
    background: rgba(255,255,255,0.12); border-radius: 4px; outline: none; cursor: pointer;
}
.amb-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
    background: #6366f1; border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 0 6px rgba(99,102,241,0.5); cursor: pointer; transition: transform 0.15s;
}
.amb-volume-slider::-webkit-slider-thumb:hover { transform: scale(1.25); }

.amb-effects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }

.amb-effect-card {
    position: relative; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 5px; padding: 12px 4px 10px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
    color: var(--text-secondary); text-align: center; font-family: inherit; outline: none;
}
.amb-effect-card:hover { background: rgba(255,255,255,0.06); border-color: rgba(99,102,241,0.4); transform: translateY(-2px); }
.amb-effect-card.is-active { background: rgba(99,102,241,0.12); border-color: #6366f1; box-shadow: 0 0 14px rgba(99,102,241,0.25); color: var(--text-primary); }

#amb-card-rain.is-active   { border-color:#38bdf8; background:rgba(56,189,248,.08); box-shadow:0 0 14px rgba(56,189,248,.2); }
#amb-card-rain.is-active .amb-effect-icon { color:#38bdf8; filter:drop-shadow(0 0 6px rgba(56,189,248,.5)); }
#amb-card-snow.is-active   { border-color:#e2e8f0; background:rgba(226,232,240,.06); box-shadow:0 0 14px rgba(226,232,240,.15); }
#amb-card-snow.is-active .amb-effect-icon { color:#e2e8f0; filter:drop-shadow(0 0 5px rgba(226,232,240,.4)); }
#amb-card-matrix.is-active { border-color:#00eb80; background:rgba(0,235,128,.07); box-shadow:0 0 14px rgba(0,235,128,.2); }
#amb-card-matrix.is-active .amb-effect-icon { color:#00eb80; filter:drop-shadow(0 0 6px rgba(0,235,128,.5)); }
#amb-card-aurora.is-active { border-color:#a78bfa; background:rgba(167,139,250,.07); box-shadow:0 0 14px rgba(167,139,250,.2); }
#amb-card-aurora.is-active .amb-effect-icon { color:#a78bfa; filter:drop-shadow(0 0 6px rgba(167,139,250,.5)); }
#amb-card-fireflies.is-active { border-color:#fbbf24; background:rgba(251,191,36,.07); box-shadow:0 0 14px rgba(251,191,36,.2); }
#amb-card-fireflies.is-active .amb-effect-icon { color:#fbbf24; filter:drop-shadow(0 0 6px rgba(251,191,36,.5)); }
#amb-card-nebula.is-active { border-color:#f472b6; background:rgba(244,114,182,.07); box-shadow:0 0 14px rgba(244,114,182,.2); }
#amb-card-nebula.is-active .amb-effect-icon { color:#f472b6; filter:drop-shadow(0 0 6px rgba(244,114,182,.5)); }

.amb-effect-icon { font-size: 20px; color: rgba(255,255,255,0.35); transition: color 0.2s, filter 0.2s; }
.amb-effect-name { font-size: 10px; font-weight: 600; color: inherit; letter-spacing: 0.03em; }
.amb-effect-badge {
    font-size: 8px; font-weight: 700; padding: 1px 5px; border-radius: 20px;
    letter-spacing: 0.04em; text-transform: uppercase;
    background: rgba(16,185,129,0.12); color: #10b981;
}
.premium-badge.golden-lock-badge { background: rgba(234,179,8,0.12); color: #eab308; }

/* Hide Pro lock badges when user is Premium */
.is-premium .golden-lock-badge { display: none !important; }

/* Account preferences and navigation styles */
.account-pref-section {
    margin-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
}
.pref-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.pref-row:last-child {
    margin-bottom: 0;
}
.pref-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.pref-label i {
    color: var(--color-accent);
    font-size: 13px;
    width: 14px;
    text-align: center;
}
.account-nav-section {
    margin-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.account-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease-in-out;
}
.account-nav-link i {
    font-size: 13px;
    color: var(--color-accent);
}
.account-nav-link:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}
.account-nav-link:active {
    transform: translateY(0);
}

/* ==========================================================================
   Zen Mode (Distraction-Free Editor) Styles
   ========================================================================== */

/* Hide sidebar PWA navigation completely when Zen Mode is active */
.app-container.zen-mode .sidebar {
    display: none !important;
}

/* Hide top header bar in main workspace */
.app-container.zen-mode .panel-header {
    display: none !important;
}

/* Remove main panel padding and boundaries so editor is full-viewport */
.app-container.zen-mode .main-panel {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100vh !important;
}

.app-container.zen-mode .content-container {
    padding: 0 !important;
    height: 100% !important;
}

.app-container.zen-mode .view-section.active {
    height: 100% !important;
    padding: 0 !important;
}

/* Hide left-side notes/folders list panel */
.app-container.zen-mode .card-vault-sidebar {
    display: none !important;
}

/* Note layout grid fills 100% of viewport */
.app-container.zen-mode .vault-grid {
    grid-template-columns: 1fr !important;
    height: 100vh !important;
    gap: 0 !important;
}

/* Make note viewer boardless, full screen and beautiful */
.app-container.zen-mode .card-vault-viewer {
    border-radius: 0 !important;
    border: none !important;
    height: 100vh !important;
    margin: 0 !important;
    background: #090d16 !important; /* Extremely dark elegant backdrop */
}

/* Add subtle shadow on Zen Mode header actions for visibility */
.app-container.zen-mode #vault-viewer-header {
    padding: 16px 32px !important;
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* More generous margin on editor body inside Zen Mode */
.app-container.zen-mode .scrollable-body {
    padding: 40px 10% !important; /* Pad it to feel like an elegant Medium/Substack editor */
}

.app-container.zen-mode .editor-body textarea {
    min-height: 500px !important;
    padding: 24px !important;
    font-size: 14px !important;
}

/* ==========================================================================
   Note Sharing Modal & Badges Styles
   ========================================================================== */

#share-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 11px;
    color: #ffffff;
    text-transform: uppercase;
}

#btn-copy-share-link {
    transition: all 0.2s ease-in-out;
}

#btn-copy-share-link:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--color-accent);
}

/* ==========================================================================
   Premium Custom Select Dropdown & Account Nav Styles
   ========================================================================== */

.custom-select-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 4px;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

.custom-select-trigger:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(15, 23, 42, 0.85);
}

.custom-select-trigger.active {
    border-color: var(--color-accent);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.25);
}

.custom-select-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.custom-select-trigger.active .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-height: 250px;
    overflow-y: auto;
}

.custom-select-option {
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-align: left;
}

.custom-select-option:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--text-primary);
}

.custom-select-option.selected {
    background: rgba(99, 102, 241, 0.25);
    color: var(--text-primary);
    font-weight: 600;
    border-left: 3px solid var(--color-accent);
}

/* Unified Account Navigation Link Styles */
.account-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    box-sizing: border-box;
    text-align: left;
}

.account-nav-link:hover {
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.account-nav-link i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* Statistics Dashboard View Styling */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}

.stat-metric-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.stat-metric-card .card-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.metric-icon {
    font-size: 26px;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.metric-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.metric-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.metric-value {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin: 2px 0;
    color: var(--text-primary);
}

.metric-subtext {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .stats-main-content {
        grid-template-columns: 1fr;
    }
}

.trend-container {
    display: flex;
    flex-direction: column;
    height: 240px;
    justify-content: space-between;
    padding-top: 10px;
}

.trend-chart {
    display: flex;
    height: 180px;
    align-items: flex-end;
    gap: 12px;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.trend-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    height: 100%;
    justify-content: flex-end;
    position: relative;
    cursor: pointer;
}

.trend-bar-tooltip {
    position: absolute;
    bottom: calc(100% + 4px);
    background: rgba(9, 13, 22, 0.95);
    border: 1px solid var(--color-accent);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.trend-bar-wrapper:hover .trend-bar-tooltip {
    opacity: 1;
}

.trend-bar {
    width: 100%;
    max-width: 32px;
    border-radius: 4px 4px 0 0;
    background: var(--color-accent-grad);
    min-height: 4px;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.trend-bar.today {
    background: linear-gradient(135deg, var(--color-info) 0%, var(--color-accent) 100%);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.trend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    padding-top: 6px;
}

.trend-labels span {
    flex-grow: 1;
    text-align: center;
}

.stats-ring-container {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-ring-svg {
    transform: rotate(-90deg);
}

.stats-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.02);
    stroke-width: 10;
}

.stats-ring-progress {
    fill: none;
    stroke: var(--color-accent-grad);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 471.2;
    stroke-dashoffset: 471.2;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.3));
}

.stats-ring-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stats-ring-pct {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.stats-ring-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .stats-bottom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-bottom-grid {
        grid-template-columns: 1fr;
    }
}

.stats-detail-card {
    min-height: 250px;
}

.stats-detail-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stats-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.stats-detail-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(99, 102, 241, 0.15);
}

.stats-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.stats-item-left i {
    font-size: 14px;
    flex-shrink: 0;
}

.stats-item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-item-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-item-streak {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-warning);
    font-size: 12px;
    font-weight: 700;
}

.stats-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.stats-project-progress-bar {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.stats-project-progress-fill {
    height: 100%;
    background: var(--color-accent-grad);
    border-radius: 3px;
}

/* Unified Row 2 Time Matrix Column Styles */
.triage-column.col-overdue {
    border-color: rgba(239, 68, 68, 0.35) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(239, 68, 68, 0.08) 100%) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.05);
}
.col-overdue h4 i {
    color: var(--color-danger) !important;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.triage-column.col-today {
    border-color: rgba(99, 102, 241, 0.35) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(99, 102, 241, 0.08) 100%) !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.05);
}
.col-today h4 i {
    color: var(--color-accent) !important;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.triage-column.col-week {
    border-color: rgba(245, 158, 11, 0.35) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(245, 158, 11, 0.08) 100%) !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.05);
}
.col-week h4 i {
    color: var(--color-warning) !important;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.triage-column.col-tomorrow {
    border-color: rgba(6, 182, 212, 0.35) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(6, 182, 212, 0.08) 100%) !important;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.05);
}
.col-tomorrow h4 i {
    color: var(--color-info) !important;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.triage-column.col-parking {
    border-color: rgba(168, 85, 247, 0.35) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(168, 85, 247, 0.08) 100%) !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.05);
}
.col-parking h4 i {
    color: #c084fc !important;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.triage-column.col-later {
    border-color: rgba(236, 72, 153, 0.35) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(236, 72, 153, 0.08) 100%) !important;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.05);
}
.col-later h4 i {
    color: #f472b6 !important;
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}

.triage-column.col-nodeadline {
    border-color: rgba(148, 163, 184, 0.25) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(148, 163, 184, 0.05) 100%) !important;
    box-shadow: 0 0 15px rgba(148, 163, 184, 0.02);
}
.col-nodeadline h4 i {
    color: var(--text-muted) !important;
}

.triage-column.col-archive {
    border-color: rgba(71, 85, 105, 0.25) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(71, 85, 105, 0.04) 100%) !important;
    box-shadow: 0 0 15px rgba(71, 85, 105, 0.02);
}
.col-archive h4 i {
    color: var(--text-muted) !important;
}

/* Hall of Fame Premium styling */
.hall-of-fame-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.01);
}
.hall-of-fame-item:last-child {
    border-bottom: none;
}
.hall-of-fame-item:hover {
    background: rgba(245, 158, 11, 0.04);
    box-shadow: inset 0 0 8px rgba(245, 158, 11, 0.05);
}
.hall-of-fame-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.hall-of-fame-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hall-of-fame-date {
    font-size: 11px;
    color: var(--text-muted);
}
.hall-of-fame-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.hall-of-fame-pomo-badge {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.deadline-badge {
    transition: var(--transition-smooth);
}
.deadline-badge:hover {
    background: rgba(99, 102, 241, 0.2) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    transform: translateY(-1px);
}
.add-date-badge {
    transition: var(--transition-smooth);
}
.add-date-badge:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: var(--text-primary) !important;
    transform: translateY(-1px);
}

/* Procrastination Engine Panel */
.procrastination-panel {
    max-width: 800px;
    width: 100%;
    margin: 24px auto 16px auto;
    border-color: rgba(239, 68, 68, 0.2) !important;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.45) 0%, rgba(239, 68, 68, 0.04) 100%) !important;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.05);
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-sizing: border-box;
}

.procrastination-panel .panel-header {
    display: flex;
    flex-direction: column;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.procrastination-panel .panel-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.procrastination-panel .panel-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
    padding: 10px;
}

.procrastination-empty {
    text-align: center;
    padding: 24px 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.procrastination-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    from { box-shadow: 0 0 4px rgba(239, 68, 68, 0.05); }
    to { box-shadow: 0 0 10px rgba(239, 68, 68, 0.15); }
}

.procrastination-item-text {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

.procrastination-item-action {
    display: flex;
    justify-content: flex-end;
}

.btn-defeat {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.btn-defeat:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* Badges and Tags */
.urgency-badge {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.badge-urgent {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.badge-normal {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.badge-backburner {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

/* Progress styles for agenda cards */
.agenda-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.agenda-progress-fill {
    height: 100%;
    background: var(--color-accent-grad);
    border-radius: 2px;
}

.agenda-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

.count-agenda-badge {
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
}

/* Green Sparkling Outline for Shared Notes */
.vault-note-item-wrapper.shared-sparkle {
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    background: rgba(16, 185, 129, 0.03) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1), inset 0 0 5px rgba(16, 185, 129, 0.05);
    animation: shared-sparkle-glow 3s infinite alternate;
}

@keyframes shared-sparkle-glow {
    0% {
        border-color: rgba(16, 185, 129, 0.3);
        box-shadow: 0 0 6px rgba(16, 185, 129, 0.1);
    }
    50% {
        border-color: rgba(52, 211, 153, 0.6);
        box-shadow: 0 0 12px rgba(52, 211, 153, 0.3), 0 0 4px rgba(16, 185, 129, 0.2);
    }
    100% {
        border-color: rgba(16, 185, 129, 0.8);
        box-shadow: 0 0 16px rgba(16, 185, 129, 0.5), 0 0 6px rgba(52, 211, 153, 0.4);
    }
}

/* ============================================================
   STICKY SPACE — NEW MULTI-BOARD MIND MAP CANVAS (FULL REWRITE)
   ============================================================ */

#sticky-space {
    display: none;
    height: calc(100vh - 100px);
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

#sticky-space.active {
    display: flex;
}

.sticky-space-wrapper {
    display: flex;
    flex: 1;
    height: 100%;
    overflow: hidden;
}

/* ----- Boards Sidebar ----- */
.sticky-boards-sidebar {
    width: 210px;
    flex-shrink: 0;
    background: var(--surface-1, #0a0d16);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.2s;
}

.boards-sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sticky-boards-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.board-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12.5px;
    color: var(--text-secondary);
    transition: background 0.15s;
    gap: 6px;
    margin-bottom: 2px;
    user-select: none;
}

.board-item:hover { background: rgba(255,255,255,0.05); }

.board-item.active {
    background: rgba(99,102,241,0.15);
    color: var(--text-primary);
    font-weight: 600;
}

.board-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-item-actions {
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.board-item:hover .board-item-actions { opacity: 1; }

.board-item-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 3px 5px;
    border-radius: 4px;
    font-size: 10px;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
}

.board-item-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.08); }
.board-item-btn.danger:hover { color: var(--color-danger); }

.btn-new-board {
    margin: 8px;
    padding: 9px 12px;
    background: rgba(99,102,241,0.08);
    border: 1px dashed rgba(99,102,241,0.3);
    border-radius: 8px;
    color: #818cf8;
    font-size: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-new-board:hover {
    background: rgba(99,102,241,0.16);
    border-color: #6366f1;
    color: #a5b4fc;
}

/* ----- Canvas Area ----- */
.sticky-canvas-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* ----- Toolbar ----- */
.sticky-toolbar {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-1, #0a0d16);
    gap: 6px;
    flex-shrink: 0;
}

.toolbar-tools,
.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 3px;
}

.toolbar-center-title {
    flex: 1;
    text-align: center;
    overflow: hidden;
    padding: 0 8px;
}

.active-board-title-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 200px;
}

.tool-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 8px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1;
}

.tool-btn:hover {
    background: rgba(255,255,255,0.07);
    color: var(--text-primary);
}

.tool-btn.active {
    background: rgba(99,102,241,0.2);
    border-color: rgba(99,102,241,0.4);
    color: #a5b4fc;
}

.tool-action-btn { font-size: 11.5px; padding: 5px 10px; }
.tool-action-btn span { font-size: 11px; }

.tool-sep {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    margin: 0 3px;
    flex-shrink: 0;
}

/* ----- Canvas Scroll ----- */
.sticky-canvas-scroll {
    flex: 1;
    overflow: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
    cursor: default;
    background: #070a12;
}

.sticky-canvas-scroll.tool-pan { cursor: grab; }
.sticky-canvas-scroll.tool-pan.panning { cursor: grabbing; }
.sticky-canvas-scroll.tool-sticky,
.sticky-canvas-scroll.tool-node-circle,
.sticky-canvas-scroll.tool-node-box,
.sticky-canvas-scroll.tool-node-diamond,
.sticky-canvas-scroll.tool-text { cursor: crosshair; }
.sticky-canvas-scroll.tool-connect { cursor: cell; }
.sticky-canvas-scroll.tool-connect .mind-node textarea { pointer-events: none; }

/* ----- Canvas ----- */
.sticky-canvas {
    width: 4000px;
    height: 3000px;
    position: relative;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ----- SVG Overlay ----- */
.sticky-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 2;
}

/* ----- Mind Map Nodes ----- */
.mind-node {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: move;
    z-index: 10;
    user-select: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: box-shadow 0.15s, outline 0.15s;
    resize: both;
    overflow: hidden;
    min-width: 90px;
    min-height: 50px;
}

.mind-node:hover { box-shadow: 0 6px 28px rgba(99,102,241,0.25); }

.mind-node textarea {
    background: none;
    border: none;
    outline: none;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    width: calc(100% - 8px);
    resize: none;
    cursor: text;
    line-height: 1.4;
    overflow: hidden;
}

/* Circle */
.mind-node.node-circle {
    border-radius: 50%;
    width: 120px;
    height: 120px;
}

.mind-node.node-circle textarea {
    width: 72%;
    height: 72%;
}

/* Box */
.mind-node.node-box {
    border-radius: 10px;
    width: 140px;
    min-height: 64px;
    padding: 10px 12px;
}

/* Diamond — rotate the container, counter-rotate textarea */
.mind-node.node-diamond {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    transform: rotate(45deg);
}

.mind-node.node-diamond textarea {
    transform: rotate(-45deg);
    width: 70%;
    height: 70%;
    font-size: 11px;
}

/* Dot Node Styling */
.mind-node.node-dot {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    resize: none;
    overflow: visible;
}
.mind-node.node-dot textarea {
    display: none;
}
.mind-node.node-dot.nc-0 { background: #6366f1; border: 1px solid rgba(255,255,255,0.2); }
.mind-node.node-dot.nc-1 { background: #10b981; border: 1px solid rgba(255,255,255,0.2); }
.mind-node.node-dot.nc-2 { background: #f59e0b; border: 1px solid rgba(255,255,255,0.2); }
.mind-node.node-dot.nc-3 { background: #ef4444; border: 1px solid rgba(255,255,255,0.2); }
.mind-node.node-dot.nc-4 { background: #a855f7; border: 1px solid rgba(255,255,255,0.2); }
.mind-node.node-dot.nc-5 { background: #06b6d4; border: 1px solid rgba(255,255,255,0.2); }

.mind-node.node-dot .mind-node-toolbar {
    top: -24px;
    padding: 2px;
}

/* Color palette */
.mind-node.nc-0 { background: rgba(99,102,241,0.25); border: 2px solid rgba(99,102,241,0.75); }
.mind-node.nc-0 textarea { color: #a5b4fc; }
.mind-node.nc-1 { background: rgba(16,185,129,0.22); border: 2px solid rgba(16,185,129,0.75); }
.mind-node.nc-1 textarea { color: #34d399; }
.mind-node.nc-2 { background: rgba(245,158,11,0.22); border: 2px solid rgba(245,158,11,0.75); }
.mind-node.nc-2 textarea { color: #fbbf24; }
.mind-node.nc-3 { background: rgba(239,68,68,0.22); border: 2px solid rgba(239,68,68,0.75); }
.mind-node.nc-3 textarea { color: #f87171; }
.mind-node.nc-4 { background: rgba(168,85,247,0.22); border: 2px solid rgba(168,85,247,0.75); }
.mind-node.nc-4 textarea { color: #c084fc; }
.mind-node.nc-5 { background: rgba(6,182,212,0.22); border: 2px solid rgba(6,182,212,0.75); }
.mind-node.nc-5 textarea { color: #22d3ee; }

/* Node hover toolbar */
.mind-node-toolbar {
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    background: #141927;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px 6px;
    display: none;
    gap: 3px;
    z-index: 200;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.mind-node:hover .mind-node-toolbar,
.mind-node.selected .mind-node-toolbar { display: flex !important; }

.mind-node:hover,
.mind-node.selected {
    overflow: visible !important;
}

.mind-node.node-diamond .mind-node-toolbar {
    transform: translateX(-50%) rotate(-45deg);
}

.mind-node::-webkit-resizer {
    background: transparent;
    width: 16px;
    height: 16px;
}

.mind-node.node-diamond::-webkit-resizer {
    width: 24px;
    height: 24px;
}

.mn-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 3px 6px;
    font-size: 11px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
}

.mn-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.08); }
.mn-btn.danger:hover { color: #ef4444; }

/* Connection states */
.mind-node.connect-source { outline: 2.5px dashed #6366f1; outline-offset: 4px; }
.mind-node.connect-target { outline: 2.5px solid #10b981; outline-offset: 4px; }

/* Selected element styling */
.mind-node.selected,
.sticky-note.selected,
.float-text.selected {
    outline: 2.5px solid #6366f1 !important;
    outline-offset: 4px;
}

@keyframes pulse-outline {
    0%,100% { outline-color: rgba(99,102,241,0.9); }
    50% { outline-color: rgba(99,102,241,0.25); }
}

.mind-node.connect-source { animation: pulse-outline 0.9s ease-in-out infinite; }

/* ----- Floating Text ----- */
.float-text {
    position: absolute;
    z-index: 8;
    cursor: move;
    user-select: none;
    padding: 4px 6px;
    border-radius: 4px;
    min-width: 60px;
    border: 1px solid transparent;
    transition: border-color 0.15s;
}

.float-text:hover { border-color: rgba(99,102,241,0.35); }
.float-text:hover .float-text-toolbar,
.float-text.selected .float-text-toolbar { display: flex !important; }

.float-text textarea {
    background: none;
    border: none;
    outline: none;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    resize: none;
    width: 100%;
    min-width: 60px;
    cursor: text;
    line-height: 1.4;
}

/* ----- Zen Mode ----- */
body.zen-mode #sticky-space {
    position: fixed;
    inset: 0;
    z-index: 9999;
    height: 100vh;
    background: #07090f;
}

body.zen-mode .sticky-boards-sidebar {
    width: 0;
    overflow: hidden;
    border: none;
}

/* ----- Hive Mind Zen Mode ----- */
body.zen-mode #hive-mind-panel {
    position: fixed;
    inset: 0;
    z-index: 9999;
    height: 100vh !important;
    background: #07090f;
    padding: 0 !important;
    margin: 0 !important;
}

body.zen-mode #hive-mind-panel .hive-mind-layout {
    height: 100vh !important;
    gap: 0 !important;
}

body.zen-mode #hive-mind-panel .hive-sidebar {
    display: none !important;
}

body.zen-mode #hive-mind-panel .hive-tabs-bar {
    display: none !important;
}

body.zen-mode #hive-mind-panel .hive-main-content {
    gap: 0 !important;
}

body.zen-mode #hive-mind-panel #hive-content-board {
    display: flex !important;
    gap: 0 !important;
}

body.zen-mode #hive-mind-panel #hive-boards-sidebar {
    width: 0 !important;
    overflow: hidden !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ----- Board Image Notes ----- */
.board-image-note {
    position: absolute;
    min-width: 120px;
    min-height: 80px;
    width: 240px;
    z-index: 11;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.1);
    cursor: grab;
    user-select: none;
    transition: box-shadow 0.15s, outline 0.15s;
    resize: both;
    display: flex;
    flex-direction: column;
    background: #111827;
}

.board-image-note:active { cursor: grabbing; }

.board-image-note.selected {
    outline: 2.5px solid #6366f1 !important;
    outline-offset: 4px;
}

.board-image-note img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    flex: 1;
    min-height: 60px;
    pointer-events: none;
    user-select: none;
}

.board-image-note-toolbar {
    position: absolute;
    top: 4px;
    right: 4px;
    display: none;
    gap: 4px;
    z-index: 20;
    background: rgba(10,13,22,0.85);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 3px 5px;
    backdrop-filter: blur(8px);
}

.board-image-note:hover .board-image-note-toolbar,
.board-image-note.selected .board-image-note-toolbar { display: flex !important; }

.board-image-note-caption {
    padding: 4px 8px;
    background: rgba(0,0,0,0.5);
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    border-top: 1px solid rgba(255,255,255,0.07);
    cursor: text;
    outline: none;
    resize: none;
    width: 100%;
    box-sizing: border-box;
    min-height: 24px;
    overflow: hidden;
}

.board-image-note-caption:focus { color: #e2e8f0; background: rgba(0,0,0,0.7); }

/* Paste image hint overlay */
.paste-image-hint {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(99,102,241,0.15);
    border: 1px dashed rgba(99,102,241,0.5);
    border-radius: 10px;
    padding: 10px 22px;
    color: #a5b4fc;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10000;
    pointer-events: none;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}



.sticky-note {
    position: absolute;
    width: 200px;
    min-height: 200px;
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    cursor: default;
}

.sticky-note:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.sticky-note.dragging {
    opacity: 0.85;
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    cursor: move;
}

/* Sticky Note Colors (Gradients) */
.sticky-note.color-yellow {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    color: #451a03;
}
.sticky-note.color-yellow .sticky-textarea {
    color: #451a03;
}
.sticky-note.color-yellow .sticky-btn {
    color: rgba(69, 26, 3, 0.6);
}
.sticky-note.color-yellow .sticky-btn:hover {
    color: #451a03;
    background: rgba(0,0,0,0.05);
}

.sticky-note.color-pink {
    background: linear-gradient(135deg, #fbcfe8 0%, #f472b6 100%);
    color: #4c0519;
}
.sticky-note.color-pink .sticky-textarea {
    color: #4c0519;
}
.sticky-note.color-pink .sticky-btn {
    color: rgba(76, 5, 25, 0.6);
}
.sticky-note.color-pink .sticky-btn:hover {
    color: #4c0519;
    background: rgba(0,0,0,0.05);
}

.sticky-note.color-blue {
    background: linear-gradient(135deg, #bfdbfe 0%, #60a5fa 100%);
    color: #1e3a8a;
}
.sticky-note.color-blue .sticky-textarea {
    color: #1e3a8a;
}
.sticky-note.color-blue .sticky-btn {
    color: rgba(30, 58, 138, 0.6);
}
.sticky-note.color-blue .sticky-btn:hover {
    color: #1e3a8a;
    background: rgba(0,0,0,0.05);
}

.sticky-note.color-green {
    background: linear-gradient(135deg, #bbf7d0 0%, #4ade80 100%);
    color: #064e3b;
}
.sticky-note.color-green .sticky-textarea {
    color: #064e3b;
}
.sticky-note.color-green .sticky-btn {
    color: rgba(6, 78, 59, 0.6);
}
.sticky-note.color-green .sticky-btn:hover {
    color: #064e3b;
    background: rgba(0,0,0,0.05);
}

.sticky-note.color-purple {
    background: linear-gradient(135deg, #e9d5ff 0%, #c084fc 100%);
    color: #3b0764;
}
.sticky-note.color-purple .sticky-textarea {
    color: #3b0764;
}
.sticky-note.color-purple .sticky-btn {
    color: rgba(59, 7, 100, 0.6);
}
.sticky-note.color-purple .sticky-btn:hover {
    color: #3b0764;
    background: rgba(0,0,0,0.05);
}

/* Sticky Sub-Elements */
.sticky-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 6px;
    margin-bottom: 2px;
}

.sticky-drag-handle {
    cursor: move;
    flex-grow: 1;
    height: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.sticky-drag-handle::before {
    content: "•••";
    font-size: 10px;
    letter-spacing: 1.5px;
    opacity: 0.4;
}

.sticky-actions-right {
    display: flex;
    gap: 4px;
    align-items: center;
}

.sticky-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-textarea {
    width: 100%;
    flex: 1;
    background: transparent;
    border: none;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    padding: 4px 0;
}

.sticky-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
}

.sticky-link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.sticky-task-selector {
    background: rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    font-size: 10px;
    padding: 2px 4px;
    width: 100%;
    outline: none;
    color: inherit;
    cursor: pointer;
}

.sticky-task-display {
    background: rgba(0,0,0,0.04);
    border-radius: 4px;
    padding: 4px 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sticky-task-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sticky-task-deadline {
    opacity: 0.75;
    font-size: 9px;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Hive Mind Workspace View Styles */
.hive-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    min-height: calc(100vh - 180px);
}

@media (max-width: 900px) {
    .hive-grid {
        grid-template-columns: 1fr;
    }
}

.hive-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hive-team-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hive-team-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.hive-team-item:hover, .hive-team-item.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.hive-team-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hive-members-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.hive-member-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.hive-member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 6px;
    font-size: 12px;
}

.hive-member-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hive-member-name {
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hive-member-role {
    font-size: 10px;
    color: var(--text-muted);
}

.hive-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hive-tabs-bar {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.hive-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.hive-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.hive-tab-btn.active {
    color: var(--color-accent);
    background: rgba(99, 102, 241, 0.1);
}

/* Sticky Space Premium CSS */
.sticky-canvas {
    background-color: rgba(15, 23, 42, 0.4);
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    position: relative;
}

.sticky-note {
    position: absolute;
    width: 220px;
    height: 220px;
    min-width: 160px;
    min-height: 160px;
    max-width: 800px;
    max-height: 800px;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    cursor: grab;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 10;
    resize: both;
    overflow: hidden;
    box-sizing: border-box;
}

.sticky-note:active {
    cursor: grabbing;
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.sticky-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 6px;
    margin-bottom: 8px;
    opacity: 0.85;
}

.sticky-note-header .drag-handle {
    flex-grow: 1;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sticky-note-header .actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.sticky-note-header button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 11px;
    padding: 2px 4px;
    border-radius: 4px;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
}

.sticky-note-header button:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.08);
}

.sticky-note-content {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    color: inherit;
    overflow-y: auto;
    word-break: break-word;
    padding-bottom: 8px;
}

.sticky-note-content[contenteditable="true"]:empty::before {
    content: attr(placeholder);
    color: rgba(15, 23, 42, 0.45);
    pointer-events: none;
    display: block;
}

.sticky-note-content ul, .sticky-note-content ol {
    margin: 4px 0;
    padding-left: 20px;
}

.sticky-note-content li {
    margin-bottom: 2px;
}

.sticky-note-content a {
    color: #1d4ed8;
    text-decoration: underline;
    cursor: pointer;
}

/* Floating Sticky Format Toolbar styling */
.sticky-format-toolbar {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: auto;
}

.sticky-format-toolbar.hidden {
    opacity: 0;
    transform: translateY(6px) scale(0.95);
    pointer-events: none;
}

.sticky-format-toolbar button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 11px;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.sticky-format-toolbar button:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.sticky-format-toolbar button.active {
    background: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.5);
}

.sticky-format-toolbar .toolbar-sep {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
}

/* Premium Glassmorphic colors for stickies */
.sticky-note.color-yellow { background: linear-gradient(135deg, #fef08a 0%, #fde047 100%); color: #0f172a; }
.sticky-note.color-blue { background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%); color: #0f172a; }
.sticky-note.color-green { background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%); color: #0f172a; }
.sticky-note.color-pink { background: linear-gradient(135deg, #fbcfe8 0%, #f9a8d4 100%); color: #0f172a; }
.sticky-note.color-purple { background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%); color: #0f172a; }

/* Collaborative Board Row Layout */
#hive-board-row1 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

#hive-board-row2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 900px;
    margin: 16px auto 0 auto !important;
}

.hive-roster-member {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
}

.hive-roster-member .member-role {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.select-premium option {
    background-color: #0f172a;
    color: #fff;
}

/* Premium Unified Header Buttons & Badges */
.header-btn {
    width: 42px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    padding: 0;
}

.header-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-btn.btn-streak {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
    border: 1.5px solid rgba(239, 68, 68, 0.25);
}
.header-btn.btn-streak:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.header-btn.btn-hof {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.06);
    border: 1.5px solid rgba(251, 191, 36, 0.25);
}
.header-btn.btn-hof:hover {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.25);
}

.header-btn.btn-ambient {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.06);
    border: 1.5px solid rgba(56, 189, 248, 0.25);
}
.header-btn.btn-ambient:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.header-btn.btn-account {
    color: #818cf8;
    background: rgba(129, 140, 248, 0.06);
    border: 1.5px solid rgba(129, 140, 248, 0.25);
}
.header-btn.btn-account:hover {
    background: rgba(129, 140, 248, 0.12);
    border-color: rgba(129, 140, 248, 0.45);
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.25);
}

.header-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.header-badge.badge-streak {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}
.header-badge.badge-hof {
    background: #fbbf24;
    color: #0f172a;
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.5);
}

/* Collapsible Hive Sidebar transitions */
#hive-sidebar {
    transition: width 0.25s ease, padding 0.25s ease, min-width 0.25s ease !important;
}

/* Magical Goals, Dreams, Wishes Column Styles */
.col-magical {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.col-magical:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.45) !important;
}
.col-goals:hover {
    border-color: rgba(245, 158, 11, 0.65) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.45), 0 0 15px rgba(245, 158, 11, 0.2) !important;
}
.col-dreams:hover {
    border-color: rgba(168, 85, 247, 0.65) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.45), 0 0 15px rgba(168, 85, 247, 0.2) !important;
}
.col-wishes:hover {
    border-color: rgba(236, 72, 153, 0.65) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.45), 0 0 15px rgba(236, 72, 153, 0.2) !important;
}

.triage-item-goals {
    border-left: 3px solid #f59e0b !important;
    background: rgba(245, 158, 11, 0.05) !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1) !important;
    transition: all 0.2s ease;
}
.triage-item-goals:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25) !important;
    border-left-color: #fbbf24 !important;
}

.triage-item-dreams {
    border-left: 3px solid #a855f7 !important;
    background: rgba(168, 85, 247, 0.05) !important;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.1) !important;
    transition: all 0.2s ease;
}
.triage-item-dreams:hover {
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25) !important;
    border-left-color: #c084fc !important;
}

.triage-item-wishes {
    border-left: 3px solid #ec4899 !important;
    background: rgba(236, 72, 153, 0.05) !important;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.1) !important;
    transition: all 0.2s ease;
}
.triage-item-wishes:hover {
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25) !important;
    border-left-color: #f472b6 !important;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.35; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.3) rotate(180deg); filter: drop-shadow(0 0 6px currentColor); }
}

.magical-pulse {
    animation: pulse 2s infinite ease-in-out;
}

/* User Activity status indicators in admin dashboard */
.activity-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-status.online {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.1);
}

.activity-status.recent {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.activity-status.older {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.activity-status.offline {
    color: #64748b;
    background: rgba(100, 116, 139, 0.03);
    border: 1px solid rgba(100, 116, 139, 0.08);
}

.online-indicator-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse-online-dot 1.8s infinite ease-in-out;
}

@keyframes pulse-online-dot {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.9);
        opacity: 0.8;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Landing Page Feature Cards styling */
.feature-card-landing {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card-landing:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(99, 102, 241, 0.1);
}

.feature-card-header-landing {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
}

.feature-card-header-landing i {
    font-size: 22px;
}

.feature-card-header-landing h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

.feature-card-landing p {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    flex-grow: 1;
}

.btn-launch-feature {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-launch-feature:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Admin statistics cards */
.admin-stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-details h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

.stat-details span {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

@keyframes spin-hero-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-hero-glow {
    0%, 100% { transform: scale(0.95); opacity: 0.35; }
    50% { transform: scale(1.05); opacity: 0.55; }
}

@keyframes fadeInView {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.landing-section-title {
    position: relative;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
}

/* Daily Target Multiplier Buttons */
.multiplier-btn {
    flex: 1;
    max-width: 70px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-secondary);
    padding: 6px 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    font-family: inherit;
}
.multiplier-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
}
.multiplier-btn.active {
    background: var(--color-accent-grad) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* --- Dynamic Kanban Board & Layout --- */
.triage-view-kanban {
    display: block !important;
}
.triage-kanban-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    width: 100%;
    scroll-behavior: smooth;
}
.triage-kanban-row::-webkit-scrollbar {
    height: 8px;
}
.triage-kanban-row::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}
.triage-kanban-row::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
.triage-kanban-row::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.triage-kanban-row .triage-column {
    min-width: 250px;
    width: 250px;
    flex-shrink: 0;
    height: 480px;
}
.triage-kanban-row .column-list {
    max-height: 410px;
    overflow-y: auto;
}
.triage-view-focus .triage-columns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.triage-view-focus .triage-column {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

/* --- Collapsed Column Stripe --- */
.triage-column.collapsed {
    min-width: 44px !important;
    width: 44px !important;
    max-width: 44px !important;
    padding: 12px 4px !important;
    overflow: hidden !important;
    background: rgba(15, 23, 42, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.triage-column.collapsed .column-header {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}
.triage-column.collapsed .column-header h4 {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    margin: 10px auto;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.triage-column.collapsed .column-header h4 i {
    transform: rotate(90deg);
}
.triage-column.collapsed .column-list,
.triage-column.collapsed .column-header .column-actions-trigger,
.triage-column.collapsed .column-resize-handle {
    display: none !important;
}

/* --- Column Resize Handles --- */
.triage-column {
    position: relative;
    transition: border-color 0.2s;
}
.column-resize-handle {
    position: absolute;
    right: -4px;
    top: 0;
    width: 8px;
    height: 100%;
    cursor: col-resize;
    z-index: 100;
}
.column-resize-handle::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 10%;
    width: 2px;
    height: 80%;
    background: transparent;
    transition: background 0.15s;
    border-radius: 1px;
}
.column-resize-handle:hover::after,
.column-resize-handle.resizing::after {
    background: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent);
}

/* --- List Manager console toggle styling --- */
.list-manager-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s;
}
.list-manager-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- Next-Gen Card Styles --- */
.triage-card-details-wrapper {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: fadeIn 0.25s ease-out;
}
.triage-card-checklist-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.triage-card-checklist-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}
.triage-card-checklist-item input[type="checkbox"] {
    cursor: pointer;
    width: 13px;
    height: 13px;
    accent-color: var(--color-accent);
}
.triage-card-checklist-item.checked span {
    text-decoration: line-through;
    color: var(--text-muted);
}
.triage-card-progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}
.triage-card-progress-bar {
    height: 100%;
    background: var(--color-success);
    width: 0%;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.triage-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
.triage-card-tag {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.25);
    letter-spacing: 0.3px;
}
.triage-card-tag.tag-urgent {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.25);
}
.triage-card-tag.tag-high {
    background: rgba(245, 158, 11, 0.12);
    color: #fde047;
    border-color: rgba(245, 158, 11, 0.25);
}

.triage-item-controls button.btn-expand-card {
    color: var(--text-muted);
}
.triage-item-controls button.btn-expand-card.active {
    color: var(--color-accent);
}

@keyframes magic-sparkle-glow {
    0% { box-shadow: 0 0 0px rgba(168, 85, 247, 0); }
    50% { box-shadow: 0 0 25px rgba(168, 85, 247, 0.4); border-color: #a855f7; }
    100% { box-shadow: 0 0 0px rgba(168, 85, 247, 0); }
}
.magic-glow-active {
    animation: magic-sparkle-glow 1.2s ease-in-out;
}

/* --- Vertical Height Resize Handles --- */
.column-height-resize-handle {
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 8px;
    cursor: row-resize;
    z-index: 100;
}
.column-height-resize-handle::after {
    content: '';
    position: absolute;
    left: 10%;
    top: 3px;
    width: 80%;
    height: 2px;
    background: transparent;
    transition: background 0.15s;
    border-radius: 1px;
}
.column-height-resize-handle:hover::after,
.column-height-resize-handle.resizing::after {
    background: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent);
}

/* --- High Performance CSS Sparkles --- */
@keyframes sparkle-animation {
    0% {
        transform: translate3d(0, 0, 0) scale(1.5) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate3d(var(--vx), var(--vy), 0) scale(0.5) rotate(var(--rotate));
        opacity: 0;
    }
}
.sparkle-particle {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    animation: sparkle-animation var(--duration) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
