/* ==========================================================================
   Todoist Master CSS Design System (Complete Styling for All Components)
   Includes: Friends System, Direct Chat, WebRTC Video/Voice & Live Screen Sharing
   ========================================================================== */

/* 1. DEFAULT LIGHT THEME (ORİJİNAL SADE BEYAZ TODOIST TASARIMI) */
:root {

    --color-todoist-red: var(--todoist-red);
    --card-bg-light: rgba(255, 255, 255, 0.06);    --todoist-red: #e44332;
    --todoist-red-hover: var(--todoist-red-hover);
    --todoist-red-light: rgba(228, 67, 50, 0.1);
    --gx-glow: none;

    --p1-red: #e44332;
    --p2-orange: #ff9900;
    --p3-blue: #246fe0;
    --p4-grey: #71717a;

    --bg-app: #ffffff;
    --bg-sidebar: #fafafa;
    --bg-card: #ffffff;
    --bg-hover: #f3f3f3;
    --border-color: #eeeeee;
    --border-hover: #dddddd;

    --text-primary: #202020;
    --text-secondary: #555555;
    --text-muted: #888888;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-dropdown: 0 4px 16px rgba(0,0,0,0.12);
}

/* 2. EXPLICIT LIGHT THEME OVERRIDES */
[data-theme="light"] {
    --bg-app: #ffffff;
    --bg-sidebar: #fafafa;
    --bg-card: #ffffff;
    --bg-hover: #f3f3f3;
    --border-color: #eeeeee;
    --border-hover: #dddddd;
    --text-primary: #202020;
    --text-secondary: #555555;
    --text-muted: #888888;
    --shadow-dropdown: 0 4px 16px rgba(0,0,0,0.12);
}
[data-theme="light"] .theme-icon-light { display: none !important; }
[data-theme="light"] .theme-icon-dark { display: inline-block !important; }

/* 3. EXPLICIT DARK THEME OVERRIDES */
[data-theme="dark"] {
    --bg-app: #09090b;
    --bg-sidebar: #121215;
    --bg-card: #18181c;
    --bg-hover: #222228;
    --border-color: #27272a;
    --border-hover: #3f3f46;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --shadow-dropdown: 0 8px 24px rgba(0,0,0,0.6);
}
[data-theme="dark"] .theme-icon-dark { display: none !important; }
[data-theme="dark"] .theme-icon-light { display: inline-block !important; }

/* FONT TYPOGRAPHY SWITCHER */
[data-font="inter"] { --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
[data-font="rajdhani"] { --font-family: 'Rajdhani', sans-serif; }
[data-font="mono"] { --font-family: 'JetBrains Mono', monospace; }
[data-font="outfit"] { --font-family: 'Outfit', sans-serif; }
[data-font="poppins"] { --font-family: 'Poppins', sans-serif; }

/* THEME COMBINATION PRESETS */
[data-gx-theme="todoist_original"] {
    --todoist-red: #e44332;
    --todoist-red-hover: var(--todoist-red-hover);
    --todoist-red-light: rgba(228, 67, 50, 0.15);
    --gx-glow: none;
}
[data-gx-theme="opera_red"] {
    --todoist-red: #ff003c;
    --todoist-red-hover: #d90032;
    --todoist-red-light: rgba(255, 0, 60, 0.2);
    --gx-glow: 0 0 15px rgba(255, 0, 60, 0.5);
}
[data-gx-theme="vaporwave"] {
    --todoist-red: #ff007f;
    --todoist-red-hover: #d40069;
    --todoist-red-light: rgba(255, 0, 127, 0.2);
    --gx-glow: 0 0 15px rgba(0, 245, 212, 0.6);
}
[data-gx-theme="matrix"] {
    --todoist-red: #00ff66;
    --todoist-red-hover: #00cc52;
    --todoist-red-light: rgba(0, 255, 102, 0.18);
    --gx-glow: 0 0 15px rgba(0, 255, 102, 0.5);
}
[data-gx-theme="ice_frost"] {
    --todoist-red: #38bdf8;
    --todoist-red-hover: #0284c7;
    --todoist-red-light: rgba(56, 189, 248, 0.2);
    --gx-glow: 0 0 15px rgba(56, 189, 248, 0.5);
}
[data-gx-theme="solar_gold"] {
    --todoist-red: #fbbf24;
    --todoist-red-hover: #d97706;
    --todoist-red-light: rgba(251, 191, 36, 0.2);
    --gx-glow: 0 0 15px rgba(251, 191, 36, 0.5);
}

/* HIGH-RES UNPLASH WALLPAPERS - LIGHT MODE VERSIONS */
[data-theme="light"][data-bg-wallpaper="none"] body.todoist-theme {
    background-image: none !important;
    background-color: #ffffff !important;
}
[data-theme="light"][data-bg-wallpaper="cyberpunk_street"] body.todoist-theme {
    background: linear-gradient(rgba(255,255,255,0.78), rgba(255,255,255,0.85)),
                url('https://images.unsplash.com/photo-1519501025264-65ba15a82390?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat fixed !important;
}
[data-theme="light"][data-bg-wallpaper="deep_space"] body.todoist-theme {
    background: linear-gradient(rgba(255,255,255,0.78), rgba(255,255,255,0.85)),
                url('https://images.unsplash.com/photo-1506703719100-a0f3a48c0f86?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat fixed !important;
}
[data-theme="light"][data-bg-wallpaper="neon_wave"] body.todoist-theme {
    background: linear-gradient(rgba(255,255,255,0.78), rgba(255,255,255,0.85)),
                url('https://images.unsplash.com/photo-1550684848-fac1c5b4e853?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat fixed !important;
}
[data-theme="light"][data-bg-wallpaper="dark_forest"] body.todoist-theme {
    background: linear-gradient(rgba(255,255,255,0.78), rgba(255,255,255,0.85)),
                url('https://images.unsplash.com/photo-1448375240586-882707db888b?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat fixed !important;
}
[data-theme="light"][data-bg-wallpaper="alpine_aurora"] body.todoist-theme {
    background: linear-gradient(rgba(255,255,255,0.78), rgba(255,255,255,0.85)),
                url('https://images.unsplash.com/photo-1517411032315-54ef2cb783bb?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat fixed !important;
}

/* HIGH-RES UNPLASH WALLPAPERS - DARK MODE VERSIONS */
[data-theme="dark"][data-bg-wallpaper="none"] body.todoist-theme {
    background-image: none !important;
    background-color: #09090b !important;
}
[data-theme="dark"][data-bg-wallpaper="cyberpunk_street"] body.todoist-theme {
    background: linear-gradient(rgba(9,9,11,0.82), rgba(9,9,11,0.88)),
                url('https://images.unsplash.com/photo-1519501025264-65ba15a82390?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat fixed !important;
}
[data-theme="dark"][data-bg-wallpaper="deep_space"] body.todoist-theme {
    background: linear-gradient(rgba(9,9,11,0.8), rgba(9,9,11,0.88)),
                url('https://images.unsplash.com/photo-1506703719100-a0f3a48c0f86?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat fixed !important;
}
[data-theme="dark"][data-bg-wallpaper="neon_wave"] body.todoist-theme {
    background: linear-gradient(rgba(9,9,11,0.8), rgba(9,9,11,0.88)),
                url('https://images.unsplash.com/photo-1550684848-fac1c5b4e853?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat fixed !important;
}
[data-theme="dark"][data-bg-wallpaper="dark_forest"] body.todoist-theme {
    background: linear-gradient(rgba(9,9,11,0.82), rgba(9,9,11,0.88)),
                url('https://images.unsplash.com/photo-1448375240586-882707db888b?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat fixed !important;
}
[data-theme="dark"][data-bg-wallpaper="alpine_aurora"] body.todoist-theme {
    background: linear-gradient(rgba(9,9,11,0.82), rgba(9,9,11,0.88)),
                url('https://images.unsplash.com/photo-1517411032315-54ef2cb783bb?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat fixed !important;
}

/* GLASSMORPHISM CARDS FOR LIGHT MODE WALLPAPERS */
[data-theme="light"][data-bg-wallpaper]:not([data-bg-wallpaper="none"]) .todoist-sidebar,
[data-theme="light"][data-bg-wallpaper]:not([data-bg-wallpaper="none"]) .todoist-inline-editor,
[data-theme="light"][data-bg-wallpaper]:not([data-bg-wallpaper="none"]) .single-task-hero-card,
[data-theme="light"][data-bg-wallpaper]:not([data-bg-wallpaper="none"]) .modal-card,
[data-theme="light"][data-bg-wallpaper]:not([data-bg-wallpaper="none"]) .friends-drawer-card {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    border-color: rgba(220, 220, 220, 0.8) !important;
    color: #202020 !important;
}

/* GLASSMORPHISM CARDS FOR DARK MODE WALLPAPERS */
[data-theme="dark"][data-bg-wallpaper]:not([data-bg-wallpaper="none"]) .todoist-sidebar,
[data-theme="dark"][data-bg-wallpaper]:not([data-bg-wallpaper="none"]) .todoist-inline-editor,
[data-theme="dark"][data-bg-wallpaper]:not([data-bg-wallpaper="none"]) .single-task-hero-card,
[data-theme="dark"][data-bg-wallpaper]:not([data-bg-wallpaper="none"]) .modal-card,
[data-theme="dark"][data-bg-wallpaper]:not([data-bg-wallpaper="none"]) .friends-drawer-card {
    background: rgba(18, 18, 21, 0.82) !important;
    backdrop-filter: blur(14px) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.todoist-theme {
    font-family: var(--font-family);
    background-color: var(--bg-app);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(136, 136, 136, 0.3); border-radius: 10px; }

.todoist-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* HEADER STYLING FOR LIGHT & DARK */
.todoist-header {
    height: 44px;
    background-color: var(--todoist-red);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 100;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
[data-theme="dark"] .todoist-header {
    background-color: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--gx-glow);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.relative-btn { position: relative; }

.pomodoro-header-widget {
    display: flex; align-items: center; gap: 6px; padding: 5px 12px;
    border-radius: 20px; background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171; font-size: 12px; font-weight: 700; transition: all 0.18s ease;
}
.pomodoro-header-widget:hover { background: rgba(239, 68, 68, 0.25); transform: translateY(-1px); }
.pomo-time-text { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }
.pomo-btn-sm {
    border: none; background: transparent; color: #f87171; cursor: pointer; font-size: 11px; transition: transform 0.15s ease;
}
.pomo-btn-sm:hover { transform: scale(1.2); }

/* AMBIENT SOUND WIDGET & BUTTON */
.ambient-sound-widget { display: flex; align-items: center; }
.ambient-btn {
    display: flex; align-items: center; gap: 6px; padding: 5px 12px;
    border-radius: 20px; border: 1px solid rgba(168, 85, 247, 0.35);
    background: rgba(168, 85, 247, 0.15); color: #c084fc; font-size: 12px;
    font-weight: 600; cursor: pointer; transition: all 0.18s ease;
}
.ambient-btn:hover {
    background: #a855f7; color: #ffffff; border-color: #a855f7;
    transform: translateY(-1px); box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}
.ambient-btn.active {
    background: #a855f7; color: #ffffff; border-color: #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5); animation: pulseAudio 2s infinite;
}
@keyframes pulseAudio {
    0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

[data-theme="dark"] .ambient-btn {
    background: rgba(168, 85, 247, 0.15); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.3);
}
[data-theme="dark"] .ambient-btn:hover {
    background: #a855f7; color: #ffffff; box-shadow: 0 0 14px rgba(168, 85, 247, 0.6);
}

.header-icon-btn {
    width: 32px; height: 32px; border-radius: var(--radius-sm); border: none;
    background: transparent; color: #ffffff; display: flex; align-items: center;
    justify-content: center; cursor: pointer; font-size: 14px; transition: all 0.15s;
}
.header-icon-btn:hover { background: rgba(255, 255, 255, 0.2); }
[data-theme="dark"] .header-icon-btn {
    border: 1px solid var(--border-color); background: var(--bg-card);
}
[data-theme="dark"] .header-icon-btn:hover {
    border-color: var(--todoist-red); color: var(--todoist-red); box-shadow: var(--gx-glow); background: var(--bg-hover);
}

.smart-input-container {
    position: relative; display: flex; align-items: center;
}
.search-icon {
    position: absolute; left: 10px; color: rgba(255, 255, 255, 0.8); font-size: 13px;
}
[data-theme="dark"] .search-icon { color: var(--text-muted); }

.smart-input-container input {
    width: 260px; padding: 5px 60px 5px 30px; background: rgba(255, 255, 255, 0.2);
    border: none; border-radius: var(--radius-sm); color: #ffffff; font-size: 13px;
    outline: none; transition: all 0.2s;
}
.smart-input-container input::placeholder { color: rgba(255, 255, 255, 0.8); }
.smart-input-container input:focus { background: #ffffff; color: #202020; width: 320px; }

[data-theme="dark"] .smart-input-container input {
    background: var(--bg-card); border: 1px solid var(--border-color); color: #ffffff;
}
[data-theme="dark"] .smart-input-container input::placeholder { color: var(--text-muted); }
[data-theme="dark"] .smart-input-container input:focus { border-color: var(--todoist-red); width: 320px; box-shadow: var(--gx-glow); }

.voice-btn {
    position: absolute; right: 32px; background: none; border: none;
    color: rgba(255, 255, 255, 0.8); cursor: pointer; font-size: 13px; padding: 4px;
}
[data-theme="dark"] .voice-btn { color: var(--text-muted); }
.voice-btn:hover { color: #ffffff; }

kbd {
    font-size: 10px; padding: 2px 5px; background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color); border-radius: 3px; font-family: monospace; color: var(--text-primary);
}
.search-kbd {
    position: absolute; right: 8px; font-size: 10px; padding: 1px 4px;
    background: rgba(255, 255, 255, 0.3); border-radius: 3px; color: #fff; border: none;
}
[data-theme="dark"] .search-kbd { background: var(--bg-hover); color: var(--text-muted); }

/* FRIENDS & DIRECT CHAT DRAWER STYLES */
.drawer-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px); z-index: 350; display: flex; justify-content: flex-end;
    animation: fadeIn 0.2s ease;
}
.friends-drawer-card {
    width: 420px; height: 100vh; background: var(--bg-card); border-left: 1px solid var(--border-color);
    box-shadow: -8px 0 32px rgba(0,0,0,0.2); padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.drawer-header { display: flex; justify-content: space-between; align-items: center; }
.drawer-header h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.friends-tab-bar { display: flex; background: var(--bg-hover); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.friends-tab { flex: 1; border: none; background: transparent; padding: 7px; font-size: 12px; font-weight: 600; color: var(--text-muted); border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.15s; }
.friends-tab.active { background: var(--bg-card); color: var(--todoist-red); box-shadow: 0 2px 6px rgba(0,0,0,0.08); font-weight: 700; }
.friends-tab-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; gap: 10px; }

.friends-list-group { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; padding-right: 2px; }
.friend-item-card {
    display: flex; align-items: center; justify-content: space-between; padding: 10px 12px;
    border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-sidebar);
    cursor: pointer; transition: all 0.18s ease;
}
.friend-item-card:hover, .friend-item-card.active { border-color: var(--todoist-red); background: var(--bg-hover); transform: translateX(-2px); }
.friend-meta-info { display: flex; align-items: center; gap: 10px; }
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }

.direct-chat-window {
    flex: 1; display: flex; flex-direction: column; border: 1px solid var(--border-color);
    border-radius: var(--radius-md); background: var(--bg-sidebar); overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}
.chat-header {
    display: flex; align-items: center; justify-content: space-between; padding: 10px 14px;
    background: var(--bg-card); border-bottom: 1px solid var(--border-color);
}
.chat-user-info { display: flex; align-items: center; gap: 10px; }
.chat-call-actions { display: flex; align-items: center; gap: 6px; }
.chat-call-btn {
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-color);
    background: var(--bg-hover); color: var(--text-primary); display: flex; align-items: center;
    justify-content: center; font-size: 13px; cursor: pointer; transition: all 0.18s ease;
}
.chat-call-btn:hover { border-color: var(--todoist-red); color: var(--todoist-red); background: var(--todoist-red-light); transform: scale(1.08); }
.bg-screen-btn { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border-color: rgba(56, 189, 248, 0.3); }
.bg-screen-btn:hover { background: #38bdf8; color: #ffffff; }

.chat-messages-box { flex: 1; padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble { max-width: 82%; padding: 8px 14px; border-radius: 16px; font-size: 13px; word-break: break-word; line-height: 1.4; }
.chat-bubble.sent { align-self: flex-end; background: var(--todoist-red); color: #ffffff; border-bottom-right-radius: 4px; box-shadow: 0 2px 8px rgba(228, 67, 50, 0.25); }
.chat-bubble.received { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-primary); border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

.chat-input-form { display: flex; gap: 8px; padding: 10px; background: var(--bg-card); border-top: 1px solid var(--border-color); }
.chat-input-form input { flex: 1; border: 1px solid var(--border-color); background: var(--bg-app); padding: 8px 14px; border-radius: 20px; font-size: 13px; color: var(--text-primary); outline: none; transition: border 0.15s; }
.chat-input-form input:focus { border-color: var(--todoist-red); }
.btn-send-chat { width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--todoist-red); color: #ffffff; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.15s; }
.btn-send-chat:hover { transform: scale(1.1); background: var(--todoist-red-hover); }

/* WEBRTC CALL & SCREEN SHARE MODAL */
.webrtc-call-card {
    width: 92vw; max-width: 980px; height: 82vh; background: #09090b; border-radius: var(--radius-lg);
    overflow: hidden; display: flex; flex-direction: column; position: relative; box-shadow: 0 16px 50px rgba(0,0,0,0.85);
    border: 1px solid rgba(255,255,255,0.1);
}
.incoming-call-banner {
    position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
    background: rgba(18, 18, 21, 0.94); backdrop-filter: blur(16px); border: 1px solid var(--todoist-red);
    border-radius: 30px; padding: 12px 28px; display: flex; align-items: center; gap: 24px; z-index: 10;
    box-shadow: 0 10px 30px rgba(228, 67, 50, 0.3); animation: pulseCall 2s infinite;
}
@keyframes pulseCall {
    0% { box-shadow: 0 0 0 0 rgba(228, 67, 50, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(228, 67, 50, 0); }
    100% { box-shadow: 0 0 0 0 rgba(228, 67, 50, 0); }
}
.caller-meta { display: flex; align-items: center; gap: 12px; }
.incoming-actions { display: flex; gap: 10px; }
.btn-call-accept { padding: 8px 18px; border: none; background: #10b981; color: #fff; border-radius: 20px; font-weight: 700; font-size: 13px; cursor: pointer; transition: transform 0.15s; }
.btn-call-accept:hover { transform: scale(1.06); background: #059669; }
.btn-call-reject { padding: 8px 18px; border: none; background: var(--p1-red); color: #fff; border-radius: 20px; font-weight: 700; font-size: 13px; cursor: pointer; transition: transform 0.15s; }
.btn-call-reject:hover { transform: scale(1.06); background: var(--todoist-red-hover); }

.call-streams-container { flex: 1; position: relative; background: #000000; display: flex; align-items: center; justify-content: center; }
.remote-video-stream { width: 100%; height: 100%; object-fit: contain; }
.local-video-pip {
    position: absolute; bottom: 24px; right: 24px; width: 220px; height: 140px;
    border-radius: 12px; border: 2px solid var(--todoist-red); object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.7); background: #18181c; transition: all 0.2s ease;
}
.local-video-pip:hover { transform: scale(1.05); }
.call-status-overlay { position: absolute; font-size: 14px; font-weight: 700; color: #ffffff; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); padding: 10px 20px; border-radius: 24px; border: 1px solid rgba(255,255,255,0.15); }

.call-controls-toolbar {
    height: 74px; background: rgba(18, 18, 21, 0.96); display: flex; align-items: center; justify-content: center; gap: 18px; border-top: 1px solid rgba(255,255,255,0.1);
}
.call-tool-btn {
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1); color: #ffffff; font-size: 16px; display: flex;
    align-items: center; justify-content: center; cursor: pointer; transition: all 0.18s ease;
}
.call-tool-btn:hover { background: rgba(255,255,255,0.25); transform: scale(1.1); }
.call-tool-btn.btn-hangup { background: var(--p1-red); border-color: var(--p1-red); }
.call-tool-btn.btn-hangup:hover { background: var(--todoist-red-hover); transform: scale(1.12); }

/* RECENT BUTTON STYLES & HEADER ACTION BUTTONS */
.focus-hero-btn {
    display: flex; align-items: center; gap: 6px; padding: 5px 12px;
    border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15); color: #ffffff; font-size: 12px;
    font-weight: 600; cursor: pointer; transition: all 0.18s ease;
}
.focus-hero-btn:hover { background: #ffffff; color: var(--todoist-red); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

[data-theme="dark"] .focus-hero-btn {
    border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-primary);
}
[data-theme="dark"] .focus-hero-btn:hover { border-color: var(--todoist-red); color: var(--todoist-red); box-shadow: var(--gx-glow); background: var(--bg-hover); }

.btn-share-pill {
    display: flex; align-items: center; gap: 6px; padding: 3px 10px;
    border-radius: 20px; border: 1px solid var(--border-color); background: var(--bg-card);
    color: var(--text-secondary); font-size: 12px; font-weight: 600; cursor: pointer;
    transition: all 0.15s;
}
.btn-share-pill:hover { border-color: var(--todoist-red); color: #ffffff; background: var(--todoist-red); }

.share-link-box {
    display: flex; gap: 6px; background: var(--bg-app); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); padding: 4px;
}
.share-url-input {
    flex: 1; border: none; background: transparent; padding: 6px; font-size: 12px;
    color: var(--text-primary); outline: none; font-family: monospace;
}
.btn-copy-link {
    background: var(--todoist-red); color: #fff; border: none; border-radius: var(--radius-sm);
    padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.btn-copy-link:hover { background: var(--todoist-red-hover); box-shadow: var(--gx-glow); }

.quick-add-btn {
    width: 28px; height: 28px; border-radius: 50%; border: none;
    background: #ffffff; color: var(--todoist-red); font-size: 14px;
    font-weight: 700; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: transform 0.15s;
}
.quick-add-btn:hover { transform: scale(1.1); }
[data-theme="dark"] .quick-add-btn {
    background: var(--todoist-red); color: #ffffff; box-shadow: var(--gx-glow);
}

.karma-badge {
    display: flex; align-items: center; gap: 6px; padding: 3px 10px;
    border-radius: 20px; background: rgba(255, 255, 255, 0.2);
    font-size: 12px; font-weight: 600; cursor: pointer;
}
[data-theme="dark"] .karma-badge {
    background: var(--bg-card); border: 1px solid var(--border-color);
}
.text-karma { color: #ffd166; }
.karma-level-pill { font-size: 10px; background: rgba(255, 255, 255, 0.2); padding: 1px 6px; border-radius: 10px; }

/* USER PROFILE & CUSTOM AVATAR STYLES */
.user-profile-wrapper { position: relative; }
.todoist-avatar-btn { border: none; background: transparent; cursor: pointer; position: relative; }
.todoist-avatar {
    width: 28px; height: 28px; border-radius: 50%; color: #fff;
    font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center;
    object-fit: cover;
}
.todoist-avatar-img {
    width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
    border: 1px solid rgba(255,255,255,0.4);
}

.notification-badge-dot {
    position: absolute; top: -2px; right: -2px; width: 10px; height: 10px;
    background: #10b981; border: 2px solid #fff; border-radius: 50%;
}

.avatar-upload-container { display: flex; align-items: center; gap: 16px; }
.profile-avatar-large {
    width: 64px; height: 64px; border-radius: 50%; color: #fff; font-size: 24px;
    font-weight: 800; display: flex; align-items: center; justify-content: center;
    object-fit: cover; border: 2px solid var(--todoist-red);
}
.btn-upload-avatar {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
    background: var(--bg-hover); border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    font-size: 12px; font-weight: 600; color: var(--text-primary); cursor: pointer;
}
.btn-upload-avatar:hover { background: var(--border-color); }

/* CONSENT INVITATIONS BUTTONS */
.consent-invite-card {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px; border: 1px solid var(--border-color); border-radius: var(--radius-md);
    background: var(--bg-sidebar); margin-bottom: 8px;
}
.btn-accept-consent {
    padding: 5px 12px; border: none; background: #10b981; color: #ffffff;
    border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; cursor: pointer;
}
.btn-accept-consent:hover { background: #059669; }
.btn-decline-consent {
    padding: 5px 12px; border: 1px solid var(--border-color); background: transparent;
    color: var(--text-muted); border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; cursor: pointer; margin-left: 4px;
}
.btn-decline-consent:hover { color: var(--p1-red); border-color: var(--p1-red); }

/* ANALYTICS MODAL CARDS */
.analytics-card {
    padding: 12px; background: var(--bg-sidebar); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: center;
}
.analytics-val { font-size: 24px; font-weight: 800; }
.analytics-lbl { font-size: 11px; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.analytics-projects-list { display: flex; flex-direction: column; gap: 8px; }
.analytics-project-row { display: flex; flex-direction: column; gap: 4px; }
.analytics-bar-bg { width: 100%; height: 6px; background: var(--bg-hover); border-radius: 3px; overflow: hidden; }
.analytics-bar-fill { height: 100%; border-radius: 3px; transition: width 0.3s ease; }

/* THEME MODAL & PRESET BUTTON STYLES */
.gx-presets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gx-preset-card {
    padding: 12px; border: 1px solid var(--border-color); border-radius: var(--radius-md);
    background: var(--bg-sidebar); color: var(--text-primary); text-align: left;
    cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: all 0.2s;
}
.gx-preset-card:hover, .gx-preset-card.active {
    box-shadow: var(--gx-glow); border-color: var(--todoist-red); background: var(--bg-card);
}
.gx-preview-circle { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.small-text { font-size: 10px; color: var(--text-muted); }

.fonts-presets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.font-card-btn {
    padding: 10px; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    background: var(--bg-sidebar); color: var(--text-primary); cursor: pointer;
    display: flex; flex-direction: column; text-align: left; transition: all 0.15s;
}
.font-card-btn:hover, .font-card-btn.active { border-color: var(--todoist-red); color: var(--todoist-red); background: var(--bg-card); }

.wallpaper-presets-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wallpaper-card-btn {
    padding: 10px 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    background: var(--bg-sidebar); color: var(--text-primary); font-size: 12px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 8px; text-align: left; transition: all 0.15s;
}
.wallpaper-card-btn:hover, .wallpaper-card-btn.active { border-color: var(--todoist-red); background: var(--bg-card); color: var(--todoist-red); }
.wp-icon { font-size: 16px; }

/* SOUNDBOARD STYLES */
.sound-track-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sound-track-btn {
    padding: 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    background: var(--bg-sidebar); color: var(--text-primary); font-size: 13px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.15s;
}
.sound-track-btn.active, .sound-track-btn:hover { border-color: var(--todoist-red); background: var(--todoist-red-light); color: var(--todoist-red); }

/* CALENDAR VIEW GRID */
.todoist-calendar-container { width: 100%; display: flex; flex-direction: column; }
.calendar-header-nav { display: flex; justify-content: space-between; align-items: center; }
.calendar-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: 100%;
}
.calendar-day-cell {
    background: var(--bg-sidebar); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); min-height: 90px; padding: 6px;
    display: flex; flex-direction: column; gap: 4px; font-size: 11px;
}
.calendar-day-cell.today-cell { border: 2px solid var(--todoist-red); background: rgba(228,67,50,0.05); }
.cal-day-num { font-weight: 700; color: var(--text-primary); }
.cal-task-pill {
    padding: 2px 6px; border-radius: 3px; background: var(--bg-card);
    border: 1px solid var(--border-color); font-size: 10px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}

/* COMMAND PALETTE & SHORTCUTS */
.cmd-palette-header { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.cmd-palette-header input { flex: 1; border: none; outline: none; background: transparent; font-size: 15px; color: var(--text-primary); }
.cmd-results-list { display: flex; flex-direction: column; gap: 4px; max-height: 300px; overflow-y: auto; margin-top: 10px; }
.cmd-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px;
}
.cmd-item:hover { background: var(--bg-hover); color: var(--todoist-red); }

.shortcuts-grid { display: flex; flex-direction: column; gap: 8px; }
.shortcut-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

/* TASK PINNING & DRAG HANDLE */
.pin-btn.pinned { color: var(--todoist-red) !important; opacity: 1 !important; }
.drag-handle { cursor: grab; color: var(--text-muted); padding: 0 4px; }

.user-dropdown-menu {
    position: absolute; top: calc(100% + 8px); right: 0; width: 240px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); box-shadow: var(--shadow-dropdown);
    padding: 10px; z-index: 200;
}
.user-info-header { display: flex; flex-direction: column; }
.user-info-header strong { font-size: 14px; color: var(--text-primary); }
.user-info-header small { font-size: 11px; color: var(--text-muted); }
.dropdown-divider { border: none; border-top: 1px solid var(--border-color); margin: 6px 0; }
.dropdown-item {
    display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: none; background: transparent;
    color: var(--text-secondary); font-size: 13px; border-radius: var(--radius-sm); cursor: pointer; text-align: left; width: 100%;
}
.dropdown-item:hover { background: var(--bg-hover); color: var(--text-primary); }

.todoist-layout { display: flex; flex: 1; overflow: hidden; }

/* SIDEBAR */
.todoist-sidebar {
    width: 280px; background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color); padding: 16px 12px; display: flex; flex-direction: column;
    gap: 16px; overflow-y: auto; flex-shrink: 0; transition: margin-left 0.25s ease;
}
body.sidebar-closed .todoist-sidebar { margin-left: -280px; }

.sidebar-add-task-btn {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px;
    border-radius: var(--radius-sm); border: none; background: transparent; color: var(--todoist-red);
    font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.15s;
}
.sidebar-add-task-btn:hover { background: var(--todoist-red-light); }
.plus-circle {
    width: 22px; height: 22px; border-radius: 50%; background: var(--todoist-red);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px;
}

.sidebar-menu { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sidebar-item a {
    display: flex; align-items: center; padding: 7px 10px; border-radius: var(--radius-sm);
    color: var(--text-primary); text-decoration: none; font-size: 14px; font-weight: 500; transition: background 0.15s;
}
.sidebar-item a:hover { background: var(--bg-hover); }
.sidebar-item.active a { background: var(--todoist-red-light); color: var(--todoist-red); font-weight: 700; }

.nav-icon { width: 22px; font-size: 15px; }
.icon-inbox { color: #246fe0; }
.icon-today { color: #058527; }
.icon-upcoming { color: #692fc1; }
.icon-starred { color: #f4a261; }
.icon-completed { color: #10b981; }

.count-badge { margin-left: auto; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.count-today-badge { color: #058527; font-weight: 700; }

.sidebar-section { display: flex; flex-direction: column; gap: 6px; }
.section-header { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.section-title { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.section-add-btn { border: none; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 13px; }
.section-add-btn:hover { color: var(--text-primary); }

.project-bullet { width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; }

.workspace-switcher-inline { position: relative; }
.workspace-select-btn {
    width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 10px;
    background: var(--bg-hover); border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    color: var(--text-primary); font-size: 13px; font-weight: 600; cursor: pointer;
}
.workspace-dropdown-menu {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-dropdown);
    padding: 6px; z-index: 150;
}
.workspace-menu-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.workspace-menu-item { padding: 6px 8px; border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; }
.workspace-menu-item:hover { background: var(--bg-hover); }

.avatars-stack { display: flex; align-items: center; }
.stack-avatar {
    width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--bg-sidebar);
    color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center;
    justify-content: center; margin-left: -6px; cursor: pointer; object-fit: cover;
}
.stack-avatar:first-child { margin-left: 0; }

.activity-feed-list { display: flex; flex-direction: column; gap: 6px; max-height: 160px; overflow-y: auto; }
.activity-item { display: flex; align-items: flex-start; gap: 6px; font-size: 11px; color: var(--text-secondary); }
.activity-avatar { width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 8px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; object-fit: cover; }

/* TODOIST CONTENT */
.todoist-content {
    flex: 1; padding: 24px 36px; overflow-y: auto; max-width: 900px; margin: 0 auto; width: 100%;
}

/* SINGLE TASK HERO FOCUS CARD */
.single-task-hero-card {
    background: var(--bg-card); border: 1px solid var(--todoist-red); border-radius: var(--radius-lg);
    padding: 18px 22px; margin-bottom: 24px; box-shadow: 0 4px 16px rgba(228, 67, 50, 0.12);
    display: flex; flex-direction: column; gap: 12px;
}
.hero-badge-row { display: flex; justify-content: space-between; align-items: center; }
.hero-badge { font-size: 11px; font-weight: 800; color: var(--todoist-red); letter-spacing: 0.8px; display: flex; align-items: center; gap: 6px; }
.hero-content { display: flex; align-items: flex-start; gap: 14px; }
.hero-checkbox {
    width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--todoist-red);
    cursor: pointer; display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.hero-checkbox i { color: var(--todoist-red); font-size: 12px; opacity: 0; }
.hero-checkbox:hover i { opacity: 1; }
.hero-text-group h3 { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.hero-text-group p { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.hero-meta-bar { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); border-top: 1px dashed var(--border-color); padding-top: 10px; }

/* VIEW HEADER */
.view-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px;
}
.view-title-wrapper h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.date-subtitle { font-size: 13px; color: var(--text-muted); }
.view-actions { display: flex; align-items: center; gap: 12px; }
.todoist-select-sm { background: transparent; border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 4px 8px; color: var(--text-secondary); font-size: 13px; outline: none; cursor: pointer; }
.view-switcher-toggle { display: flex; background: var(--bg-hover); border-radius: var(--radius-sm); padding: 2px; }
.switcher-btn { border: none; background: transparent; padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--text-muted); border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; gap: 6px; }
.switcher-btn.active { background: var(--bg-card); color: var(--text-primary); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* TASKS LIST & CARDS */
.todoist-tasks-list { display: flex; flex-direction: column; }
.todoist-task-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 10px 0;
    border-bottom: 1px solid var(--border-color); position: relative; transition: background 0.15s;
}

.todoist-checkbox {
    width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--p4-grey);
    cursor: pointer; display: flex; align-items: center; justify-content: center; margin-top: 3px; transition: all 0.15s;
}
.todoist-checkbox.p1 { border-color: var(--p1-red); background: rgba(228, 67, 50, 0.08); }
.todoist-checkbox.p2 { border-color: var(--p2-orange); background: rgba(255, 153, 0, 0.08); }
.todoist-checkbox.p3 { border-color: var(--p3-blue); background: rgba(36, 111, 224, 0.08); }
.todoist-checkbox.p4 { border-color: var(--p4-grey); }
.todoist-checkbox:hover { transform: scale(1.1); }
.todoist-checkbox i { font-size: 9px; color: #fff; opacity: 0; }

.todoist-task-item.completed { opacity: 0.55; }
.todoist-task-item.completed .todoist-checkbox { background: var(--p4-grey); border-color: var(--p4-grey); }
.todoist-task-item.completed .todoist-checkbox i { opacity: 1; }
.todoist-task-item.completed .task-title { text-decoration: line-through; color: var(--text-muted); }

.task-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.task-title { font-size: 14px; font-weight: 500; color: var(--text-primary); cursor: pointer; }
.task-desc { font-size: 12px; color: var(--text-muted); }
.task-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 12px; flex-wrap: wrap; }
.meta-date { color: #058527; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.meta-date.overdue { color: var(--p1-red); }
.meta-project { color: var(--text-muted); font-size: 11px; }

.task-right-actions { display: flex; align-items: center; gap: 6px; opacity: 0; transition: opacity 0.15s; }
.todoist-task-item:hover .task-right-actions { opacity: 1; }
.action-btn { border: none; background: transparent; color: var(--text-muted); font-size: 14px; cursor: pointer; }
.action-btn:hover { color: var(--todoist-red); }

/* INLINE EDITOR & NLP PREVIEW BAR */
.trigger-add-task-btn {
    display: flex; align-items: center; gap: 8px; padding: 10px 0; border: none;
    background: transparent; color: var(--text-muted); font-size: 14px; font-weight: 600; cursor: pointer; width: 100%; margin-top: 8px;
}
.trigger-add-task-btn:hover { color: var(--todoist-red); }

.todoist-inline-editor {
    border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 12px;
    background: var(--bg-card); box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-top: 10px;
}
.editor-input-wrapper { position: relative; display: flex; align-items: center; }
.editor-title-input { width: 100%; border: none; outline: none; font-size: 15px; font-weight: 600; background: transparent; color: var(--text-primary); padding-right: 30px; }
.editor-voice-btn { position: absolute; right: 4px; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; }
.editor-voice-btn:hover { color: var(--todoist-red); }

.nlp-preview-bar { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--text-muted); flex-wrap: wrap; }
.nlp-badge { padding: 2px 8px; border-radius: 12px; font-weight: 600; font-size: 11px; }
.nlp-badge.date-badge { background: rgba(5, 133, 39, 0.15); color: #058527; }
.nlp-badge.priority-badge { background: rgba(220, 76, 62, 0.15); color: var(--p1-red); }
.nlp-badge.project-badge { background: rgba(36, 111, 224, 0.15); color: #246fe0; }
.nlp-badge.assignee-badge { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.editor-desc-input { width: 100%; border: none; outline: none; font-size: 13px; background: transparent; color: var(--text-secondary); resize: none; margin-top: 6px; }
.editor-options-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.editor-option-pill { display: flex; align-items: center; gap: 6px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 4px 8px; font-size: 12px; color: var(--text-secondary); }
.pill-input { border: none; background: transparent; outline: none; color: var(--text-primary); font-size: 12px; cursor: pointer; }
.editor-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; border-top: 1px solid var(--border-color); padding-top: 10px; }
.btn-cancel { padding: 6px 12px; border: 1px solid var(--border-color); background: var(--bg-hover); color: var(--text-secondary); border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-cancel:hover { background: var(--border-color); color: var(--text-primary); }
.btn-add-task, .btn-save-task { padding: 6px 14px; border: none; background: var(--todoist-red); color: #fff; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-add-task:hover, .btn-save-task:hover { background: var(--todoist-red-hover); box-shadow: var(--gx-glow); }

/* MOBILE BOTTOM NAVIGATION BAR (< 800px) */
.mobile-bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    height: 56px; background: var(--bg-card); border-top: 1px solid var(--border-color);
    z-index: 250; align-items: center; justify-content: space-around;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.mobile-tab-btn {
    border: none; background: transparent; display: flex; flex-direction: column;
    align-items: center; gap: 2px; color: var(--text-muted); font-size: 10px;
    font-weight: 600; cursor: pointer; flex: 1;
}
.mobile-tab-btn i { font-size: 16px; }
.mobile-tab-btn.active { color: var(--todoist-red); }
.mobile-tab-add-btn {
    width: 42px; height: 42px; border-radius: 50%; background: var(--todoist-red);
    color: #fff; border: none; font-size: 18px; display: flex; align-items: center;
    justify-content: center; margin-top: -16px; box-shadow: 0 4px 10px rgba(228,67,50,0.4);
}

/* KANBAN BOARD */
.todoist-kanban-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
.kanban-column { background: var(--bg-sidebar); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 400px; }
.column-header { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.column-badge { font-size: 11px; padding: 1px 6px; border-radius: 10px; background: rgba(0,0,0,0.06); }
.kanban-cards-wrapper { display: flex; flex-direction: column; gap: 8px; }
.kanban-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: transform 0.15s; word-break: break-word; overflow-wrap: anywhere; }
.kanban-card:hover { transform: translateY(-2px); border-color: var(--todoist-red); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.todoist-empty-state { text-align: center; padding: 50px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* MODALS */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { width: 100%; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-dropdown); padding: 20px; display: flex; flex-direction: column; gap: 14px; max-height: 90vh; overflow-y: auto; }
.modal-lg { max-width: 650px; }
.modal-md { max-width: 520px; }
.modal-sm { max-width: 420px; }
.modal-palette { max-width: 580px; padding: 16px; }

.modal-header { display: flex; justify-content: space-between; align-items: center; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.todoist-title-input { width: 100%; border: none; border-bottom: 2px solid var(--border-color); background: transparent; outline: none; font-size: 18px; font-weight: 700; color: var(--text-primary); word-break: break-word; }
.todoist-input, .todoist-select, textarea { width: 100%; background: var(--bg-app); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 8px; color: var(--text-primary); font-size: 13px; outline: none; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.subtasks-box, .comments-box { background: var(--bg-sidebar); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 12px; }
.subtasks-header, .comments-header { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.subtasks-list, .comments-list { display: flex; flex-direction: column; gap: 6px; max-height: 140px; overflow-y: auto; }
.subtask-item { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px; background: var(--bg-card); border-radius: var(--radius-sm); }
.add-subtask-row, .add-comment-row { display: flex; gap: 6px; }
.add-subtask-row input, .add-comment-row input { flex: 1; border: 1px dashed var(--border-color); background: transparent; padding: 6px; border-radius: var(--radius-sm); font-size: 12px; color: var(--text-primary); }
.btn-sm-red { background: var(--todoist-red); color: #fff; border: none; border-radius: var(--radius-sm); padding: 4px 10px; font-weight: 600; cursor: pointer; }
.btn-danger-link { border: none; background: transparent; color: var(--p1-red); cursor: pointer; font-size: 13px; }

.auth-switch-text { font-size: 12px; text-align: center; color: var(--text-muted); }
.auth-switch-text a { color: var(--todoist-red); text-decoration: none; font-weight: 600; }

.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-sm); background: #202020; color: #fff; font-size: 13px; }
.confetti-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 999; }
.text-red { color: var(--todoist-red); }
.text-green { color: #058527; }
.text-blue { color: #246fe0; }
.text-grey { color: var(--p4-grey); }
.hidden { display: none !important; }

@media (max-width: 800px) {
    .todoist-sidebar { position: fixed; left: 0; top: 44px; bottom: 56px; z-index: 200; }
    .todoist-content { padding: 16px 12px 70px 12px; }
    .mobile-bottom-nav { display: flex; }
    .form-grid-3, .form-grid-2, .todoist-kanban-board, .gx-presets-grid, .fonts-presets-grid { grid-template-columns: 1fr; }
    .smart-input-container input { width: 140px; }
    .friends-drawer-card { width: 100vw; max-width: 100vw; box-sizing: border-box; overflow-x: hidden; }
    .file-dropzone-area { padding: 14px 10px; }
}

/* FILE SHARING CENTER ULTRA-PREMIUM & ANIMATED STYLES */
@keyframes cloudModalIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(18px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes cloudFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes dropzonePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes fileCardSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-share-modal-card {
    width: 680px;
    max-width: 95vw;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    padding: 0;
    overflow: hidden;
    animation: cloudModalIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.file-cloud-banner {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(56, 189, 248, 0.12));
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}
.cloud-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    flex-shrink: 0;
}
.cloud-banner-icon i {
    animation: cloudFloat 3s ease-in-out infinite;
    display: inline-block;
}
.cloud-banner-info h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}
.cloud-banner-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.cloud-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
}

.file-cloud-tabs {
    padding: 10px 24px 0 24px;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
}
.file-cloud-body {
    padding: 20px 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.file-share-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-share-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    gap: 14px;
    transition: all 0.2s ease;
    animation: fileCardSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.file-share-card:hover {
    border-color: #10b981;
    background: var(--bg-card);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.file-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}
.file-details-col {
    flex: 1;
    min-width: 0;
}
.file-name-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}
.file-meta-subtext {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}
.file-note-badge {
    font-size: 11px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-weight: 600;
}
.file-actions-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.btn-file-download {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    transition: transform 0.15s ease;
}
.btn-file-download:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #059669, #047857);
}
.btn-file-download:hover i {
    animation: cloudFloat 0.8s ease-in-out infinite;
}

.file-dropzone-area {
    border: 2px dashed rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-md);
    padding: 28px 16px;
    text-align: center;
    background: rgba(16, 185, 129, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.file-dropzone-area:hover, .file-dropzone-area.dragover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    transform: scale(1.01);
}
.dropzone-pulse-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    animation: dropzonePulse 2s infinite;
}
.dropzone-icon {
    font-size: 26px;
    color: #10b981;
}
.dropzone-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}
.dropzone-subtext {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}
.selected-file-badge {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* USER PROFILE POPOVER CARD & MEMBER MANAGEMENT STYLES */
.clickable-user-profile {
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.clickable-user-profile:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.popover-profile-card {
    width: 360px;
    max-width: 90vw;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    backdrop-filter: blur(12px);
    animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.popover-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
}

.popover-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
}
.popover-avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    border: 3px solid var(--todoist-red);
    box-shadow: 0 4px 14px rgba(228, 67, 50, 0.3);
}
.popover-username {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
}
.popover-email {
    font-size: 12px;
    color: var(--text-muted);
}
.popover-role-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--todoist-red-light);
    color: var(--todoist-red);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popover-actions-row {
    display: flex;
    gap: 8px;
    width: 100%;
}
.popover-action-btn {
    flex: 1;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-sidebar);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.18s ease;
}
.popover-action-btn:hover {
    border-color: var(--todoist-red);
    color: var(--todoist-red);
    background: var(--bg-hover);
    transform: translateY(-2px);
}
.popover-chat-btn:hover { border-color: #38bdf8; color: #38bdf8; background: rgba(56, 189, 248, 0.1); }
.popover-file-btn:hover { border-color: #10b981; color: #10b981; background: rgba(16, 185, 129, 0.1); }
.popover-friend-btn:hover { border-color: #f59e0b; color: #f59e0b; background: rgba(245, 158, 11, 0.1); }

/* WORKSPACE MEMBER MANAGEMENT LIST STYLES */
.share-members-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}
.share-member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}
.share-member-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.share-member-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    object-fit: cover;
}
.share-member-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.share-member-role {
    font-size: 11px;
    color: var(--text-muted);
}
.btn-remove-member {
    padding: 4px 10px;
    border: 1px solid rgba(228, 67, 50, 0.3);
    background: rgba(228, 67, 50, 0.1);
    color: var(--p1-red);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-remove-member:hover {
    background: var(--p1-red);
    color: #ffffff;
    border-color: var(--p1-red);
}

.btn-danger-full-width {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(228, 67, 50, 0.4);
    background: rgba(228, 67, 50, 0.08);
    color: var(--p1-red);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.18s ease;
}
.btn-danger-full-width:hover {
    background: var(--p1-red);
    color: #ffffff;
    border-color: var(--p1-red);
    box-shadow: 0 4px 12px rgba(228, 67, 50, 0.3);
}

/* APP STORE & PINNED SIDEBAR APPS STYLES */
.app-market-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (max-width: 600px) {
    .app-market-grid { grid-template-columns: 1fr; }
}

.app-market-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    gap: 12px;
}
.app-market-card:hover {
    border-color: var(--todoist-red);
    background: var(--bg-card);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.app-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.app-market-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.app-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}
.app-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}
.app-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}
.btn-pin-app {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.btn-pin-app:hover {
    border-color: var(--todoist-red);
    color: var(--todoist-red);
}
.btn-pin-app.pinned {
    background: var(--todoist-red);
    color: #ffffff;
    border-color: var(--todoist-red);
}
.btn-launch-app {
    padding: 5px 12px;
    border-radius: 20px;
    border: none;
    background: var(--bg-hover);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.btn-launch-app:hover {
    background: var(--todoist-red-light);
    color: var(--todoist-red);
}

.sidebar-app-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}
.sidebar-app-item:hover {
    background: var(--bg-hover);
}
.sidebar-app-item .app-icon-mini {
    width: 22px;
    font-size: 14px;
    text-align: center;
}
.btn-unpin-sidebar {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, color 0.15s ease;
}
.sidebar-app-item:hover .btn-unpin-sidebar {
    opacity: 1;
}
.btn-unpin-sidebar:hover {
    color: var(--p1-red);
}

/* AUTHENTIC APP STORE UI STYLES */
.app-store-modal-card {
    width: 780px;
    max-width: 95vw;
    padding: 0;
    overflow: hidden;
}
.app-store-header-bar {
    padding: 16px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}
.app-store-logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--todoist-red);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(228, 67, 50, 0.4);
}

.app-store-top-bar {
    padding: 12px 20px;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.app-store-search-box {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 220px;
}
.app-store-search-box input {
    width: 100%;
    padding: 6px 12px 6px 32px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 12px;
    outline: none;
}
.app-store-categories-tab {
    display: flex;
    gap: 4px;
}
.app-cat-tab {
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.app-cat-tab:hover, .app-cat-tab.active {
    border-color: var(--todoist-red);
    color: var(--todoist-red);
    background: var(--todoist-red-light);
}

.app-store-body {
    padding: 20px;
    max-height: 65vh;
    overflow-y: auto;
}

.app-store-featured-banner {
    background: linear-gradient(135deg, rgba(228, 67, 50, 0.12), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(228, 67, 50, 0.3);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    margin-bottom: 20px;
    position: relative;
}
.featured-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--todoist-red);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.featured-content-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.featured-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--todoist-red);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 6px 16px rgba(228, 67, 50, 0.4);
    flex-shrink: 0;
}
.featured-text-col {
    flex: 1;
}
.featured-text-col h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.featured-text-col p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}
.featured-meta-row {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 600;
}
.app-stars {
    color: #f59e0b;
    font-weight: 700;
}
.btn-featured-action {
    padding: 8px 18px;
    border: none;
    border-radius: 20px;
    background: var(--todoist-red);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(228, 67, 50, 0.35);
    transition: transform 0.15s ease;
}
.btn-featured-action:hover {
    transform: scale(1.05);
    background: var(--todoist-red-hover);
}

.app-store-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.app-market-icon.large {
    width: 60px;
    height: 60px;
    font-size: 28px;
    border-radius: 14px;
}
/* TAB BAR & TAB BUTTONS OVERRIDE FOR FILE SHARING & FRIENDS */
.friends-tab-bar {
    display: flex;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.friends-tab-btn {
    border: 1px solid var(--border-color) !important;
    background: var(--bg-card) !important;
    color: var(--text-secondary) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-shadow: none !important;
}

.friends-tab-btn:hover {
    border-color: #10b981 !important;
    color: #10b981 !important;
    background: rgba(16, 185, 129, 0.08) !important;
}

.friends-tab-btn.active {
    border-color: #10b981 !important;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

/* CLOSE BUTTON FIX */
.icon-btn.modal-close-btn {
    border: none !important;
    background: transparent !important;
    color: var(--text-muted) !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-shadow: none !important;
}

.icon-btn.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    color: var(--text-primary) !important;
}

/* GOOGLE PLAY STORE AUTHENTIC UI STYLES */
.gplay-store-container {
    padding: 0;
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
}

.gplay-header-bar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.gplay-search-box {
    display: flex;
    align-items: center;
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 8px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}
.gplay-search-box:focus-within {
    border-color: #01875f;
    box-shadow: 0 4px 14px rgba(1, 135, 95, 0.2);
    background: var(--bg-card);
}
.gplay-search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    padding: 4px 10px;
}
.gplay-search-box .search-icon {
    font-size: 16px;
    color: var(--text-muted);
}
.gplay-search-box .mic-icon {
    font-size: 16px;
    cursor: pointer;
}

.gplay-category-pills {
    display: flex;
    gap: 8px;
    /* overflow removed to allow user dropdown to show */
    flex-wrap: wrap;
    padding-bottom: 4px;
}
.gplay-pill {
    padding: 7px 18px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.gplay-pill:hover, .gplay-pill.active {
    background: #e6f4ea;
    color: #01875f;
    border-color: #01875f;
}
[data-theme="dark"] .gplay-pill:hover, [data-theme="dark"] .gplay-pill.active {
    background: rgba(1, 135, 95, 0.2);
    color: #34d399;
}

.gplay-hero-banner {
    background: linear-gradient(135deg, #01875f 0%, #064e3b 100%);
    border-radius: 20px;
    padding: 28px 32px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(1, 135, 95, 0.3);
    position: relative;
    overflow: hidden;
}
.gplay-hero-left {
    flex: 1;
    max-width: 65%;
    z-index: 2;
}
.gplay-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #a7f3d0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.gplay-hero-left h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #ffffff;
}
.gplay-hero-left p {
    font-size: 13px;
    color: #d1fae5;
    line-height: 1.5;
    margin-bottom: 16px;
}
.gplay-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.gplay-stat {
    display: flex;
    flex-direction: column;
}
.gplay-stat .val {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}
.gplay-stat .lbl {
    font-size: 10px;
    color: #a7f3d0;
}
.gplay-stat-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
}
.gplay-hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.gplay-btn-install {
    padding: 10px 24px;
    border-radius: 24px;
    border: none;
    background: #ffffff;
    color: #01875f;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease;
}
.gplay-btn-install:hover {
    transform: scale(1.04);
    background: #f0fdf4;
}
.gplay-btn-wishlist {
    padding: 10px 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.gplay-btn-wishlist:hover {
    background: rgba(255, 255, 255, 0.15);
}
.gplay-hero-right {
    z-index: 2;
}
.gplay-hero-icon-box {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gplay-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.gplay-section-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.gplay-count-tag {
    font-size: 12px;
    font-weight: 600;
    color: #01875f;
    background: rgba(1, 135, 95, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.gplay-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    width: 100%;
}

.gplay-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.2s ease;
    gap: 14px;
}
.gplay-card:hover {
    border-color: #01875f;
    background: var(--bg-card);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.gplay-card-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.gplay-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.gplay-card-info {
    flex: 1;
    min-width: 0;
}
.gplay-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gplay-card-dev {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}
.gplay-card-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}
.gplay-rating-star {
    color: #f59e0b;
    font-weight: 700;
}

.gplay-card-actions {
    display: flex;
    gap: 8px;
}
.gplay-btn-card-install {
    flex: 1;
    padding: 7px 12px;
    border-radius: 20px;
    border: none;
    background: #01875f;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(1, 135, 95, 0.3);
    transition: all 0.15s ease;
}
.gplay-btn-card-install:hover {
    background: #059669;
}
.gplay-btn-card-pin {
    padding: 7px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}
.gplay-btn-card-pin:hover, .gplay-btn-card-pin.pinned {
    border-color: #01875f;
    color: #01875f;
    background: rgba(1, 135, 95, 0.08);
}

/* EISENHOWER MATRIX STYLES */
.eisenhower-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 600px) {
    .eisenhower-grid { grid-template-columns: 1fr; }
}
.quadrant {
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}
.quadrant.q1 { border-top: 3px solid #ef4444; }
.quadrant.q2 { border-top: 3px solid #3b82f6; }
.quadrant.q3 { border-top: 3px solid #f59e0b; }
.quadrant.q4 { border-top: 3px solid #10b981; }

.q-header {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.q-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.q-task-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

/* CALCULATOR BUTTONS STYLES */
.btn-calc {
    padding: 14px 0;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-calc:hover {
    background: var(--bg-hover);
}
.btn-calc-op {
    background: var(--bg-sidebar);
    color: var(--todoist-red);
}








/* === TODOIST PRO EXECUTIVE DESIGN POLISH (MASTER V2) === */

/* Header streamlined icons */
.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    /* overflow removed to allow user dropdown to show */
    flex-wrap: wrap;
    scrollbar-width: none;
}
.header-right::-webkit-scrollbar { display: none; }

.header-icon-btn, .focus-hero-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
}
.header-icon-btn:hover, .focus-hero-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.focus-hero-btn span { display: none; } /* Hide cluttering text in top bar */

/* Pomodoro compact pill */
.pomodoro-header-widget {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.1);
}
.pomo-time-text { color: #fff; font-variant-numeric: tabular-nums; }

/* Sidebar store custom buttons */
.store-nav-btn {
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}
.store-nav-btn.popup-mode {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.store-nav-btn.popup-mode:hover {
    background: var(--todoist-red);
    color: #fff;
    border-color: var(--todoist-red);
}
.store-nav-btn.fullscreen-mode {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}
.store-nav-btn.fullscreen-mode:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

/* Task items crisp contrast and modern typography */
.todoist-task-card, .task-item, .task-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 16px !important;
    margin-bottom: 8px !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.todoist-task-card:hover, .task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1 !important;
}
[data-theme="dark"] .todoist-task-card:hover {
    border-color: #475569 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Ensure task description has prominent legible contrast */
.task-desc, .task-item p, .todoist-task-card p, .task-subtitle {
    color: #4b5563 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-top: 4px !important;
}
[data-theme="dark"] .task-desc, [data-theme="dark"] .task-item p, [data-theme="dark"] .todoist-task-card p {
    color: #94a3b8 !important;
}
.task-title, .todoist-task-card h4, .todoist-task-card span {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Hero Focus Card Aesthetic Upgrading */
.hero-focus-card, #singleTaskHeroCard {
    background: linear-gradient(to right bottom, var(--bg-card), var(--bg-sidebar)) !important;
    border: 1px solid rgba(219, 76, 63, 0.3) !important;
    border-left: 5px solid var(--todoist-red) !important;
    box-shadow: 0 8px 24px rgba(219, 76, 63, 0.06) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 28px !important;
}
.hero-focus-header, .hero-focus-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--todoist-red);
    text-transform: uppercase;
}


/* Account dropdown guarantee visibility and styling */
.user-dropdown-menu, #userMenuDropdown {
    position: absolute !important;
    top: 50px !important;
    right: 12px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 12px 36px rgba(0,0,0,0.25) !important;
    z-index: 99999 !important;
    width: 260px !important;
    padding: 8px 0 !important;
    overflow: visible !important;
}
.user-dropdown-menu.hidden { display: none !important; }
.dropdown-item {
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.dropdown-item:hover { background: var(--bg-card-hover); color: var(--todoist-red); }

/* --- EXECUTIVE AUTH STUDIO STYLING --- */
.auth-studio-card input:focus {
    outline: none !important;
    border-color: #e44332 !important;
    box-shadow: 0 0 0 4px rgba(228, 67, 50, 0.15) !important;
    background: var(--bg-card) !important;
}
#registerForm input:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15) !important;
}
.auth-studio-card button[type="submit"]:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}
.auth-studio-card button[type="submit"]:active {
    transform: translateY(1px);
}
#closeAuthModalBtn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

/* --- OFFICIAL TODOIST SPLIT-SCREEN AUTH STYLING --- */
.official-social-btn {
    width: 100%;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.official-social-btn:hover {
    background: var(--bg-card-hover);
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.official-input-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 14px;
    background: var(--bg-card);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.official-input-box:focus-within {
    border-color: var(--todoist-red);
    box-shadow: 0 0 0 3px rgba(219, 76, 63, 0.15);
}
.official-input-box label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 2px;
}
.official-input-box input {
    width: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 2px 0 0;
    box-shadow: none !important;
}
.official-submit-btn {
    width: 100%;
    height: 46px;
    background: var(--todoist-red);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(219, 76, 63, 0.3);
    transition: all 0.2s;
}
.official-submit-btn:hover {
    background: var(--todoist-red-hover);
    box-shadow: 0 6px 16px rgba(219, 76, 63, 0.4);
    transform: translateY(-1px);
}
.official-submit-btn:active {
    transform: translateY(1px);
}

/* Responsive auth modal stack on small screens */
@media (max-width: 850px) {
    .auth-right-col {
        display: none !important;
    }
}

/* Dark mode adjustment for auth right col */
body.dark-theme .auth-right-col {
    background: linear-gradient(135deg, #1e1b1b 0%, #2a1f1f 50%, #1a1717 100%) !important;
}

/* --- OFFICIAL TODOIST SPLIT-SCREEN 50/50 LAYOUT ENFORCEMENT --- */
.official-auth-card {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    max-width: 1050px !important;
    width: 94vw !important;
    min-height: 620px !important;
    overflow: hidden !important;
}
.auth-left-col {
    width: 50% !important;
    flex: 0 0 50% !important;
    box-sizing: border-box !important;
    padding: 44px 52px !important;
    overflow-y: auto;
}
.auth-right-col {
    width: 50% !important;
    flex: 0 0 50% !important;
    box-sizing: border-box !important;
    padding: 44px 40px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
}
.official-showcase-card {
    width: 100% !important;
    max-width: 420px !important;
    box-sizing: border-box !important;
}

/* Responsive collapse for screens below 950px */
@media (max-width: 950px) {
    .official-auth-card {
        flex-direction: column !important;
        max-width: 520px !important;
        width: 95vw !important;
        min-height: auto !important;
    }
    .auth-left-col {
        width: 100% !important;
        flex: 0 0 100% !important;
        padding: 32px 28px !important;
    }
    .auth-right-col {
        display: none !important;
    }
}

/* ==========================================================================
   OFFICIAL TODOIST WARM & MINIMALIST GLOBAL DESIGN ARCHITECTURE
   ========================================================================== */

/* 1. Warm Neutral & Authentic Brand Palette Overrides */
:root, [data-theme="light"] {
    
    
    --bg-app: #fffcfb !important;
    --bg-sidebar: #faf8f5 !important;
    --bg-card: #ffffff !important;
    --bg-card-hover: #fcfaf8 !important;
    --bg-hover: #f3f0ec !important;
    --border-color: #eae5df !important;
    --border-hover: #dcd6ce !important;
    --text-primary: #201f1e !important;
    --text-secondary: #605e5c !important;
    --text-muted: #8a8886 !important;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04) !important;
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08) !important;
    --radius-md: 10px !important;
    --radius-lg: 14px !important;
}

[data-theme="dark"], body.dark-theme {
    --bg-app: #191717 !important;
    --bg-sidebar: #141212 !important;
    --bg-card: #221f1f !important;
    --bg-card-hover: #292525 !important;
    --bg-hover: #2e2a2a !important;
    --border-color: #363232 !important;
    --border-hover: #454040 !important;
    --text-primary: #f2efef !important;
    --text-secondary: #a6a1a1 !important;
    --text-muted: #736e6e !important;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2) !important;
    --shadow-md: 0 8px 24px rgba(0,0,0,0.35) !important;
}

/* 2. Top Header Polish (Official Signature Crimson) */
.todoist-main-header {
    background: var(--todoist-red) !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.15) !important;
    border-bottom: none !important;
}
.header-search-box input {
    background: rgba(255, 255, 255, 0.22) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-weight: 500;
    transition: all 0.2s ease !important;
}
.header-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
}
.header-search-box input:focus {
    background: #ffffff !important;
    color: #201f1e !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15) !important;
}
.header-search-box input:focus::placeholder {
    color: #8a8886 !important;
}
.header-icon-btn, .pomo-btn-sm, .ambient-btn, .focus-hero-btn {
    border-radius: 8px !important;
    transition: background 0.2s, transform 0.1s !important;
}
.header-icon-btn:hover, .pomo-btn-sm:hover, .ambient-btn:hover, .focus-hero-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px);
}

/* 3. Sidebar Harmony (Warm Neutral Aesthetic) */
.todoist-sidebar {
    background: var(--bg-sidebar) !important;
    border-right: 1px solid var(--border-color) !important;
}
.sidebar-item {
    border-radius: 8px !important;
    margin: 2px 8px !important;
    padding: 8px 12px !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
}
.sidebar-item:hover {
    background: var(--bg-hover) !important;
    color: var(--text-primary) !important;
}
.sidebar-item.active {
    background: rgba(219, 76, 63, 0.12) !important;
    color: var(--todoist-red) !important;
    font-weight: 800 !important;
}
.sidebar-item.active i {
    color: var(--todoist-red) !important;
}
.sidebar-section-title {
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    color: var(--text-secondary) !important;
    text-transform: uppercase !important;
    margin: 16px 12px 6px !important;
}

/* 4. Task Cards & Showcase Consistency */
.task-card, .kanban-card, #singleTaskHeroCard {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.task-card:hover, .kanban-card:hover {
    background: var(--bg-card-hover) !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px);
    border-color: rgba(219, 76, 63, 0.3) !important;
}

/* 5. Circular Task Checkboxes with Interactive Pulse */
.custom-checkbox, .task-checkbox, .checkbox-circle {
    border-radius: 50% !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
}
.task-card:hover .custom-checkbox {
    background: rgba(219, 76, 63, 0.08);
}
.p1 .custom-checkbox, .checkbox-p1 { border-color: var(--todoist-red) !important; }
.p2 .custom-checkbox, .checkbox-p2 { border-color: #ff9900 !important; }
.p3 .custom-checkbox, .checkbox-p3 { border-color: #246fe0 !important; }
.p4 .custom-checkbox, .checkbox-p4 { border-color: #71717a !important; }

/* 6. Inline Editor & Input Field Harmony (Matching Login Box) */
.inline-task-creation-box, .modal-card:not(.official-auth-card) {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-md) !important;
}
.todoist-input, textarea.todoist-input, select.todoist-input {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: var(--text-primary) !important;
    transition: all 0.2s !important;
}
.todoist-input:focus, textarea.todoist-input:focus, select.todoist-input:focus {
    border-color: var(--todoist-red) !important;
    box-shadow: 0 0 0 3px rgba(219, 76, 63, 0.15) !important;
    outline: none !important;
}

/* 7. Official Buttons & Modal Action Bars */
.btn-save-task, .btn-primary {
    background: var(--todoist-red) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(219, 76, 63, 0.25) !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}
.btn-save-task:hover, .btn-primary:hover {
    background: var(--todoist-red-hover) !important;
    box-shadow: 0 5px 14px rgba(219, 76, 63, 0.35) !important;
    transform: translateY(-1px);
}
.btn-cancel {
    background: transparent !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 10px 18px !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
}
.btn-cancel:hover {
    background: var(--bg-hover) !important;
    color: var(--text-primary) !important;
}

/* View switcher pills (Liste, Pano, Takvim) */
.view-switcher-pill {
    border-radius: 8px !important;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-card) !important;
    overflow: hidden;
}
.view-switcher-pill button.active {
    background: rgba(219, 76, 63, 0.12) !important;
    color: var(--todoist-red) !important;
    font-weight: 800 !important;
}


/* --- PREMIUM DROPDOWN REDESIGN --- */
.user-dropdown-menu, #userMenuDropdown {
    position: absolute !important;
    top: 56px !important;
    right: 12px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06) !important;
    z-index: 99999 !important;
    width: 280px !important;
    padding: 12px !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.user-dropdown-menu.hidden { display: none !important; }

.dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dropdown-group-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px 4px;
}
.dropdown-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 4px 0;
}
.dropdown-item {
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s ease;
}
.dropdown-item .item-icon {
    font-size: 15px;
    color: var(--text-muted);
    transition: color 0.15s ease;
    width: 16px;
    text-align: center;
}
.dropdown-item:hover { 
    background: var(--bg-hover) !important; 
}
.dropdown-item:hover .item-icon {
    color: var(--text-primary);
}
.dropdown-item.text-danger {
    color: var(--todoist-red) !important;
}
.dropdown-item.text-danger .item-icon {
    color: var(--todoist-red) !important;
}
.dropdown-item.text-danger:hover {
    background: rgba(228, 67, 50, 0.1) !important;
}
.dropdown-badge {
    margin-left: auto;
    background: var(--todoist-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 12px;
}


/* --- NOTIFICATIONS DROPDOWN --- */
.notif-dropdown-menu {
    position: absolute !important;
    top: 56px !important;
    right: -60px !important; /* Centered relative to the bell */
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.08) !important;
    z-index: 99999 !important;
    width: 340px !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}
.notif-dropdown-menu.hidden { display: none !important; }

.notif-dropdown-header {
    background: var(--bg-hover);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}
.notif-dropdown-header strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}
.refresh-notif-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
    transition: color 0.2s;
}
.refresh-notif-btn:hover { color: var(--text-primary); }

.notif-dropdown-body {
    padding: 12px 16px;
    max-height: 400px;
    overflow-y: auto;
}
.notif-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}
.empty-notif {
    text-align: center;
    padding: 16px;
    color: var(--text-muted);
    font-size: 12.5px;
    background: var(--bg-hover);
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}
.system-notif-item {
    padding: 10px 12px;
    background: var(--card-bg-light, var(--bg-hover));
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    align-items: center;
}

@media (max-width: 768px) {
    .notif-dropdown-menu {
        right: -100px !important;
        width: 300px !important;
    }
}

/* GROUP CALL MULTI-VIDEO GRID */
.remote-videos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}
.remote-videos-container video {
    flex: 1 1 45%;
    max-width: 50%;
    object-fit: cover;
    border-radius: 12px;
    background: #111;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    aspect-ratio: 16/9;
}
.remote-videos-container video.single-remote {
    flex: 1 1 100%;
    max-width: 100%;
}

/* WHITEBOARD STYLES */
.whiteboard-container {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #f8f9fa; z-index: 9999;
    display: flex; flex-direction: column;
}
.whiteboard-container.hidden { display: none; }
.wb-header {
    height: 50px; background: #fff; border-bottom: 1px solid #e5e5e5;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); z-index: 10;
}
.wb-toolbar { display: flex; gap: 10px; }
.wb-canvas-area {
    flex: 1; position: relative; overflow: hidden;
    background-image: radial-gradient(#d5d5d5 1px, transparent 1px);
    background-size: 20px 20px; cursor: default;
}
.wb-node {
    position: absolute; width: 180px; min-height: 80px;
    background: #fff; border: 1px solid #e0e0e0; border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex; flex-direction: column; cursor: move;
    transition: box-shadow 0.2s;
}
.wb-node:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.wb-node textarea {
    flex: 1; border: none; outline: none; resize: none;
    padding: 12px; font-family: 'Inter', sans-serif; font-size: 13px;
    background: transparent; min-height: 50px;
}
.wb-node-actions {
    display: flex; justify-content: space-between;
    padding: 4px 8px; border-top: 1px solid #f0f0f0;
    background: #fafafa; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px;
}
.wb-node-actions button {
    background: transparent; border: none; cursor: pointer; color: #a0a0a0;
    font-size: 11px; padding: 4px; border-radius: 4px;
}
.wb-node-actions button:hover { background: #eee; color: #333; }
.wb-node-actions button.wb-node-del:hover { color: #e44332; }
.wb-node-actions button.wb-node-link:hover { color: #6366f1; }
.whiteboard-container.is-linking .wb-canvas-area { cursor: crosshair; }
.whiteboard-container.is-linking .wb-node { pointer-events: none; }
.whiteboard-container.is-linking .wb-node-actions { pointer-events: auto; }
#whiteboardSvgOverlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1;
}

/* --- Kanban drag & drop (board previously had no drop handling at all) --- */
.kanban-card { cursor: grab; }
.kanban-card:active { cursor: grabbing; }
.kanban-card.dragging { opacity: .45; transform: rotate(1.5deg); }
.kanban-column-body.kanban-dragover,
.kanban-dragover {
    outline: 2px dashed var(--accent-color, #e44332);
    outline-offset: -4px;
    background: rgba(228, 67, 50, .06);
    border-radius: 8px;
}
.karma-badge.goal-reached { box-shadow: 0 0 10px rgba(16, 185, 129, .8); }
