        :root {
            --bg-gradient-start: #6d327c;
            --bg-gradient-mid1: #485DA6;
            --bg-gradient-mid2: #00a1ba;
            --bg-gradient-end: #36C486;
            --text-primary: #f3f4f6;
            /* gray-100 */
            --text-secondary: #d1d5db;
            /* gray-300 */
            --text-muted: #9ca3af;
            /* gray-400 */
            --glass-bg: rgba(255, 255, 255, 0.1);
            --glass-border: rgba(255, 255, 255, 0.2);
            --input-bg: rgba(255, 255, 255, 0.1);
            --scroll-track-bg: rgba(255, 255, 255, 0.1);
            --scroll-thumb-bg: rgba(255, 255, 255, 0.3);
            --scroll-thumb-hover-bg: rgba(255, 255, 255, 0.5);
            --shadow-color: rgba(31, 38, 135, 0.37);
            --filter-active-bg: rgba(255, 255, 255, 0.25);
            --conversation-user-bg: rgba(5, 150, 105, 0.2);
            --conversation-agent-bg: rgba(37, 99, 235, 0.2);
            --resizer-bg: rgba(255, 255, 255, 0.1);
            --resizer-hover-bg: rgba(0, 161, 186, 0.7);
        }

        .branding-logo-wrapper {
            width: 64px;
            height: 64px;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.14);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
        }

        .branding-logo-wrapper--small {
            width: 42px;
            height: 42px;
            border-radius: 10px;
            box-shadow: none;
        }

        .branding-logo-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        .branding-logo-fallback {
            width: 100%;
            height: 100%;
            border-radius: inherit;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #6d327c, #00a1ba);
        }

        .branding-logo-fallback--small {
            background: linear-gradient(135deg, rgba(109, 50, 124, 0.9), rgba(0, 161, 186, 0.9));
        }

        /* Admin user cards */
        .admin-user-card {
            border: 1px solid rgba(255, 255, 255, 0.12);
            backdrop-filter: blur(10px);
            width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 1rem;
            box-sizing: border-box;
        }

        .admin-user-card:hover {
            border-color: rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.08);
        }

        /* Force user list to stack vertically with proper spacing */
        #adminUsersList {
            display: flex !important;
            flex-direction: column !important;
            gap: 1rem !important;
            width: 100%;
        }

        /* Ensure each card is a block element */
        #adminUsersList>.admin-user-card {
            display: block !important;
            flex-shrink: 0;
        }

        .admin-user-header {
            display: flex;
            gap: 0.75rem;
            align-items: flex-start;
        }

        .admin-user-avatar {
            width: 48px;
            height: 48px;
            min-width: 48px;
            border-radius: 12px;
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(79, 70, 229, 0.35));
            border: 1px solid rgba(255, 255, 255, 0.15);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.1rem;
            color: #e2e8f0;
            text-transform: uppercase;
            flex-shrink: 0;
        }

        .admin-user-meta {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            font-size: 0.78rem;
            color: rgba(226, 232, 240, 0.75);
        }

        .admin-user-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            justify-content: flex-start;
            margin-top: 0.5rem;
        }

        /* Responsive layout for user cards */
        @media (min-width: 768px) {
            .admin-user-actions {
                justify-content: flex-end;
                margin-top: 0;
            }
        }

        .dark {
            --bg-gradient-start: #1a202c;
            --bg-gradient-mid1: #2d3748;
            --bg-gradient-mid2: #4a5568;
            --bg-gradient-end: #2d3748;
            --text-primary: #e2e8f0;
            --text-secondary: #cbd5e0;
            --text-muted: #a0aec0;
            --glass-bg: rgba(26, 32, 44, 0.6);
            --glass-border: rgba(255, 255, 255, 0.1);
            --input-bg: rgba(0, 0, 0, 0.2);
            --scroll-track-bg: rgba(0, 0, 0, 0.2);
            --scroll-thumb-bg: rgba(255, 255, 255, 0.2);
            --scroll-thumb-hover-bg: rgba(255, 255, 255, 0.4);
            --shadow-color: rgba(0, 0, 0, 0.5);
            --filter-active-bg: rgba(0, 0, 0, 0.4);
            --conversation-user-bg: rgba(5, 150, 105, 0.3);
            --conversation-agent-bg: rgba(37, 99, 235, 0.3);
            --resizer-bg: rgba(0, 0, 0, 0.2);
            --resizer-hover-bg: rgba(0, 161, 186, 0.9);
        }

        /* ===== SVG DARK/LIGHT MODE TOGGLE ===== */
        #darkModeToggleWrapper {
            display: flex;
            align-items: center;
            transition: transform 0.2s ease;
        }

        #darkModeToggleWrapper:hover {
            transform: scale(1.08);
        }

        #darkModeToggleWrapper:active {
            transform: scale(0.95);
        }

        /* Track Background */
        .svg-toggle-track {
            fill: #38BDF8;
            transition: fill 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .dark-mode-active .svg-toggle-track {
            fill: #1E1B4B;
        }

        /* Thumb Group (Slides left and right) */
        .svg-toggle-thumb {
            transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            transform: translateX(0px);
        }

        .dark-mode-active .svg-toggle-thumb {
            transform: translateX(160px);
        }

        /* Sun Icon Elements */
        .svg-toggle-sun {
            transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
            transform-origin: 80px 100px;
            transform: rotate(0deg) scale(1);
            opacity: 1;
        }

        .dark-mode-active .svg-toggle-sun {
            transform: rotate(90deg) scale(0.3);
            opacity: 0;
        }

        /* Moon Icon Elements */
        .svg-toggle-moon {
            transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
            transform-origin: 80px 100px;
            transform: rotate(-90deg) scale(0.3);
            opacity: 0;
        }

        .dark-mode-active .svg-toggle-moon {
            transform: rotate(0deg) scale(1);
            opacity: 1;
        }

        /* Background Decorations - Clouds */
        .svg-toggle-clouds {
            transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
            transform: translateY(0px);
            opacity: 1;
        }

        .dark-mode-active .svg-toggle-clouds {
            transform: translateY(40px);
            opacity: 0;
        }

        /* Background Decorations - Stars */
        .svg-toggle-stars {
            transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
            transform: translateY(-40px);
            opacity: 0;
        }

        .dark-mode-active .svg-toggle-stars {
            transform: translateY(0px);
            opacity: 1;
        }

        /* ===== PERFORMANCE MODE ===== */
        /* Deaktiviert ressourcenintensive visuelle Effekte */
        .performance-mode {
            /* Variablen für Performance-Modus */
            --glass-bg: rgba(30, 30, 40, 0.95);
            --shadow-color: transparent;
        }

        .performance-mode,
        .performance-mode * {
            /* Deaktiviere alle Animationen */
            animation: none !important;
            animation-duration: 0s !important;
            animation-delay: 0s !important;

            /* Schnellere Transitions */
            transition-duration: 0.05s !important;
            transition-delay: 0s !important;
        }

        /* Deaktiviere Blur-Effekte */
        .performance-mode .glass-effect,
        .performance-mode .backdrop-blur,
        .performance-mode .backdrop-blur-sm,
        .performance-mode .backdrop-blur-md,
        .performance-mode .backdrop-blur-lg,
        .performance-mode [class*="backdrop-blur"] {
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
        }

        /* Einfache Hintergründe */
        .performance-mode .glass-effect {
            background: var(--glass-bg) !important;
            box-shadow: none !important;
        }

        /* Deaktiviere komplexe Schatten */
        .performance-mode *:not(.admin-user-avatar) {
            text-shadow: none !important;
        }

        /* Deaktiviere SVG-Hintergründe */
        .performance-mode #svg-background-container {
            display: none !important;
        }

        /* Deaktiviere Canvas-Hintergründe */
        .performance-mode #background-canvas {
            display: none !important;
        }

        /* Einfacher statischer Hintergrund */
        .performance-mode body,
        body.performance-mode {
            background: #1a1a2e !important;
            animation: none !important;
        }

        /* Deaktiviere Hover-Transformationen */
        .performance-mode *:hover {
            transform: none !important;
        }

        /* Deaktiviere Partikel und Glow-Effekte */
        .performance-mode .tab-particles-enabled .tab-item::after,
        .performance-mode .tab-glow-enabled .tab-item,
        .performance-mode .tab-glow-enabled .tab-active {
            background-image: none !important;
            box-shadow: none !important;
        }

        /* Schnee und Wintereffekte deaktivieren */
        .performance-mode .snowflake,
        .performance-mode .snow-container,
        .performance-mode [class*="winter"],
        .performance-mode [class*="snow"] {
            display: none !important;
        }

        /* Charts ohne Animationen */
        .performance-mode canvas {
            image-rendering: optimizeSpeed !important;
        }

        /* Reduzierte Opazität-Übergänge */
        .performance-mode .anim-fade-in,
        .performance-mode .anim-fade-out,
        .performance-mode .modal-enter,
        .performance-mode .modal-leave {
            animation: none !important;
            opacity: 1 !important;
        }

        /* Performance-Indikator wenn aktiv */
        .performance-mode::after {
            content: '⚡';
            position: fixed;
            bottom: 10px;
            right: 10px;
            font-size: 1.2rem;
            opacity: 0.3;
            pointer-events: none;
            z-index: 9999;
        }

        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--scroll-track-bg);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--scroll-thumb-bg);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--scroll-thumb-hover-bg);
        }

        body {
            background: transparent;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: var(--text-primary);
            overflow: hidden;
            transition: background 1s ease-in-out;
        }

        body.svg-active {
            background: none;
            animation: none;
        }

        body.impersonation-active {
            border-top: 6px solid rgba(251, 191, 36, 0.85);
        }

        body.impersonation-active #impersonationIndicator {
            display: inline-flex !important;
        }

        #background-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            display: block;
        }

        /* Admin E-Mail form */
        .admin-email-form {
            gap: 1.25rem;
        }

        .admin-email-section {
            padding: 1rem;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 0.85rem;
            background: rgba(255, 255, 255, 0.03);
        }

        .admin-email-section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }

        .admin-email-label {
            display: block;
            font-size: 0.75rem;
            color: rgba(226, 232, 240, 0.75);
            margin-bottom: 0.35rem;
            letter-spacing: 0.01em;
        }

        .admin-email-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            align-items: center;
        }

        .switch {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 22px;
        }

        .switch input {
            display: none;
        }

        .switch-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.2);
            transition: .2s;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.25);
        }

        .switch-slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 3px;
            bottom: 2px;
            background-color: white;
            transition: .2s;
            border-radius: 50%;
        }

        .switch input:checked+.switch-slider {
            background: linear-gradient(135deg, #22d3ee, #14b8a6);
            border-color: transparent;
        }

        .switch input:checked+.switch-slider:before {
            transform: translateX(20px);
        }

        .switch-slider.small {
            height: 18px;
        }

        .switch-slider.small:before {
            height: 14px;
            width: 14px;
            left: 2px;
            bottom: 1px;
        }

        #loading-overlay {
            position: fixed;
            inset: 0;
            background: #111827;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-primary);
            transition: opacity 0.5s ease-out;
        }

        .loading-spinner {
            width: 48px;
            height: 48px;
            border: 4px solid var(--glass-bg);
            border-bottom-color: var(--text-primary);
            border-radius: 50%;
            display: inline-block;
            box-sizing: border-box;
            animation: rotation 1s linear infinite;
            margin-bottom: 1.5rem;
        }

        @keyframes gradient-bg {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        .glass-effect {
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 1rem;
            border: 1px solid var(--glass-border);
            box-shadow: 0 8px 32px 0 var(--shadow-color);
            transition: background 0.3s, border 0.3s, box-shadow 0.3s;
        }

        .input-style {
            background: var(--input-bg);
            transition: background-color 0.3s;
        }

        .input-style::placeholder {
            color: var(--text-muted);
        }

        input[type="date"]::-webkit-calendar-picker-indicator {
            filter: invert(0.8);
            cursor: pointer;
        }

        .dark input[type="date"]::-webkit-calendar-picker-indicator {
            filter: invert(1);
        }

        select.input-style option {
            background-color: #ffffff;
            color: #1f2937;
        }

        .gender-option.active {
            border-color: var(--accent-color, #3b82f6) !important;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
        }

        .dark select.input-style option {
            background-color: #2d3748;
            color: var(--text-primary);
        }

        #settingsModal code {
            background-color: rgba(0, 0, 0, 0.3);
            color: var(--text-secondary);
            padding: 2px 5px;
            border-radius: 4px;
            font-family: 'Courier New', Courier, monospace;
            font-size: 0.8rem;
        }

        .rich-text-editor {
            -webkit-appearance: none;
            appearance: none;
            resize: vertical;
            overflow-y: auto;
            min-height: 12rem;
        }

        #ticketText.rich-text-editor,
        #modern-ticket-description.rich-text-editor {
            min-height: 10rem;
            max-height: 20rem;
        }

        .rich-text-editor:empty:before {
            content: attr(placeholder);
            color: var(--text-muted);
            pointer-events: none;
            display: block;
        }

        .rich-text-editor .resizable-image-wrapper {
            position: relative;
            display: inline-block;
            resize: both;
            overflow: hidden;
            border: 2px dashed transparent;
            transition: border-color 0.2s;
            min-width: 50px;
            min-height: 50px;
        }

        .rich-text-editor .resizable-image-wrapper:hover {
            border-color: var(--text-muted);
        }

        .rich-text-editor img {
            display: block;
            width: 100%;
            height: 100%;
            max-width: 100%;
            object-fit: contain;
        }

        .rich-text-editor .file-attachment {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background-color: rgba(0, 0, 0, 0.2);
            padding: 0.5rem 0.75rem;
            border-radius: 0.5rem;
            border: 1px solid rgba(255, 255, 255, 0.2);
            margin: 0.25rem;
            -webkit-user-select: none;
            user-select: none;
            max-width: 250px;
        }

        .rich-text-editor .file-attachment span {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .rich-text-editor .remove-attachment {
            cursor: pointer;
            opacity: 0.7;
        }

        .rich-text-editor .remove-attachment:hover {
            opacity: 1;
            color: #ef4444;
        }

        /* red-500 */
        .drag-over {
            outline: 2px dashed var(--bg-gradient-mid2);
            outline-offset: -4px;
        }


        .loader {
            width: 16px;
            height: 16px;
            border: 2px solid currentColor;
            border-bottom-color: transparent;
            border-radius: 50%;
            display: inline-block;
            box-sizing: border-box;
            animation: rotation 1s linear infinite;
        }

        .tab-item {
            transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease-in-out;
        }

        .tab-item.dragging {
            opacity: 0.7;
            transform: scale(1.05);
            background: var(--glass-bg);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .tab-name-span[contenteditable="true"] {
            outline: 1px dashed var(--text-secondary);
            padding: 0 4px;
            border-radius: 3px;
            background-color: rgba(0, 0, 0, 0.2);
        }

        .sortable-ghost {
            opacity: 0.4;
            background: rgba(255, 255, 255, 0.2);
        }

        .sortable-drag {
            opacity: 0.9 !important;
            transform: rotate(2deg) scale(1.02);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .drag-handle,
        .todo-drag-handle {
            cursor: move;
        }

        #sidebar-resizer {
            width: 6px;
            cursor: col-resize;
            background: var(--resizer-bg);
            transition: background-color 0.2s;
        }

        #sidebar-resizer:hover {
            background: var(--resizer-hover-bg);
        }

        @keyframes rotation {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        @keyframes fade-in {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes fade-out {
            from {
                opacity: 1;
            }

            to {
                opacity: 0;
            }
        }

        @keyframes scale-in {
            from {
                opacity: 0;
                transform: scale(0.95) translateY(10px);
            }

            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        @keyframes scale-out {
            from {
                opacity: 1;
                transform: scale(1) translateY(0);
            }

            to {
                opacity: 0;
                transform: scale(0.95) translateY(-10px);
            }
        }

        @keyframes slide-down-fade {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .anim-fade-in {
            animation: fade-in 0.3s ease-out forwards;
        }

        .anim-fade-out {
            animation: fade-out 0.3s ease-in forwards;
        }

        .modal-enter {
            animation: scale-in 0.2s ease-in-out forwards;
        }

        .modal-leave {
            animation: scale-out 0.2s ease-in-out forwards;
        }

        .search-result-item {
            animation: slide-down-fade 0.5s ease-out forwards;
            opacity: 0;
        }

        .day-with-notes {
            position: relative;
        }

        .day-with-notes::after {
            content: '';
            position: absolute;
            bottom: 4px;
            left: 50%;
            transform: translateX(-50%);
            width: 6px;
            height: 6px;
            background-color: #36C486;
            border-radius: 50%;
        }

        .tab-active {
            background: linear-gradient(135deg, rgba(6, 182, 212, 0.8), rgba(59, 130, 246, 0.6));
            color: white;
            font-weight: 600;
            box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
            transform: translateY(-1px);
        }

        /* Neue Tab-Animationen */
        @keyframes tabSlideIn {
            0% {
                transform: translateY(20px) scale(0.95);
                opacity: 0;
            }

            100% {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
        }

        @keyframes tabFadeIn {
            0% {
                opacity: 0;
                transform: translateY(10px);
            }

            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* MINIMALISTISCHE TAB-ANIMATIONEN */

        /* Enhanced Tab Container */
        .tab-container {
            position: relative;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 10px;
            padding: 4px;
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        /* Enhanced Tab Items */
        .tab-item {
            position: relative;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 10px;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
            backdrop-filter: blur(10px);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .tab-item:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .tab-item:active {
            transform: translateY(-1px);
            transition-duration: 0.1s;
            background: rgba(255, 255, 255, 0.1);
        }

        /* Active Tab - Enhanced and Professional */
        .tab-active {
            position: relative;
            background: linear-gradient(135deg, var(--accent-color, #3b82f6), rgba(var(--accent-color-rgb, 59, 130, 246), 0.8));
            border: 1px solid var(--accent-color, #3b82f6);
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
            transform: translateY(-1px);
        }

        .tab-active::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
            border-radius: 10px 10px 0 0;
        }

        .tab-active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg,
                    var(--accent-color, #3b82f6) 0%,
                    var(--accent-color, #60a5fa) 50%,
                    var(--accent-color, #3b82f6) 100%);
        }

        /* Tab Entry Animation - Subtle */
        @keyframes tabEnter {
            0% {
                transform: translateX(-20px);
                opacity: 0;
            }

            100% {
                transform: translateX(0);
                opacity: 1;
            }
        }

        /* Enhanced Tab Close Button */
        .tab-close-btn {
            position: relative;
            background: transparent;
            border: none;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 50%;
            color: rgba(239, 68, 68, 0.7);
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transform: scale(0.8);
        }

        .tab-item:hover .tab-close-btn {
            opacity: 1;
            transform: scale(1);
        }

        .tab-close-btn:hover {
            background: rgba(239, 68, 68, 0.15);
            color: #ef4444;
            transform: scale(1.15);
            box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
        }

        .tab-close-btn:active {
            transform: scale(0.95);
            transition-duration: 0.1s;
        }

        /* Show close button on active tab */
        .tab-active .tab-close-btn {
            opacity: 1;
            transform: scale(1);
            color: rgba(255, 255, 255, 0.8);
        }

        .tab-active .tab-close-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            color: white;
        }

        /* Enhanced Tab Text */
        .tab-name-span {
            color: var(--text-primary);
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 500;
            letter-spacing: 0.01em;
        }

        .tab-active .tab-name-span {
            color: white;
            font-weight: 600;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }

        /* Tab icon improvements */
        .tab-item i[data-lucide] {
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .tab-active i[data-lucide] {
            filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
        }

        /* Specific fallbacks only for critical buttons */
        #settingsButton i[data-lucide="settings"]:not(:has(svg))::before {
            content: '⚙';
            display: inline-block;
        }

        #newTabButton i[data-lucide="plus"]:not(:has(svg))::before {
            content: '+';
            display: inline-block;
        }

        /* Ensure buttons are visible even without icons */
        button[id*="Button"] {
            min-width: 2rem;
            min-height: 2rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        /* Enhanced Plus Button */
        #newTabButton {
            position: relative;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            color: var(--text-primary);
            backdrop-filter: blur(10px);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        #newTabButton:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
            transform: scale(1.05) rotate(90deg);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        #newTabButton:active {
            transform: scale(0.98) rotate(90deg);
            transition-duration: 0.1s;
        }

        /* TAB SHAPES - MINIMALISTISCH */
        .tab-shape-rounded .tab-item {
            border-radius: 8px;
        }

        .tab-shape-sharp .tab-item {
            border-radius: 0;
        }

        .tab-shape-pill .tab-item {
            border-radius: 16px;
        }

        .tab-shape-hexagon .tab-item {
            border-radius: 4px;
        }

        /* TAB STYLES - CLEAN */
        .tab-style-futuristic .tab-item,
        .tab-style-cyberpunk .tab-item,
        .tab-style-minimal .tab-item,
        .tab-style-classic .tab-item {
            background: transparent;
        }

        .tab-style-futuristic .tab-item:hover,
        .tab-style-cyberpunk .tab-item:hover,
        .tab-style-minimal .tab-item:hover,
        .tab-style-classic .tab-item:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        /* SUBTLE EFFECTS */
        .tab-glow-enabled .tab-item:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .tab-glow-enabled .tab-active {
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        }

        /* CLEAN PARTICLE EFFECTS */
        .tab-particles-enabled .tab-item::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image:
                radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .tab-particles-enabled .tab-item:hover::after {
            opacity: 0.3;
        }

        /* ANIMATION SPEED MODIFIERS */
        .tab-container {
            --tab-animation-speed: 1s;
        }

        .tab-item {
            transition-duration: calc(var(--tab-animation-speed, 1s) * 0.3);
        }

        .tab-close-btn {
            transition-duration: calc(var(--tab-animation-speed, 1s) * 0.2);
        }

        /* CLEAN COLOR APPLICATION */
        .tab-container {
            --accent-color: #3b82f6;
        }

        /* SUBTLE THEME INTENSITY */
        .tab-container {
            --tab-theme-intensity: 1;
        }

        /* Tab-Text-Overflow-Handling */
        .tab-name-span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 120px;
        }

        /* Loading-Animation für Tabs */
        .tab-loading {
            position: relative;
        }

        .tab-loading::after {
            content: '';
            position: absolute;
            top: 50%;
            right: 8px;
            transform: translateY(-50%);
            width: 12px;
            height: 12px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top: 2px solid #06b6d4;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: translateY(-50%) rotate(0deg);
            }

            100% {
                transform: translateY(-50%) rotate(360deg);
            }
        }

        /* Scrollbar für Tab-Container verstecken */
        .scrollbar-hide {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .scrollbar-hide::-webkit-scrollbar {
            display: none;
        }

        /* Responsive Tab-Design */
        @media (max-width: 768px) {
            .tab-item {
                padding: 8px 12px;
                font-size: 12px;
                max-width: 120px;
            }

            .tab-close-btn {
                padding: 2px;
            }
        }

        .stats-filter-btn.active {
            background-color: var(--filter-active-bg);
            font-weight: 600;
        }

        .stats-view-btn {
            opacity: 0.6;
        }

        .stats-view-btn:hover {
            opacity: 1;
            background-color: rgba(255, 255, 255, 0.1) !important;
        }

        .stats-view-btn.bg-white\/30 {
            opacity: 1;
        }

        .stats-chart-container {
            position: relative;
            width: 100%;
            height: 128px;
        }

        .stats-view {
            transition: opacity 0.3s ease-out, transform 0.3s ease-out;
        }

        .todo-item.completed span {
            text-decoration: line-through;
            color: var(--text-muted);
        }

        #contextMenu ul li {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 8px 12px;
            cursor: pointer;
            border-radius: 6px;
            transition: background-color 0.2s;
        }

        #contextMenu ul li:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        #contextMenu .separator {
            height: 1px;
            background-color: var(--glass-border);
            margin: 4px 0;
        }

        #contextMenu {
            transform-origin: top left;
        }

        .menu-enter {
            animation: scale-in 0.12s ease-out forwards;
        }

        .menu-leave {
            animation: scale-out 0.12s ease-in forwards;
        }

        /* For PDF Export */
        @media print {

            body,
            #app-container {
                background: white !important;
                color: black !important;
            }
        }

        #pdfExportContent {
            color: #1f2937;
            font-family: Arial, sans-serif;
        }

        #pdfExportContent h1 {
            font-size: 24px;
            margin-bottom: 20px;
            text-align: center;
        }

        #pdfExportContent .note-item {
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            page-break-inside: avoid;
        }

        #pdfExportContent .note-header {
            display: flex;
            justify-content: space-between;
            font-size: 14px;
            color: #555;
            border-bottom: 1px solid #eee;
            padding-bottom: 8px;
            margin-bottom: 8px;
        }

        #pdfExportContent .note-body {
            font-size: 12px;
            line-height: 1.6;
        }

        #pdfExportContent .note-body img {
            max-width: 100%;
            height: auto;
            border-radius: 4px;
        }

        /* Resizable modal content */
        .modal-content.resizable {
            resize: both;
            overflow: auto;
            min-width: 320px;
            min-height: 240px;
        }

        /* Salutation toggle buttons */
        .salutation-btn.active {
            background-color: rgba(20, 184, 166, 0.3) !important;
            color: rgb(20, 184, 166) !important;
            border-color: rgba(20, 184, 166, 0.4) !important;
            box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
        }

        .salutation-btn.active:hover {
            background-color: rgba(20, 184, 166, 0.4) !important;
        }

        /* Slider styles */
        .slider {
            -webkit-appearance: none;
            appearance: none;
            background: transparent;
            cursor: pointer;
        }

        .slider::-webkit-slider-track {
            background: var(--scroll-track-bg);
            height: 8px;
            border-radius: 4px;
        }

        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            background: linear-gradient(135deg, #36C486, #6d327c);
            height: 20px;
            width: 20px;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            transition: all 0.2s ease;
        }

        .slider::-webkit-slider-thumb:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }

        .slider::-moz-range-track {
            background: var(--scroll-track-bg);
            height: 8px;
            border-radius: 4px;
            border: none;
        }

        .slider::-moz-range-thumb {
            background: linear-gradient(135deg, #36C486, #6d327c);
            height: 20px;
            width: 20px;
            border-radius: 50%;
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            transition: all 0.2s ease;
        }

        .slider::-moz-range-thumb:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }

        /* Shiny Text Animation */
        .shiny-text {
            color: #b5b5b5a4;
            background: linear-gradient(120deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 60%);
            background-size: 200% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            display: inline-block;
            animation: shine 5s linear infinite;
        }

        @keyframes shine {
            0% {
                background-position: 100%;
            }

            100% {
                background-position: -100%;
            }
        }

        .shiny-text.disabled {
            animation: none;
        }



        /* Enhanced visual feedback */
        .calendar-cell-highlight {
            position: relative;
            overflow: hidden;
        }

        .calendar-cell-highlight::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .calendar-cell-highlight:hover::before {
            left: 100%;
        }

        /* Inline Editor Styles */
        .inline-editor {
            animation: slideIn 0.2s ease-out;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: scale(0.95) translateY(-5px);
            }

            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .inline-editor .editor-title,
        .inline-editor .editor-description {
            transition: all 0.2s ease;
        }

        .inline-editor .editor-title:focus,
        .inline-editor .editor-description:focus {
            background: rgba(59, 130, 246, 0.05);
            border-radius: 4px;
            padding: 2px 4px;
            margin: -2px -4px;
        }

        .inline-editor .save-btn {
            transition: all 0.2s ease;
        }

        .inline-editor .save-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
        }

        .inline-editor .delete-btn:hover {
            transform: translateY(-1px);
        }

        /* Dark mode specific styles for inline editor */
        .dark .inline-editor {
            background: rgba(31, 41, 55, 0.95);
            border-color: rgba(59, 130, 246, 0.5);
        }

        .dark .inline-editor .editor-title:focus,
        .dark .inline-editor .editor-description:focus {
            background: rgba(59, 130, 246, 0.1);
        }

        /* Minimalist design improvements */
        .inline-editor input,
        .inline-editor textarea {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        .inline-editor .save-btn {
            font-weight: 500;
            letter-spacing: 0.025em;
        }

        /* Drag and Drop Styles */
        .drag-target {
            background: rgba(59, 130, 246, 0.2) !important;
            border-color: rgba(59, 130, 246, 0.6) !important;
            transform: scale(1.02);
        }

        .drag-handle {
            cursor: grab;
            transition: all 0.2s ease;
        }

        .drag-handle:hover {
            color: rgb(59, 130, 246) !important;
            transform: scale(1.1);
        }

        .drag-handle:active {
            cursor: grabbing;
        }

        /* Enhanced delete button styles */
        .inline-editor .delete-btn {
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
        }

        .inline-editor .delete-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
        }

        .inline-editor .delete-btn:active {
            transform: scale(0.95);
        }

        /* Delete confirmation animation */
        @keyframes deleteConfirm {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(0.95);
                opacity: 0.8;
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        .delete-confirming {
            animation: deleteConfirm 0.3s ease-in-out;
        }

        /* Enhanced save button */
        .inline-editor .save-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
        }

        .inline-editor .save-btn:active {
            transform: scale(0.95);
        }

        /* Visual feedback for drag operations */
        .dragging {
            z-index: 1000 !important;
            opacity: 0.9;
            transform: scale(1.05) rotate(2deg);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
        }

        /* Calendar cell hover effects for drag targets */
        .calendar-cell {
            transition: all 0.2s ease;
            position: relative;
        }

        .calendar-cell[data-date]:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        /* Calendar Search Styles */
        .calendar-search-container {
            position: relative;
        }

        .calendar-cell.search-highlight {
            position: relative;
            border: 2px solid #10b981;
            border-radius: 0.375rem;
            background-color: rgba(16, 185, 129, 0.1);
        }

        .calendar-cell.search-highlight::after {
            content: '';
            position: absolute;
            top: -4px;
            right: -4px;
            width: 12px;
            height: 12px;
            background-color: #10b981;
            border-radius: 50%;
            z-index: 10;
        }

        .calendar-cell.search-dimmed {
            opacity: 0.4;
        }

        .calendar-cell.search-match-count {
            position: absolute;
            top: 2px;
            right: 2px;
            background-color: #10b981;
            color: white;
            font-size: 10px;
            padding: 1px 3px;
            border-radius: 8px;
            font-weight: bold;
            z-index: 5;
        }

        .calendar-search-results.active {
            display: block;
        }

        .calendar-search-clear-btn {
            cursor: pointer;
        }

        /* Responsive Design for Calendar Search */
        @media (max-width: 640px) {
            .calendar-search-container input {
                font-size: 14px;
            }

            .calendar-search-results {
                font-size: 10px;
            }
        }

        .stats-widget-highlight {
            box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.75), 0 0 30px rgba(34, 211, 238, 0.35);
            animation: statsHighlightPulse 1.2s ease-out;
        }

        @keyframes statsHighlightPulse {
            0% {
                box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.95), 0 0 35px rgba(34, 211, 238, 0.45);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(34, 211, 238, 0), 0 0 0 rgba(34, 211, 238, 0);
            }
        }

        /* Context menu styles */
        .context-menu {
            position: fixed;
            background: white;
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            padding: 4px;
            z-index: 1000;
            min-width: 180px;
            animation: contextMenuSlideIn 0.2s ease-out;
        }

        .dark .context-menu {
            background: rgb(31, 41, 55);
        }

        @keyframes contextMenuSlideIn {
            from {
                opacity: 0;
                transform: scale(0.95) translateY(-10px);
            }

            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .context-menu-item {
            padding: 8px 12px;
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            color: rgb(55, 65, 81);
            transition: all 0.2s ease;
        }

        .dark .context-menu-item {
            color: rgb(229, 231, 235);
        }

        .context-menu-item:hover {
            background: rgba(59, 130, 246, 0.1);
            color: rgb(59, 130, 246);
        }

        .context-menu-item.danger:hover {
            background: rgba(239, 68, 68, 0.1);
            color: rgb(239, 68, 68);
        }

        .context-menu-separator {
            height: 1px;
            background: rgba(0, 0, 0, 0.1);
            margin: 4px 8px;
        }