@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
            font-family: 'Inter', sans-serif;
            overflow: hidden;
            height: 100vh;
            width: 100vw;
            background: #0f172a;
        }

        .glass {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(25px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .custom-scrollbar::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        .custom-scrollbar::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.1);
        }

        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
        }

        /* --- Desktop Canvas --- */
        .desktop-canvas {
            position: fixed;
            inset: 0;
            background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
            z-index: -1;
        }

        .desktop-canvas.wp-1 {
            background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
        }

        .desktop-canvas.wp-2 {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
        }

        .desktop-canvas.wp-3 {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        }

        .desktop-canvas.wp-4 {
            background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
        }

        #sidebar {
            position: fixed;
            top: 0;
            right: -20rem;
            width: 18rem;
            height: calc(100vh - 3rem);
            z-index: 9500;
            padding: 1rem;
            background: rgba(15, 23, 42, 0.85);
            backdrop-filter: blur(24px);
            border-left: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        #sidebar.open {
            right: 0;
        }

        #sidebar .widget {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 1.25rem;
            padding: 1.25rem;
        }

        /* --- Desktop --- */
        .desktop-workspace {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 3rem;
            padding: 1.5rem;
            display: grid;
            grid-template-columns: repeat(auto-fill, 100px);
            grid-template-rows: repeat(auto-fill, 110px);
            gap: 1.5rem;
            grid-auto-flow: column;
            z-index: 10;
        }

        .desktop-icon {
            width: 90px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 0.5rem;
            border-radius: 0.75rem;
            transition: all 0.2s;
            cursor: pointer;
        }

        .desktop-icon:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .icon-box {
            width: 52px;
            height: 52px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0.5rem;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
            position: relative;
        }

        .desktop-icon span {
            font-size: 11px;
            font-weight: 500;
            color: white;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }

        /* Ajuste para ícones dentro de janelas (fundo claro) */
        .window-content .desktop-icon span {
            color: #1e293b !important;
            text-shadow: none !important;
        }

        /* Icon Tab Buttons */
        .icon-tab-btn {
            background: #f1f5f9;
            color: #94a3b8;
            cursor: pointer;
        }
        .icon-tab-btn:hover {
            background: #e2e8f0;
            color: #475569;
        }
        .icon-tab-btn.active {
            background: #6366f1;
            color: white;
        }

        /* Drag & Drop Visual Feedback */
        .drag-over {
            transform: scale(1.15);
            background: rgba(255, 255, 255, 0.2);
            box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
            border-radius: 12px;
            z-index: 50;
        }

        .drag-over .icon-box {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
            animation: target-pulse 1.5s infinite;
        }

        @keyframes target-pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
            }

            70% {
                box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
            }
        }

        .sortable-ghost {
            opacity: 0.3;
            transform: scale(0.9);
            filter: grayscale(1);
        }

        .sortable-drag {
            opacity: 0.8;
            transform: scale(1.05);
            z-index: 1000;
        }

        /* --- Taskbar (Windows-style) --- */
        #dock {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3rem;
            background: rgba(10, 17, 34, 0.92);
            backdrop-filter: blur(24px);
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            display: none;
            align-items: center;
            padding: 0;
            z-index: 1000;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
        }

        /* Start button */
        #start-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            height: 100%;
            padding: 0 1.1rem;
            color: white;
            font-size: 0.8rem;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.15s;
            border-right: 1px solid rgba(255, 255, 255, 0.07);
            flex-shrink: 0;
        }

        #start-btn:hover {
            background: rgba(99, 102, 241, 0.25);
        }

        #start-btn.active {
            background: rgba(99, 102, 241, 0.35);
        }

        /* Quick-launch icons */
        #taskbar-quick {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            padding: 0 0.5rem;
            height: 100%;
        }

        .dock-item {
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.15s;
            position: relative;
            color: rgba(255, 255, 255, 0.9);
        }

        .dock-item:hover {
            background: rgba(255, 255, 255, 0.12);
        }

        .dock-indicator {
            position: absolute;
            bottom: 2px;
            width: 4px;
            height: 4px;
            background: white;
            border-radius: 50%;
        }

        /* System tray (right side) */
        #taskbar-tray {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            height: 100%;
            padding: 0 0.5rem;
            border-left: 1px solid rgba(255, 255, 255, 0.07);
        }

        .tray-item {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.25rem 0.6rem;
            border-radius: 0.375rem;
            font-size: 0.72rem;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.8);
            cursor: pointer;
            transition: background 0.15s;
            white-space: nowrap;
        }

        .tray-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        #system-time {
            font-weight: 700;
            font-variant-numeric: tabular-nums;
        }

        /* Show Desktop button (Windows-style) */
        #show-desktop-btn {
            width: 10px;
            height: 100%;
            border-left: 1px solid rgba(255, 255, 255, 0.12);
            cursor: pointer;
            transition: background 0.15s;
            flex-shrink: 0;
        }

        #show-desktop-btn:hover {
            background: rgba(255, 255, 255, 0.18);
        }

        /* Start Menu panel */
        #start-menu {
            display: none;
            position: fixed;
            bottom: 3rem;
            left: 0;
            width: 360px;
            max-height: 600px;
            background: rgba(10, 17, 34, 0.98);
            backdrop-filter: blur(30px);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-bottom: none;
            border-radius: 0 1rem 0 0;
            z-index: 1100;
            color: white;
            box-shadow: 4px -4px 30px rgba(0, 0, 0, 0.5);
            flex-direction: column;
            overflow: hidden;
        }

        #start-menu.open {
            display: flex !important;
        }

        #start-search {
            outline: none !important;
            transition: all 0.2s;
        }

        #start-search:focus {
            background: rgba(99, 102, 241, 0.1) !important;
            border-color: rgba(99, 102, 241, 0.4) !important;
            box-shadow: 0 0 8px rgba(99, 102, 241, 0.2);
        }

        #start-apps-container {
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
        }

        #start-apps-container::-webkit-scrollbar {
            width: 4px;
        }

        #start-apps-container::-webkit-scrollbar-track {
            background: transparent;
        }

        #start-apps-container::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
        }

        #start-apps-container::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .start-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.5rem;
            margin-top: 0.75rem;
        }

        .start-tile {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.4rem;
            padding: 0.75rem 0.5rem;
            border-radius: 0.625rem;
            cursor: pointer;
            background: rgba(255, 255, 255, 0.05);
            transition: all 0.15s;
            font-size: 0.68rem;
            font-weight: 500;
            text-align: center;
            border: 1px solid transparent;
        }

        .start-tile:hover {
            background: rgba(99, 102, 241, 0.2);
            border-color: rgba(99, 102, 241, 0.4);
            transform: translateY(-1px);
        }

        .start-tile:active {
            transform: translateY(0);
            background: rgba(99, 102, 241, 0.3);
        }

        /* --- Windows --- */
        :root {
            --taskbar-h: 3rem;
        }

        .app-window {
            position: fixed;
            background: white;
            border-radius: 1rem;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            z-index: 500;
            max-height: calc(100vh - var(--taskbar-h));
            transition: opacity 0.3s, transform 0.3s;
        }

        /* Cert Cards (Digital Signer) */
        .cert-card {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 1rem;
            cursor: pointer;
            transition: all 0.2s;
            user-select: none;
        }
        .cert-card:hover { border-color: #0d9488; background: #f0fdfa; }
        .cert-card.active { border-color: #0d9488; background: #f0fdfa; ring: 2px; ring-color: #0d9488; box-shadow: 0 4px 12px rgba(13, 148, 136, 0.1); }
        .cert-card.disabled { opacity: 0.5; cursor: not-allowed; grayscale: 1; }
        .cert-card-icon {
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 0.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .cert-card-info { flex: 1; min-width: 0; }
        .cert-card-owner { font-size: 0.8125rem; font-weight: 700; color: #1e293b; margin-bottom: 0.125rem; }
        .cert-card-details { font-size: 0.625rem; color: #64748b; font-weight: 500; }
        .cert-card-doc { font-size: 0.6875rem; color: #475569; font-weight: 600; font-family: monospace; }
        .cert-type-badge { font-size: 0.5rem; font-weight: 900; padding: 1px 4px; border-radius: 4px; background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
        .cert-badge { font-size: 0.5625rem; font-weight: 800; padding: 0.125rem 0.5rem; border-radius: 9999px; text-transform: uppercase; letter-spacing: 0.025em; }
        .cert-badge.expired { background: #fee2e2; color: #dc2626; }
        .cert-badge.expiring { background: #fef3c7; color: #d97706; }


        .window-header {
            height: 2.5rem;
            background: #f1f5f9;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 1rem;
            cursor: move;
            flex-shrink: 0;
        }

        .window-controls {
            display: flex;
            gap: 0.5rem;
        }

        .win-btn {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            cursor: pointer;
        }

        .win-close {
            background: #ef4444;
        }

        .win-min {
            background: #fbbf24;
        }

        .win-max {
            background: #22c55e;
        }

        .window-content {
            flex: 1;
            position: relative;
            min-height: 0;
            display: flex;
            flex-direction: column;
        }

        .window-content iframe {
            flex: 1;
            width: 100%;
            height: 100%;
            border: none;
            display: block;
        }

        .window-overlay {
            position: absolute;
            inset: 0;
            background: transparent;
            display: none;
        }

        /* --- Custom App Store Gradient Buttons & Tags --- */
        .bg-indigo-650 {
            background-color: #4f46e5 !important;
        }
        .text-indigo-650 {
            color: #4f46e5 !important;
        }
        .bg-gradient-to-r.from-indigo-600.to-blue-600 {
            background: linear-gradient(135deg, #4f46e5, #2563eb) !important;
        }
        .bg-gradient-to-r.from-indigo-600.to-blue-600:hover {
            background: linear-gradient(135deg, #4338ca, #1d4ed8) !important;
        }
        .bg-gradient-to-r.from-emerald-500.to-teal-600 {
            background: linear-gradient(135deg, #10b981, #0d9488) !important;
        }
        .bg-gradient-to-r.from-emerald-500.to-teal-600:hover {
            background: linear-gradient(135deg, #059669, #0f766e) !important;
        }
        .bg-gradient-to-r.from-violet-650.to-indigo-650 {
            background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
        }
        .bg-gradient-to-r.from-violet-650.to-indigo-650:hover {
            background: linear-gradient(135deg, #6d28d9, #4338ca) !important;
        }
        .shadow-indigo-150 {
            box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2), 0 2px 4px -2px rgba(79, 70, 229, 0.2) !important;
        }
        .shadow-emerald-100 {
            box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2), 0 2px 4px -2px rgba(16, 185, 129, 0.2) !important;
        }
        .shadow-violet-100 {
            box-shadow: 0 4px 6px -1px rgba(124, 58, 237, 0.2), 0 2px 4px -2px rgba(124, 58, 237, 0.2) !important;
        }
        .bg-indigo-600 {
            background-color: #4f46e5 !important;
        }
        .hover\:bg-indigo-700:hover {
            background-color: #4338ca !important;
        }

        .manual-btn-header {
            background-color: #f5f3ff !important;
            border: 1px solid #ddd6fe !important;
            color: #4f46e5 !important;
            transition: all 0.2s ease;
        }
        .manual-btn-header:hover {
            background-color: #ede9fe !important;
            border-color: #c4b5fd !important;
            color: #4338ca !important;
        }

        /* --- Launchpad (Windows Start Menu Style) --- */
        #launchpad {
            position: fixed;
            bottom: 3rem;
            left: 0;
            width: 370px;
            max-height: 92vh;
            z-index: 2000;
            background: linear-gradient(to right, #0B5394 0%, #1B4F7C 100%);
            display: none;
            flex-direction: column;
            border-radius: 0;
            border: 1px solid #0a3961;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
            overflow: hidden;
        }

        #launchpad-container {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        #launchpad-top {
            padding: 0.75rem;
            background: linear-gradient(to right, #0B5394 0%, #1B4F7C 100%);
            border-bottom: 1px solid rgba(0, 0, 0, 0.3);
        }

        #launchpad-search-box {
            position: relative;
        }

        #launchpad-search {
            width: 100%;
            padding: 0.5rem 0.5rem 0.5rem 1.75rem;
            background: white;
            border: 1px solid #999;
            border-radius: 2px;
            color: #000;
            font-size: 0.9rem;
            outline: none;
            font-family: Arial, sans-serif;
        }

        #launchpad-search::placeholder {
            color: #999;
        }

        #launchpad-scroll {
            flex: 1;
            overflow-y: auto;
            padding: 0;
            display: flex;
            flex-direction: column;
            background: white;
        }

        .launchpad-grid {
            display: flex;
            flex-direction: column;
            gap: 0;
            width: 100%;
        }

        .launchpad-item {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 0.75rem;
            color: #000;
            cursor: pointer;
            padding: 0.6rem 0.5rem;
            border: none;
            border-bottom: 1px solid #e0e0e0;
            transition: all 0.15s;
            font-size: 0.85rem;
            font-weight: normal;
            background: white;
        }

        .launchpad-item:hover {
            background: #e3f2fd;
        }

        .launchpad-icon {
            width: 32px;
            height: 32px;
            border-radius: 2px;
            background: rgba(0, 0, 0, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .launchpad-item span {
            text-align: left;
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        #launchpad-footer {
            padding: 0.5rem;
            border-top: 1px solid rgba(0, 0, 0, 0.3);
            background: #f0f0f0;
            display: flex;
            gap: 0.5rem;
        }

        .launchpad-footer-btn {
            flex: 1;
            padding: 0.5rem;
            border-radius: 2px;
            background: #e0e0e0;
            border: 1px solid #999;
            color: #000;
            cursor: pointer;
            font-size: 0.8rem;
            font-weight: normal;
            transition: background 0.15s;
            font-family: Arial, sans-serif;
        }

        .launchpad-footer-btn:hover {
            background: #d0d0d0;
        }

        /* --- Custom Context Menu --- */
        #context-menu {
            position: fixed;
            z-index: 3000;
            background: rgba(30, 41, 59, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 0.75rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            display: none;
            padding: 0.5rem;
            min-width: 180px;
        }

        .context-item {
            padding: 8px 12px;
            border-radius: 0.5rem;
            font-size: 13px;
            color: white;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

        .context-item:hover {
            background: rgba(79, 70, 229, 0.8);
        }

        .context-item i {
            pointer-events: none;
        }

        /* --- App Badges --- */
        .badge-dev {
            position: absolute;
            top: -4px;
            left: -4px;
            width: 10px;
            height: 10px;
            background: #f59e0b;
            border-radius: 50%;
            border: 2px solid #0f172a;
        }

        /* Animation */
        .app-card {
            animation: slideUp 0.4s ease-out backwards;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .wp-option {
            width: 100%;
            aspect-ratio: 16/9;
            border-radius: 8px;
            cursor: pointer;
            border: 2px solid transparent;
        }

        .wp-option.active {
            border-color: #4f46e5;
        }

        .wp-1 {
            background: radial-gradient(circle, #1e293b, #0f172a);
        }

        .wp-2 {
            background: linear-gradient(135deg, #4f46e5, #7c3aed);
        }

        .wp-3 {
            background: linear-gradient(135deg, #10b981, #059669);
        }

        .wp-4 {
            background: linear-gradient(135deg, #f43f5e, #e11d48);
        }

        #loader {
            position: fixed;
            inset: 0;
            background: #0f172a;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: white;
            transition: opacity 0.5s;
        }

        /* --- ZIP Drop Overlay --- */
        #zip-drop-overlay {
            position: fixed;
            inset: 0;
            z-index: 4000;
            background: rgba(79, 70, 229, 0.3);
            backdrop-filter: blur(6px);
            border: 4px dashed rgba(99, 102, 241, 0.9);
            display: none;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 1rem;
            color: white;
            pointer-events: none;
        }

        #zip-drop-overlay.active {
            display: flex;
        }

        /* --- Sticky Notes --- */
        .notifications-panel {
            position: fixed;
            bottom: 3.5rem;
            right: 1rem;
            width: 360px;
            max-height: 500px;
            background: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 1.5rem;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
            display: flex;
            flex-direction: column;
            z-index: 9998;
            transform: translateY(20px) scale(0.95);
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .notifications-panel.active {
            transform: translateY(0) scale(1);
            opacity: 1;
            pointer-events: all;
        }
        .notifications-header {
            padding: 1.25rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            align-items: center;
        }
        .notifications-list {
            flex: 1;
            overflow-y: auto;
            padding: 0.5rem;
        }
        .notif-history-item {
            padding: 0.75rem;
            border-radius: 1rem;
            transition: all 0.2s;
            display: flex;
            gap: 0.75rem;
            cursor: default;
        }
        .notif-history-item:hover {
            background: rgba(255, 255, 255, 0.03);
        }

        /* ── Rich Email / Task Notification Cards ── */
        .nic-card {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
            padding: 0.75rem;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 1rem;
            margin-bottom: 0.5rem;
            position: relative;
        }
        .nic-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }
        .nic-card-meta {
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
        }
        .nic-card-app-row {
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .nic-card-app-name {
            font-size: 10px;
            font-weight: 900;
            color: #e2e8f0;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }
        .nic-card-time {
            font-size: 9px;
            font-weight: 700;
            color: #475569;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
        .nic-card-badge {
            font-size: 9px;
            font-weight: 900;
            color: #475569;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }
        .nic-card-body {
            display: flex;
            align-items: flex-start;
            gap: 0.65rem;
        }
        .nic-card-icon {
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 0.6rem;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .nic-card-icon.email {
            background: rgba(99, 102, 241, 0.12);
            border: 1px solid rgba(99, 102, 241, 0.2);
            color: #818cf8;
        }
        .nic-card-icon.task {
            background: rgba(59, 130, 246, 0.12);
            border: 1px solid rgba(59, 130, 246, 0.2);
            color: #60a5fa;
        }
        .nic-card-text {
            flex: 1;
            min-width: 0;
        }
        .nic-card-title {
            font-size: 12.5px;
            font-weight: 600;
            color: #cbd5e1;
            line-height: 1.35;
            overflow-wrap: break-word;
        }
        .nic-card-subtitle {
            font-size: 11px;
            color: #64748b;
            margin-top: 2px;
            line-height: 1.4;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        /* ── Inline panels (reply, postpone, info) ── */
        .nic-inline-panel {
            display: none;
            flex-direction: column;
            gap: 0.5rem;
            padding-top: 0.6rem;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }
        .nic-inline-panel.visible {
            display: flex;
        }
        .nic-inline-label {
            font-size: 10px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #64748b;
        }
        .nic-textarea {
            width: 100%;
            box-sizing: border-box;
            background: rgba(2, 6, 23, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 0.65rem;
            padding: 0.55rem 0.65rem;
            font-size: 12px;
            color: #e2e8f0;
            outline: none;
            resize: none;
            height: 64px;
            font-family: inherit;
            transition: border-color 0.15s;
        }
        .nic-textarea:focus {
            border-color: rgba(99, 102, 241, 0.5);
        }
        .nic-postpone-row {
            display: flex;
            gap: 0.4rem;
        }
        /* ── Action Rows ── */
        .nic-actions {
            display: flex;
            gap: 0.4rem;
            justify-content: flex-end;
            padding-top: 0.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }
        .nic-btn {
            padding: 0.35rem 0.7rem;
            border-radius: 0.55rem;
            font-size: 10px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            cursor: pointer;
            border: none;
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            transition: all 0.15s;
            outline: none;
            font-family: inherit;
        }
        .nic-btn-ghost {
            background: rgba(255, 255, 255, 0.06);
            color: #94a3b8;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }
        .nic-btn-ghost:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #cbd5e1;
        }
        .nic-btn-danger {
            background: rgba(239, 68, 68, 0.12);
            color: #f87171;
            border: 1px solid rgba(239, 68, 68, 0.2);
        }
        .nic-btn-danger:hover {
            background: rgba(239, 68, 68, 0.22);
        }
        .nic-btn-primary {
            background: #4f46e5;
            color: #fff;
            border: 1px solid rgba(99, 102, 241, 0.4);
        }
        .nic-btn-primary:hover {
            background: #4338ca;
        }
        .nic-btn-success {
            background: #059669;
            color: #fff;
            border: 1px solid rgba(5, 150, 105, 0.4);
        }
        .nic-btn-success:hover {
            background: #047857;
        }
        .nic-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }


        .sticky-note {
            position: fixed;
            width: 200px;
            height: 200px;
            background: #fef08a;
            border-radius: 0.5rem;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            z-index: 450;
            overflow: hidden;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .note-header {
            height: 24px;
            background: rgba(0, 0, 0, 0.05);
            display: flex;
            justify-content: flex-end;
            align-items: center;
            padding: 0 4px;
            cursor: move;
        }

        .note-content {
            flex: 1;
            padding: 10px;
            font-size: 13px;
            color: #713f12;
            background: transparent;
            border: none;
            outline: none;
            resize: none;
        }

        /*
         * ═══════════════════════════════════════════════════════════
         *  PADRÃO DE CONFIGURAÇÕES — SystemHub OS
         *
         *  Variáveis:
         *    Fundo do painel:   #f8fafc
         *    Texto principal:   #0f172a
         *    Texto secundário:  #64748b
         *    Borda:             #e2e8f0
         *    Destaque (accent): #6366f1
         *
         *  Estrutura de cada seção:
         *    .s-section-header   → bloco de cabeçalho (título + subtítulo + separador)
         *      .s-h1             → título da seção
         *      .s-sub            → descrição da seção
         *    .s-content          → área de conteúdo rolável
         *      .s-row            → linha de controle (label + controle)
         *        .s-title / .s-desc → rótulo da opção
         *      .s-card           → card de conteúdo (tabelas, listas)
         * ═══════════════════════════════════════════════════════════
         */

        /* ── Nav lateral ── */
        .s-nav {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.625rem 0.875rem;
            margin: 0.125rem 0.5rem;
            border-radius: 0.75rem;
            font-size: 0.75rem;
            font-weight: 600;
            color: #64748b;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }

        .s-nav:hover {
            background: rgba(99, 102, 241, 0.05);
            color: #4f46e5;
            transform: translateX(2px);
        }

        .s-nav.s-active {
            background: rgba(99, 102, 241, 0.1);
            color: #6366f1;
            box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.15);
        }

        .s-nav.s-active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 20%;
            bottom: 20%;
            width: 3px;
            background: #6366f1;
            border-radius: 0 4px 4px 0;
            box-shadow: 2px 0 10px rgba(99, 102, 241, 0.5);
        }

        .s-nav i,
        .s-nav span {
            transition: transform 0.2s;
        }

        .s-nav:active {
            transform: scale(0.97);
        }

        /* ── Animações de Conteúdo ── */
        @keyframes s-fade-slide {
            from {
                opacity: 0;
                transform: translateY(8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .s-animate {
            animation: s-fade-slide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        /* ── Cabeçalho de seção ── */
        .s-section-header {
            padding: 1.5rem 2rem 1.25rem;
            border-bottom: 1px solid #e2e8f0;
            background: #f8fafc;
            flex-shrink: 0;
        }

        .s-h1 {
            font-size: 1.05rem;
            font-weight: 700;
            color: #0f172a;
            margin: 0 0 0.2rem;
        }

        .s-sub {
            color: #64748b;
            font-size: 0.78rem;
            margin: 0;
            line-height: 1.5;
        }

        /* ── Área de conteúdo ── */
        .s-content {
            padding: 1.5rem 2rem;
        }

        /* ── Linha de controle ── */
        .s-title {
            font-size: 0.875rem;
            font-weight: 600;
            color: #0f172a;
            margin-bottom: 0.125rem;
        }

        .s-desc {
            font-size: 0.72rem;
            color: #94a3b8;
        }

        /* ── Card ── */
        .s-card {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 0.875rem;
            padding: 1rem 1.25rem;
            margin-bottom: 0.75rem;
        }

        /* ── Botões ── */
        .s-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.6rem 1rem;
            border-radius: 0.625rem;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            border: none;
            transition: all 0.15s;
        }

        .s-btn-primary {
            background: #6366f1;
            color: white;
        }

        .s-btn-primary:hover {
            background: #4f46e5;
        }

        .s-btn-secondary {
            background: #f1f5f9;
            color: #475569;
            border: 1px solid #e2e8f0;
        }

        .s-btn-secondary:hover {
            background: #e2e8f0;
        }

        .s-btn-danger {
            background: #fef2f2;
            color: #ef4444;
            border: 1px solid #fecaca;
        }

        .s-btn-danger:hover {
            background: #fee2e2;
        }

        /* ── Toggle ── */
        .s-toggle {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 24px;
            cursor: pointer;
            flex-shrink: 0;
        }

        .s-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
            position: absolute;
        }

        .s-toggle-track {
            position: absolute;
            inset: 0;
            background: #cbd5e1;
            border-radius: 12px;
            transition: background 0.2s;
        }

        .s-toggle-track::after {
            content: '';
            position: absolute;
            width: 18px;
            height: 18px;
            left: 3px;
            top: 3px;
            background: white;
            border-radius: 50%;
            transition: transform 0.2s;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        .s-toggle input:checked+.s-toggle-track {
            background: #6366f1;
        }

        .s-toggle input:checked+.s-toggle-track::after {
            transform: translateX(20px);
        }

        /* ── Inputs ── */
        .icon-tab-btn.active {
            background: white;
            color: #6366f1;
            border-color: #6366f1;
            box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1);
        }

        /* --- Modal Tabs --- */
        /* Diferenciação de Pastas */
        .desktop-icon.is-folder .icon-box {
            backdrop-filter: blur(12px) saturate(180%);
            border: 1.5px dashed rgba(255, 255, 255, 0.3);
            box-shadow: 0 4px 15px -5px rgba(0,0,0,0.1);
        }
        .desktop-icon.is-folder .icon-box::after {
            content: '\1F4C1';
            position: absolute;
            bottom: -4px;
            right: -4px;
            font-size: 10px;
            background: white;
            border-radius: 4px;
            padding: 1px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            border: 1px solid #f1f5f9;
            z-index: 20;
        }
        .desktop-icon.is-folder:hover .icon-box {
            transform: translateY(-2px) scale(1.02);
        }
        .desktop-icon.is-folder:hover {
            background: transparent !important;
        }
        
        /* Estilos para pastas transparentes (Android-style) */
        .desktop-icon.is-folder.transparent-folder .icon-box {
            border: none !important;
            box-shadow: none !important;
            backdrop-filter: none !important;
            background: transparent !important;
        }
        .desktop-icon.is-folder.transparent-folder .icon-box::after {
            display: none !important;
        }
        
        .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

        .modal-tab-btn {
            padding: 1rem 1.25rem;
            font-size: 0.7rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #94a3b8;
            border-bottom: 2px solid transparent;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            position: relative;
        }

        .modal-tab-btn i {
            width: 15px;
            height: 15px;
            stroke-width: 2.5px;
        }

        .modal-tab-btn:hover {
            color: #64748b;
            background: rgba(241, 245, 249, 0.5);
        }

        .modal-tab-btn.active {
            color: #4f46e5;
            background: linear-gradient(to bottom, transparent, rgba(79, 70, 229, 0.05));
        }

        .modal-tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 2px;
            background: #4f46e5;
            box-shadow: 0 0 10px rgba(79, 70, 229, 0.4);
            border-radius: 2px 2px 0 0;
        }

        .tab-pane {
            display: none;
            animation: fadeIn 0.2s ease-out;
        }

        .tab-pane.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .cred-row {
            border-bottom: 1px solid #e2e8f0;
        }

        .s-input {
            width: 100%;
            padding: 0.6rem 0.875rem;
            border: 1px solid #e2e8f0;
            border-radius: 0.625rem;
            font-size: 0.875rem;
            outline: none;
            color: #0f172a;
            transition: border-color 0.15s;
            box-sizing: border-box;
        }

        .s-input:focus {
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        }

        .s-select {
            padding: 0.5rem 0.75rem;
            border: 1px solid #e2e8f0;
            border-radius: 0.625rem;
            font-size: 0.8rem;
            outline: none;
            color: #0f172a;
            background: white;
            cursor: pointer;
        }

        /* --- New Scanner Desktop UI --- */
        .sp-item {
            animation: sp-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            border-left: 3px solid transparent;
            transition: all 0.2s;
        }

        .sp-item:hover {
            background: rgba(255, 255, 255, 0.06) !important;
            transform: translateX(4px);
        }

        @keyframes sp-slide-in {
            from {
                opacity: 0;
                transform: translateX(-10px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .sp-type-qrcode {
            border-left-color: #22d3ee;
        }

        .sp-type-barcode {
            border-left-color: #34d399;
        }

        .sp-type-photo {
            border-left-color: #a78bfa;
        }

        .sp-type-text {
            border-left-color: #f59e0b;
        }

        .sp-badge-live {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 2px 6px;
            border-radius: 4px;
            background: rgba(16, 185, 129, 0.1);
            color: #10b981;
            font-size: 0.6rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            animation: sp-pulse-lite 2s infinite;
        }

        @keyframes sp-pulse-lite {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.5;
            }
        }

        #sp-qr-wrap.connected {
            background: rgba(16, 185, 129, 0.05);
            border: 1px dashed rgba(16, 185, 129, 0.3);
        }

        .sp-lightbox {
            position: fixed;
            inset: 0;
            z-index: 9999;
            background: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(10px);
            display: none;
            align-items: center;
            justify-content: center;
            cursor: zoom-out;
            animation: fadeIn 0.3s;
        }

        .sp-lightbox img {
            max-width: 90%;
            max-height: 90%;
            border-radius: 1rem;
            box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
        }

        /* --- Native Manual Scoped Styles --- */
        #window-docs-window .manual-section-body p {
            margin-bottom: 1.25rem;
            line-height: 1.75;
            color: #374151;
            font-size: 0.875rem;
        }

        #window-docs-window .manual-section-body ul {
            list-style-type: disc;
            padding-left: 1.5rem;
            margin: 1rem 0;
            font-size: 0.875rem;
            color: #374151;
        }

        #window-docs-window .manual-section-body ol {
            list-style-type: decimal;
            padding-left: 1.5rem;
            margin: 1rem 0;
            font-size: 0.875rem;
            color: #374151;
        }

        #window-docs-window .manual-section-body li {
            margin-bottom: 0.5rem;
            line-height: 1.6;
        }

        #window-docs-window .manual-section-body h4 {
            font-size: 0.95rem;
            font-weight: 700;
            color: #111827;
            margin-top: 1.5rem;
            margin-bottom: 0.5rem;
        }

        #window-docs-window .callout {
            display: block;
            padding: 1rem 1.25rem;
            border-radius: 8px;
            margin: 1.5rem 0;
            font-size: 0.85rem;
            border-left: 4px solid;
            line-height: 1.6;
            text-align: left;
        }
        #window-docs-window .callout-info { background: #eff6ff; border-color: #3b82f6; color: #1e3a8a; }
        #window-docs-window .callout-warn { background: #fffbeb; border-color: #f59e0b; color: #78350f; }
        #window-docs-window .callout-success { background: #f0fdf4; border-color: #22c55e; color: #14532d; }
        #window-docs-window .callout-danger { background: #fef2f2; border-color: #ef4444; color: #7f1d1d; }
        #window-docs-window .callout strong { font-weight: 700; display: block; margin-bottom: 0.25rem; }

        #window-docs-window table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.8rem;
            margin: 1.5rem 0;
            border: 1px solid #e2e8f0;
            background: white;
            box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        }

        #window-docs-window th {
            background: #f8fafc;
            text-align: left;
            padding: 0.6rem 0.8rem;
            font-weight: 700;
            color: #64748b;
            text-transform: uppercase;
            font-size: 0.65rem;
            letter-spacing: 0.05em;
            border-bottom: 1px solid #e2e8f0;
        }

        #window-docs-window td {
            padding: 0.75rem 0.8rem;
            border-bottom: 1px solid #f1f5f9;
            color: #334155;
            vertical-align: middle;
        }

        #window-docs-window tr:last-child td { border-bottom: none; }

        #window-docs-window :not(pre) > code {
            background: #f1f5f9;
            color: #0f172a;
            padding: 0.15rem 0.35rem;
            border-radius: 4px;
            font-size: 0.85em;
            font-family: monospace;
        }

/* --- End of Block --- */
        .assistant-panel {
            position: fixed;
            top: 1rem;
            right: -400px;
            bottom: 5rem;
            width: 360px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 1.5rem;
            box-shadow: -10px 0 50px rgba(0,0,0,0.1);
            z-index: 8000;
            display: flex;
            flex-direction: column;
            transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
            border: 1px solid rgba(255,255,255,0.5);
        }
        .assistant-panel.active { right: 1rem; }
        .assistant-header { padding: 1.5rem; border-bottom: 1px solid rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; }
        .assistant-chat { flex: 1; overflow-y: auto; padding: 1.5rem; }
        .assistant-footer { padding: 1.25rem; border-top: 1px solid rgba(0,0,0,0.05); }
        .custom-scrollbar::-webkit-scrollbar { width: 4px; }
        .custom-scrollbar::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }

/* --- End of Block --- */
        @keyframes sp-line-anim {
            0% {
                top: 0;
                opacity: 0;
            }

            10% {
                opacity: 1;
            }

            90% {
                opacity: 1;
            }

            100% {
                top: 100%;
                opacity: 0;
            }
        }

/* --- End of Block --- */
        @keyframes sp-pulse {

            0%,
            100% {
                opacity: 1
            }

            50% {
                opacity: 0.5
            }
        }

        @keyframes bug-pulse {
            0% {
                transform: scale(0.95);
                box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
            }

            70% {
                transform: scale(1);
                box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
            }

            100% {
                transform: scale(0.95);
                box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
            }
        }

        /* Ajustes de layout para a Central de Aplicativos (Play Store) */
        #store-apps-grid {
            align-content: start;
        }

        .playstore-search-input {
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            border: 1px solid #e2e8f0;
            transition: all 0.2s ease;
        }
        .playstore-search-input:focus {
            box-shadow: 0 4px 14px rgba(79, 70, 229, 0.08);
            border-color: #a5b4fc;
        }

        .playstore-categories-scroll::-webkit-scrollbar {
            display: none;
        }
        .playstore-categories-scroll {
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .playstore-previews-scroll::-webkit-scrollbar {
            height: 5px;
        }
        .playstore-previews-scroll::-webkit-scrollbar-track {
            background: #f1f5f9;
            border-radius: 9999px;
        }
        .playstore-previews-scroll::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 9999px;
        }
        .playstore-previews-scroll::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        .playstore-category-chip {
            padding: 0.45rem 1rem;
            border-radius: 9999px;
            font-size: 11px;
            font-weight: 700;
            text-transform: capitalize;
            letter-spacing: 0.025em;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
            border: 1px solid transparent;
        }
        .playstore-category-chip.active {
            background-color: #4f46e5;
            color: #ffffff;
            box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
        }
        .playstore-category-chip.inactive {
            background-color: #f8fafc;
            color: #64748b;
            border-color: #e2e8f0;
        }
        .playstore-category-chip.inactive:hover {
            background-color: #f1f5f9;
            color: #334155;
            transform: translateY(-0.5px);
        }
        .playstore-category-chip:active {
            transform: scale(0.95);
        }

        .playstore-app-card {
            background-color: #ffffff;
            padding: 1.25rem;
            border-radius: 1.25rem;
            border: 1px solid #f1f5f9;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            text-align: center;
            height: 100%;
        }
        .playstore-app-card:hover {
            box-shadow: 0 12px 24px -8px rgba(79, 70, 229, 0.08);
            transform: translateY(-3px);
            border-color: #e0e7ff;
        }

        .playstore-app-icon {
            width: 4rem;
            height: 4rem;
            border-radius: 1.25rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .playstore-app-card:hover .playstore-app-icon {
            transform: scale(1.06) rotate(1.5deg);
        }

        @media (min-width: 1280px) {
            #store-apps-grid {
                grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
            }
        }

        @media (min-width: 1536px) {
            #store-apps-grid {
                grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
            }
        }

        .email-snippet-hover {
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            transition: all 0.3s ease-in-out;
        }
        .email-toast-hover:hover .email-snippet-hover {
            max-height: 150px;
            opacity: 1;
            margin-top: 0.5rem;
            border-top: 1px solid rgba(15, 23, 42, 0.08);
            padding-top: 0.5rem;
        }

        /* --- SystemHub Toast Light Theme & Interactive Styling --- */
        .hub-toast {
            background-color: #ffffff !important;
            border-color: #e2e8f0 !important;
        }
        
        /* Hover effects for actionable toasts */
        .hub-toast.is-actionable {
            transition: all 0.2s ease-in-out !important;
        }
        .hub-toast.is-actionable:hover {
            background-color: #f8fafc !important;
            transform: scale(1.02) translate(0) !important;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
        }

        /* Custom Hover for Buttons inside Toasts */
        .hub-toast button, 
        .hub-toast .btn {
            transition: all 0.2s ease !important;
        }
        
        /* Specific button hovers */
        .hub-toast button.bg-slate-100:hover {
            background-color: #e2e8f0 !important;
        }
        .hub-toast button.bg-indigo-600:hover {
            background-color: #4338ca !important;
        }
        .hub-toast button.bg-indigo-700:hover {
            background-color: #3730a3 !important;
        }
        .hub-toast button.bg-emerald-600:hover {
            background-color: #059669 !important;
        }
        .hub-toast button.bg-emerald-700:hover {
            background-color: #047857 !important;
        }
        .hub-toast button.bg-red-50:hover {
            background-color: #fee2e2 !important;
        }
        .hub-toast button.bg-red-600:hover {
            background-color: #dc2626 !important;
        }
        .hub-toast button.bg-red-700:hover {
            background-color: #b91c1c !important;
        }
        .hub-toast button.bg-blue-600:hover {
            background-color: #2563eb !important;
        }
        .hub-toast button.bg-blue-700:hover {
            background-color: #1d4ed8 !important;
        }
        
        /* Reply inputs and textarea focus state */
        .hub-toast textarea:focus {
            border-color: #6366f1 !important;
            box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15) !important;
        }

        /* Actionable Toast Hover for Open App button */
        .hub-toast.is-actionable:hover .group-hover\:bg-indigo-100 {
            background-color: #e0e7ff !important;
        }

        /* Dynamic lockscreen blobs animation */
        @keyframes blob-bounce {
            0%, 100% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(30px, -50px) scale(1.1); }
            66% { transform: translate(-20px, 20px) scale(0.9); }
        }
        .animate-blob {
            animation: blob-bounce 10s infinite alternate ease-in-out;
        }
        .animation-delay-2000 {
            animation-delay: 2s;
        }

        /* Shake animation on login failure */
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
            20%, 40%, 60%, 80% { transform: translateX(6px); }
        }
        .animate-shake {
            animation: shake 0.5s ease-in-out;
        }

        /* Interactive transitions for fields */
        .group:focus-within input {
            transform: scale(1.01);
        }
        .group input {
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Glassmorphism Login Card */
        #lock-login-ui,
        #lock-mfa-ui,
        #lock-pending-ui,
        #lock-reset-pwd-ui {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.07);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 24px;
            padding: 2rem;
        }

        /* Premium input glow on focus */
        #lock-login-ui input:focus,
        #lock-mfa-ui input:focus,
        #lock-reset-pwd-ui input:focus {
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 0 20px rgba(99, 102, 241, 0.08);
        }

        /* Loading UI glassmorphism */
        #lock-loading-ui {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 24px;
            padding: 2.5rem 2rem;
        }

        /* Login button glow on hover */
        #btn-login-submit {
            position: relative;
            overflow: hidden;
        }
        #btn-login-submit::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        #btn-login-submit:hover::after {
            opacity: 1;
        }
        #btn-login-submit:not(:disabled):hover {
            box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
        }

        /* Force correct border colors on feedback elements (override Tailwind default) */
        #pwd-error {
            border-color: rgba(239, 68, 68, 0.3) !important;
        }
        #mfa-error {
            border-color: rgba(239, 68, 68, 0.3) !important;
        }
        #mfa-sent-status {
            border-color: rgba(16, 185, 129, 0.2) !important;
        }

        /* Disabled MFA channel buttons */
        #btn-mfa-email:disabled,
        #btn-mfa-whatsapp:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        /* ── Grouped Notifications (Desktop Windows Style) ── */
        .notif-group {
            margin-bottom: 1rem;
            position: relative;
        }
        .notif-group-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.25rem 0.5rem;
            margin-bottom: 0.35rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
        .notif-group-items {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        /* Oculta o app name repetido dentro de itens agrupados */
        .notif-group .notif-item-appname,
        .notif-group .nic-card-app-row {
            display: none !important;
        }
        /* Botão de fechar individual no desktop */
        .desktop-notif-dismiss {
            position: absolute;
            right: 0.75rem;
            top: 0.75rem;
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.3);
            cursor: pointer;
            width: 1.25rem;
            height: 1.25rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            opacity: 0;
            z-index: 10;
        }
        .notif-history-item:hover .desktop-notif-dismiss {
            opacity: 1;
        }
        .desktop-notif-dismiss:hover {
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.8);
        }
        /* Rodapé de expansão */
        .notif-expand-btn {
            width: 100%;
            background: rgba(255, 255, 255, 0.02);
            border: 1px dashed rgba(255, 255, 255, 0.06);
            border-radius: 0.75rem;
            padding: 0.45rem;
            font-size: 9px;
            font-weight: 800;
            color: #818cf8;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.25rem;
            margin-top: 0.25rem;
        }
        .notif-expand-btn:hover {
            background: rgba(99, 102, 241, 0.05);
            border-color: rgba(99, 102, 241, 0.2);
            color: #a5b4fc;
        }

/* --- End of Block --- */
