/* Estilos Customizados para Neon Text */
        .text-neon-blue {
            color: #fff;
            -webkit-text-stroke: 3px #06b6d4;
            paint-order: stroke fill;
            text-shadow: 0 0 15px rgba(6, 182, 212, 0.8), 0 0 30px rgba(6, 182, 212, 0.5);
        }

        .text-neon-yellow {
            color: #fff;
            -webkit-text-stroke: 3px #fbbf24;
            paint-order: stroke fill;
            text-shadow: 0 0 15px rgba(251, 191, 36, 0.9), 0 0 35px rgba(251, 191, 36, 0.6);
        }

        /* OVERRIDES */
        .force-stroke-blue .text-neon-blue, .force-stroke-blue .text-neon-yellow {
            -webkit-text-stroke: 3px #06b6d4 !important;
            text-shadow: 0 0 15px rgba(6, 182, 212, 0.8), 0 0 30px rgba(6, 182, 212, 0.5) !important;
        }

        .force-stroke-yellow .text-neon-blue, .force-stroke-yellow .text-neon-yellow {
            -webkit-text-stroke: 3px #fbbf24 !important;
            text-shadow: 0 0 15px rgba(251, 191, 36, 0.9), 0 0 35px rgba(251, 191, 36, 0.6) !important;
        }

        /* Scrollbar */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
        .dark ::-webkit-scrollbar-thumb { background: #475569; }

        /* Hide scrollbar for Horizontal Toolbar on Mobile */
        .no-scrollbar::-webkit-scrollbar { display: none; }
        .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }
        .animate-float { animation: float 3s ease-in-out infinite; }
        
        .interactive-word {
            cursor: pointer;
            transition: all 0.2s;
            display: inline-block;
            padding: 0 4px;
            border-radius: 4px;
        }
        .interactive-word:hover {
            background-color: rgba(255,255,255,0.1);
            transform: scale(1.05);
        }
        
        .upload-area {
            background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='8' ry='8' stroke='%2394A3B8FF' stroke-width='2' stroke-dasharray='8%2c 8' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
        }
        .dark .upload-area {
            background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='8' ry='8' stroke='%23475569FF' stroke-width='2' stroke-dasharray='8%2c 8' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
        }

        /* Presentation Mode Styles */
        .tool-btn {
            border-radius: 9999px;
            transition: all 0.2s;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            border: 2px solid transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            touch-action: manipulation;
        }
        .tool-btn.active {
            border-color: #3b82f6; 
            transform: scale(1.1);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }
        
        .color-btn {
            border-radius: 9999px;
            border: 2px solid #d1d5db;
            transition: transform 0.2s;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            flex-shrink: 0;
            touch-action: manipulation;
        }
        .dark .color-btn {
            border-color: #4b5563; 
        }
        .color-btn:hover {
            transform: scale(1.1);
        }
        .color-btn.active {
            border-color: #3b82f6 !important;
            transform: scale(1.25);
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
        }
        .color-picker-input {
            appearance: none;
            -webkit-appearance: none;
            padding: 0;
            overflow: hidden;
            background: transparent;
        }
        .color-picker-input::-webkit-color-swatch-wrapper {
            padding: 0;
        }
        .color-picker-input::-webkit-color-swatch {
            border: none;
            border-radius: 9999px;
        }

        #contentWrapper {
            transform: translateY(var(--content-offset-y, 0px));
        }

        #slideWrapper {
            width: fit-content;
            height: fit-content;
            transform: translate(var(--presentation-shift-x, 0px), var(--presentation-shift-y, 0px)) scale(var(--presentation-zoom, 1));
            transform-origin: center center;
            transition: transform 0.2s ease;
            will-change: transform;
        }

        .presentation-media {
            display: block;
            width: auto;
            height: auto;
            max-width: min(100%, var(--presentation-fit-width, var(--presentation-safe-width, 100%)));
            max-height: min(85vh, var(--presentation-fit-height, var(--presentation-safe-height, 85vh)));
            object-fit: contain;
        }

        #drawingToolbar {
            -webkit-overflow-scrolling: touch;
            overscroll-behavior-x: contain;
            touch-action: pan-x;
        }

        #magnifierLens {
            width: min(240px, calc(100% - 1rem));
        }

        .magnifier-panel {
            overflow: hidden;
            border-radius: 18px;
            border: 1px solid rgba(191, 219, 254, 0.6);
            background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.82));
            box-shadow: 0 20px 45px rgba(15, 23, 42, 0.45);
            backdrop-filter: blur(10px);
        }

        .magnifier-panel__header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.45rem 0.75rem;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #e2e8f0;
            background: rgba(59, 130, 246, 0.18);
            border-bottom: 1px solid rgba(148, 163, 184, 0.24);
        }

        .magnifier-panel__body {
            position: relative;
            width: 240px;
            height: 152px;
            background: rgba(2, 6, 23, 0.72);
            cursor: grab;
            touch-action: none;
        }

        .magnifier-panel__body:active {
            cursor: grabbing;
        }

        .magnifier-panel__canvas {
            width: 100%;
            height: 100%;
            display: block;
        }

        .magnifier-panel__placeholder {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            text-align: center;
            font-size: 0.82rem;
            line-height: 1.4;
            color: #cbd5e1;
        }

        #magnifierFocusIndicator {
            width: 34px;
            height: 34px;
            border-radius: 9999px;
            border: 2px solid rgba(147, 197, 253, 0.95);
            background: rgba(15, 23, 42, 0.15);
            box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.28);
            transform: translate(-50%, -50%);
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }

        #magnifierFocusIndicator::after {
            content: '';
            position: absolute;
            inset: 10px;
            border-radius: 9999px;
            background: rgba(255, 255, 255, 0.96);
        }

        #magnifierFocusIndicator.is-dragging {
            transform: translate(-50%, -50%) scale(1.08);
            box-shadow: 0 0 0 10px rgba(59, 130, 246, 0.22), 0 0 24px rgba(59, 130, 246, 0.35);
        }

        #magnifierFocusIndicator.is-settling {
            animation: magnifier-focus-settle 0.22s ease-out;
        }

        @keyframes magnifier-focus-settle {
            0% {
                transform: translate(-50%, -50%) scale(1.1);
                box-shadow: 0 0 0 11px rgba(59, 130, 246, 0.24), 0 0 26px rgba(59, 130, 246, 0.36);
            }
            55% {
                transform: translate(-50%, -50%) scale(0.97);
                box-shadow: 0 0 0 7px rgba(59, 130, 246, 0.12), 0 0 16px rgba(59, 130, 246, 0.2);
            }
            100% {
                transform: translate(-50%, -50%) scale(1);
                box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.28);
            }
        }

        @media (max-width: 767px) {
            #magnifierLens {
                width: min(210px, calc(100% - 0.75rem));
            }

            .magnifier-panel__body {
                width: 210px;
                height: 132px;
            }

            #magnifierFocusIndicator {
                width: 44px;
                height: 44px;
                box-shadow: 0 0 0 10px rgba(59, 130, 246, 0.14), 0 0 18px rgba(59, 130, 246, 0.24);
            }

            #magnifierFocusIndicator::after {
                inset: 13px;
            }

            .presentation-media {
                max-height: min(72vh, var(--presentation-fit-height, var(--presentation-safe-height, 72vh)));
            }
        }

        /* Styles for Organizer Grid */
        .organizer-item {
            transition: transform 0.2s, box-shadow 0.2s;
            cursor: grab;
        }
        .organizer-item:active {
            cursor: grabbing;
        }
        .organizer-item.dragging {
            opacity: 0.5;
            transform: scale(0.95);
        }
        .organizer-item:hover .delete-slide-btn {
            opacity: 1;
        }

        /* Calculator Styles */
        .calc-input {
            transition: all 0.3s ease;
        }
        .calc-input:focus {
            transform: translateY(-2px);
        }
        .result-card {
            transition: all 0.3s;
        }
        .result-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
        }

