        :root {
            --bg-color: #121212;
            --text-color: #e0e0e0;
            --subtle-text: #a0a0a0;
            --note-bg-rgb: 38, 38, 38;
            --note-bg: rgba(var(--note-bg-rgb), 0.7);
            --note-hover-bg: rgba(50, 50, 50, 0.8);
            --border-color: rgba(255, 255, 255, 0.1);
            --accent-color: #bb86fc;
            --danger-color: #cf6679;
            --border-radius-main: 12px;
        }
        
        html, body {
            height: 100%;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            margin: 0;
            background-color: var(--bg-color);
            color: var(--text-color);
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: 
                radial-gradient(circle at 15% 25%, rgba(187, 134, 252, 0.15), transparent 40%),
                radial-gradient(circle at 85% 75%, rgba(3, 218, 197, 0.15), transparent 40%);
            filter: blur(100px);
        }
        
        .app-container {
            display: flex;
            flex-direction: column;
            height: 100vh;
        }
        
        header {
            padding: 1.5rem 1.5rem 1.5rem 1.5rem;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .shared-input-style {
            width: 100%;
            padding: 1rem 1rem 1rem 1rem; /* Add extra right padding for better alignment */
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius-main);
            font-size: 1rem;
            background-color: var(--note-bg);
            color: var(--text-color);
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            resize: vertical;
            min-height: 40px;
            box-sizing: border-box;
            transition: all 0.2s;
        }
        .shared-input-style:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(187, 134, 252, 0.3), 0 4px 15px rgba(0,0,0,0.2);
        }

        #note-input {
            /* Remove max-width and margin for alignment */
            width: 100%;
            display: block;
            flex: 1;
            padding-right: 1.25rem; /* Add extra right padding to match .note */
        }
        
        main {
            flex-grow: 1;
            overflow-y: scroll;
            padding: 0 1.5rem 2rem 1.5rem;
        }

        #notes-container {
            /* Remove max-width and margin for alignment */
            width: 100%;
            background: var(--note-bg);
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius-main);
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            overflow: hidden;
        }
        
        .note {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid var(--border-color);
            position: relative;
            transition: box-shadow 0.2s ease, background-color 0.2s ease;
            border-radius: var(--border-radius-main); /* Add rounded corners to each note */
            background: var(--note-bg);
        }
        .note:last-child {
            border-bottom: none;
        }
        .note:hover {
            z-index: 10;
            background-color: var(--note-hover-bg);
        }
        .note.active {
            z-index: 11;
            box-shadow: 0 0 0 2px var(--accent-color);
            background-color: var(--note-hover-bg);
        }

        .note.editing {
            padding: 0;
            box-shadow: none;
            background-color: transparent;
        }
        .note.editing:hover {
            background-color: transparent;
            box-shadow: none;
        }

        .note-content {
            white-space: pre-wrap;
            word-break: break-word;
            line-height: 1.5;
            padding-right: 4rem;
            max-height: 5.25em; /* Approx 3.5 lines */
            overflow: hidden;
            position: relative;
            scrollbar-width: thin;
            scrollbar-color: var(--accent-color) transparent;
            border-radius: var(--border-radius-main); /* Match note-input rounded corners */
            background: transparent; /* Keep background as is, or set to var(--note-bg) if needed */
        }
        
        .note-content.truncated::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2em;
            background: linear-gradient(to bottom, rgba(var(--note-bg-rgb), 0), var(--note-bg));
            pointer-events: none;
            transition: opacity 0.2s ease-in-out;
        }
        
        .note:hover .note-content.truncated,
        .note.active .note-content.truncated {
            overflow-y: auto;
        }

        .note:hover .note-content.truncated::after,
        .note.active .note-content.truncated::after {
            opacity: 0;
        }
        
        .note-actions {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            right: 0.75rem;
            display: flex;
            gap: 0.25rem;
            opacity: 0;
            transition: opacity 0.2s;
            pointer-events: none;
        }
        .note.active .note-actions {
            opacity: 1;
            pointer-events: auto;
        }

        .action-btn {
            background: rgba(255,255,255,0.1);
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            color: var(--text-color);
            transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.18s cubic-bezier(.4,1.4,.6,1);
        }
        .action-btn:hover {
            background-color: rgba(255,255,255,0.22);
            color: var(--accent-color);
            transform: scale(1.13) rotate(-3deg);
            box-shadow: 0 4px 24px 0 var(--accent-color), 0 2px 8px rgba(0,0,0,0.18);
            z-index: 2;
        }

        .top-action-btn {
            opacity: 0.4;
            filter: grayscale(1);
            transition: all 0.2s, box-shadow 0.3s;
            background: linear-gradient(135deg, #232526 0%, #414345 100%);
            box-shadow: 0 2px 8px rgba(0,0,0,0.15), 0 0 0 0 var(--accent-color);
            border: 1.5px solid var(--border-color);
            position: relative;
            overflow: hidden;
        }
        .top-action-btn.active {
            opacity: 1;
            filter: none;
            pointer-events: auto;
            background: linear-gradient(135deg, #bb86fc 0%, #03dac5 100%);
            color: #121212;
            box-shadow: 0 0 8px 2px var(--accent-color), 0 2px 8px rgba(0,0,0,0.15);
        }
        /* Always enable pointer events and full color for dropdown action buttons */
        .action-dropdown-menu .action-btn.top-action-btn {
            opacity: 1;
            filter: none;
            pointer-events: auto;
        }
        /* Always full color for modal action buttons */
        #custom-modal .top-action-btn {
            opacity: 1 !important;
            filter: none !important;
            transition: transform 0.18s cubic-bezier(.4,1.4,.6,1), box-shadow 0.18s;
        }
        #custom-modal .top-action-btn:hover {
            transform: scale(1.13) rotate(-3deg);
            box-shadow: 0 4px 24px 0 var(--accent-color), 0 2px 8px rgba(0,0,0,0.18);
            z-index: 2;
        }
        /* Info toast for no selection */
        #info-toast {
            display: none;
            position: absolute;
            right: 2.5rem;
            top: 2.5rem;
            background: var(--note-bg);
            color: var(--accent-color);
            border: 1.5px solid var(--accent-color);
            border-radius: var(--border-radius-main);
            box-shadow: 0 4px 15px rgba(0,0,0,0.18);
            padding: 0.7em 1.5em;
            font-size: 1em;
            z-index: 3000;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s, transform 0.3s;
        }
        #info-toast.show {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .note-action-menu {
            position: absolute;
            top: 0.75rem;
            right: 0.75rem;
            z-index: 20;
        }
        .note-action-btn {
            background: rgba(255,255,255,0.1);
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            color: var(--text-color);
            transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.18s cubic-bezier(.4,1.4,.6,1);
        }
        .note-action-btn:hover {
            background-color: rgba(255,255,255,0.22);
            color: var(--accent-color);
            transform: scale(1.13) rotate(-3deg);
            box-shadow: 0 4px 24px 0 var(--accent-color), 0 2px 8px rgba(0,0,0,0.18);
            z-index: 2;
        }
        .note-action-btn .icon-action:before {
            content: '\22EE'; /* ⋮ */
            font-size: 1.2em;
        }
        .note-action-dropdown {
            display: none;
            flex-direction: row;
            align-items: center;
            gap: 0.25em;
            position: absolute;
            right: 2.0rem;
            top: -0.9rem;
            min-width: unset;
            background: var(--note-bg);
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius-main);
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            z-index: 100;
            padding: 0.5em 0.5em;
        }
        .note-action-dropdown .action-btn.top-action-btn {
            width: 40px;
            height: 40px;
            margin: 0 0.25em;
            font-size: 1.2em;
            background: linear-gradient(135deg, #232526 0%, #414345 100%);
            border: 1.5px solid var(--border-color);
            box-shadow: 0 2px 8px rgba(0,0,0,0.15), 0 0 0 0 var(--accent-color);
            transition: all 0.2s, box-shadow 0.3s;
            opacity: 1;
            filter: none;
            pointer-events: auto;
        }
        .note-action-dropdown .action-btn.top-action-btn:focus,
        .note-action-dropdown .action-btn.top-action-btn:hover {
            background: linear-gradient(135deg, #bb86fc 0%, #03dac5 100%);
            color: #121212;
            box-shadow: 0 0 8px 2px var(--accent-color), 0 2px 8px rgba(0,0,0,0.15);
        }
        .note-action-dropdown .action-btn.top-action-btn.delete-btn.confirm-delete {
            background: linear-gradient(135deg, #cf6679 0%, #bb86fc 100%);
            color: #fff;
            box-shadow: 0 0 8px 2px var(--danger-color), 0 2px 8px rgba(0,0,0,0.15);
        }

        #global-action-menu .note-action-dropdown {
            display: none;
            position: absolute;
            right: 0;
            top: 2.5rem;
            min-width: 160px;
            flex-direction: column;
            align-items: stretch;
            z-index: 1000;
        }
        #global-action-menu .note-action-dropdown .action-btn {
            width: 100%;
            justify-content: flex-start;
            gap: 0.5em;
            font-size: 1em;
            border-radius: var(--border-radius-main);
            margin: 0.1em 0;
        }

        /* Animated custom checkbox for selection mode */
        .select-note-checkbox {
            appearance: none;
            -webkit-appearance: none;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: 2px solid var(--accent-color);
            background: rgba(255,255,255,0.08);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            outline: none;
            transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.10);
            position: absolute;
            left: 0.75rem;
            top: 1.1rem;
            z-index: 2;
        }
        .select-note-checkbox:checked {
            background: linear-gradient(135deg, #bb86fc 0%, #03dac5 100%);
            border-color: var(--accent-color);
            box-shadow: 0 0 8px 2px var(--accent-color), 0 2px 8px rgba(0,0,0,0.10);
        }
        .select-note-checkbox:after {
            content: '';
            display: block;
            width: 12px;
            height: 12px;
            margin: 0 auto;
            border-radius: 50%;
            background: transparent;
            transition: background 0.2s, box-shadow 0.2s;
        }
        .select-note-checkbox:checked:after {
            background: #fff;
            box-shadow: 0 0 0 4px rgba(187,134,252,0.15);
        }
        /* Shift note content right in selection mode */
        .note.selection-mode .note-content {
            padding-left: 2.5rem !important;
            transition: padding 0.2s;
        }

        /* Icon font fallback for all icon spans */
        .icon-action:before {
            content: '\22EE'; /* ⋮ */
            font-size: 1.2em;
            display: inline-block;
            color: inherit;
        }
        .icon-copy:before {
            content: '\1F4CB'; /* 📋 */
            font-size: 1.2em;
            display: inline-block;
            color: inherit;
        }
        .icon-edit:before {
            content: '\270E'; /* ✎ */
            font-size: 1.2em;
            display: inline-block;
            color: inherit;
        }
        .icon-delete:before {
            content: '\1F5D1'; /* 🗑️ */
            font-size: 1.2em;
            display: inline-block;
            color: inherit;
        }
        /* Animated hover for all action menu buttons */
        .action-btn.top-action-btn,
        .note-action-btn {
            transition: transform 0.18s cubic-bezier(.4,1.4,.6,1), box-shadow 0.18s, background 0.2s, color 0.2s;
        }
        .action-btn.top-action-btn:hover,
        .note-action-btn:hover {
            transform: scale(1.13) rotate(-3deg);
            box-shadow: 0 4px 24px 0 var(--accent-color), 0 2px 8px rgba(0,0,0,0.18);
            z-index: 2;
        }
        
        /* Session Bar Styles */
        #session-bar {
            background: var(--note-bg);
            border-bottom: 1px solid var(--border-color);
            padding: 0.75rem 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9rem;
            color: var(--text-color);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            flex-shrink: 0;
        }
        
        #session-bar .app-title {
            font-weight: 600;
            color: var(--accent-color);
            font-size: 1rem;
        }
        
        #session-info {
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
            color: var(--subtle-text);
            font-size: 0.85rem;
        }
        
        #current-session-id {
            color: var(--accent-color);
            font-weight: 500;
        }
