:root {
            --bg-color: #f8fafc;
            --panel-bg: rgba(255, 255, 255, 0.8);
            --sidebar-bg: rgba(241, 245, 249, 0.85);
            --header-bg: rgba(255, 255, 255, 0.6);
            --panel-border: rgba(99, 102, 241, 0.12);
            --primary-grad: linear-gradient(135deg, #4f46e5, #7c3aed);
            --secondary-grad: linear-gradient(135deg, #10b981, #059669);
            --danger-grad: linear-gradient(135deg, #ef4444, #dc2626);
            --text-primary: #0f172a;
            --text-secondary: #475569;
            --text-muted: #94a3b8;
            --accent-glow: rgba(79, 70, 229, 0.1);
            --active-glow: rgba(16, 185, 129, 0.15);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --modal-bg: #ffffff;
            --chat-bubble-inbound: rgba(0, 0, 0, 0.05);
            --chat-input-area-bg: rgba(0, 0, 0, 0.02);
            --queue-item-hover: rgba(0, 0, 0, 0.02);
            --queue-list-container-bg: rgba(0, 0, 0, 0.01);
            --device-card-bg: rgba(0, 0, 0, 0.02);
            --device-avatar-bg: rgba(0, 0, 0, 0.04);
            --progress-bar-track: rgba(0, 0, 0, 0.05);
            --input-bg: rgba(0, 0, 0, 0.03);
            --btn-secondary-bg: rgba(0, 0, 0, 0.03);
            --slider-bg-off: rgba(0, 0, 0, 0.15);
            --drop-zone-bg: rgba(79, 70, 229, 0.01);
            --tabs-bg: rgba(0, 0, 0, 0.03);
            --mobile-nav-bg: rgba(255, 255, 255, 0.95);
        }

        body.dark-theme {
            --bg-color: #080c14;
            --panel-bg: rgba(17, 25, 40, 0.75);
            --sidebar-bg: rgba(12, 18, 30, 0.6);
            --header-bg: rgba(8, 12, 20, 0.5);
            --panel-border: rgba(255, 255, 255, 0.08);
            --primary-grad: linear-gradient(135deg, #6366f1, #a855f7);
            --secondary-grad: linear-gradient(135deg, #10b981, #059669);
            --danger-grad: linear-gradient(135deg, #ef4444, #dc2626);
            --text-primary: #f3f4f6;
            --text-secondary: #9ca3af;
            --text-muted: #6b7280;
            --accent-glow: rgba(99, 102, 241, 0.15);
            --active-glow: rgba(16, 185, 129, 0.2);
            --modal-bg: #111827;
            --chat-bubble-inbound: rgba(255, 255, 255, 0.05);
            --chat-input-area-bg: rgba(0, 0, 0, 0.15);
            --queue-item-hover: rgba(255, 255, 255, 0.02);
            --queue-list-container-bg: rgba(8, 12, 20, 0.3);
            --device-card-bg: rgba(255, 255, 255, 0.03);
            --device-avatar-bg: rgba(255, 255, 255, 0.05);
            --progress-bar-track: rgba(255, 255, 255, 0.05);
            --input-bg: rgba(255, 255, 255, 0.04);
            --btn-secondary-bg: rgba(255, 255, 255, 0.05);
            --slider-bg-off: rgba(255, 255, 255, 0.1);
            --drop-zone-bg: rgba(20, 28, 47, 0.4);
            --tabs-bg: rgba(0, 0, 0, 0.2);
            --mobile-nav-bg: rgba(8, 12, 20, 0.95);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            user-select: none;
        }

        body {
            font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-primary);
            overflow: hidden;
            height: 100vh;
            width: 100vw;
            display: flex;
            flex-direction: column;
            background-image: 
                radial-gradient(at 10% 20%, rgba(99, 102, 241, 0.06) 0px, transparent 50%),
                radial-gradient(at 90% 80%, rgba(168, 85, 247, 0.04) 0px, transparent 50%);
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        body.dark-theme {
            background-image: 
                radial-gradient(at 10% 20%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
                radial-gradient(at 90% 80%, rgba(168, 85, 247, 0.12) 0px, transparent 50%);
        }

        /* Scrollbar Styling */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        ::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.1);
            border-radius: 10px;
        }
        body.dark-theme ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
        }
        ::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.2);
        }
        body.dark-theme ::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.25);
        }

        /* Header Bar */
        header {
            height: 70px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 30px;
            border-bottom: 1px solid var(--panel-border);
            backdrop-filter: blur(20px);
            background: var(--header-bg);
            z-index: 100;
            transition: var(--transition);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: var(--primary-grad);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 15px rgba(79, 70, 229, 0.3);
            font-size: 1.2rem;
            color: white;
            animation: pulse 2s infinite;
        }

        body.dark-theme .logo-icon {
            box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
        }

        @keyframes pulse {
            0% { transform: scale(1); box-shadow: 0 0 10px rgba(79, 70, 229, 0.3); }
            50% { transform: scale(1.04); box-shadow: 0 0 18px rgba(79, 70, 229, 0.5); }
            100% { transform: scale(1); box-shadow: 0 0 10px rgba(79, 70, 229, 0.3); }
        }

        .logo-text h1 {
            font-size: 1.35rem;
            font-weight: 800;
            letter-spacing: 0.5px;
            background: linear-gradient(120deg, #4f46e5, #7c3aed);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        body.dark-theme .logo-text h1 {
            background: linear-gradient(120deg, #fff, #a855f7);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .logo-text span {
            font-size: 0.75rem;
            color: var(--text-secondary);
            display: block;
            margin-top: -2px;
        }

        /* Middle URL Glow Badge */
        .domain-highlight-badge {
            background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(124, 58, 237, 0.08));
            border: 1.5px solid rgba(79, 70, 229, 0.3);
            border-radius: 30px;
            padding: 8px 22px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.9rem;
            box-shadow: 0 0 15px rgba(79, 70, 229, 0.05);
            animation: borderGlow 3s infinite alternate;
        }

        .domain-highlight-badge i {
            color: #4f46e5;
            font-size: 1rem;
        }

        .domain-highlight-badge span {
            color: var(--text-secondary);
            font-weight: 500;
        }

        .domain-highlight-badge strong {
            color: #4f46e5;
            font-size: 1.05rem;
            font-weight: 800;
            letter-spacing: 0.3px;
        }

        body.dark-theme .domain-highlight-badge {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
            border-color: rgba(99, 102, 241, 0.4);
            box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
        }
        body.dark-theme .domain-highlight-badge i {
            color: #818cf8;
        }
        body.dark-theme .domain-highlight-badge strong {
            color: #a78bfa;
        }

        @keyframes borderGlow {
            0% {
                border-color: rgba(79, 70, 229, 0.3);
                box-shadow: 0 0 10px rgba(79, 70, 229, 0.05);
            }
            100% {
                border-color: rgba(124, 58, 237, 0.6);
                box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
            }
        }

        .header-status {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .my-info-badge {
            background: rgba(0, 0, 0, 0.03);
            border: 1px solid var(--panel-border);
            padding: 8px 16px;
            border-radius: 30px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.85rem;
            color: var(--text-primary);
        }

        body.dark-theme .my-info-badge {
            background: rgba(255, 255, 255, 0.05);
        }

        .my-info-badge .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50px;
            background-color: #10b981;
            box-shadow: 0 0 8px #10b981;
            animation: blink 1.5s infinite;
        }

        @keyframes blink {
            0%, 100% { opacity: 0.4; }
            50% { opacity: 1; }
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .btn-icon {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: rgba(0, 0, 0, 0.03);
            border: 1px solid var(--panel-border);
            color: var(--text-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
        }

        body.dark-theme .btn-icon {
            background: rgba(255, 255, 255, 0.04);
        }

        .btn-icon:hover {
            background: rgba(99, 102, 241, 0.08);
            transform: translateY(-2px);
            border-color: rgba(99, 102, 241, 0.4);
        }

        /* App Container Layout */
        .app-container {
            flex: 1;
            display: flex;
            overflow: hidden;
            position: relative;
        }

        /* Left Column: Devices Grid */
        .sidebar {
            width: 300px;
            border-right: 1px solid var(--panel-border);
            backdrop-filter: blur(15px);
            background: var(--sidebar-bg);
            display: flex;
            flex-direction: column;
            padding: 20px;
            overflow-y: auto;
            transition: var(--transition);
        }

        .section-title {
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-secondary);
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .section-title i.loading {
            animation: spin 2s linear infinite;
        }

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

        .devices-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 30px;
        }

        .device-card {
            background: var(--device-card-bg);
            border: 1px solid var(--panel-border);
            border-radius: 14px;
            padding: 15px;
            display: flex;
            align-items: center;
            gap: 15px;
            cursor: pointer;
            position: relative;
            transition: var(--transition);
        }

        .device-card:hover {
            background: rgba(99, 102, 241, 0.06);
            border-color: rgba(99, 102, 241, 0.3);
            transform: translateY(-2px);
        }

        .device-card.active {
            background: rgba(99, 102, 241, 0.08);
            border-color: #4f46e5;
            box-shadow: 0 0 12px var(--accent-glow);
        }

        body.dark-theme .device-card.active {
            background: rgba(99, 102, 241, 0.1);
            border-color: #6366f1;
        }

        .device-card.active::after {
            content: '';
            position: absolute;
            top: 15px;
            right: 15px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #10b981;
            box-shadow: 0 0 8px #10b981;
        }

        .device-avatar {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: var(--device-avatar-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            color: var(--text-secondary);
            border: 1px solid var(--panel-border);
            transition: var(--transition);
        }

        .device-card:hover .device-avatar {
            background: var(--primary-grad);
            color: white;
            border-color: transparent;
        }

        .device-card.active .device-avatar {
            background: var(--primary-grad);
            color: white;
            border-color: transparent;
        }

        .device-info h4 {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 2px;
        }

        .device-info p {
            font-size: 0.75rem;
            color: var(--text-secondary);
        }

        /* Center Column: Main File Area */
        .main-content {
            flex: 1;
            padding: 25px;
            display: flex;
            flex-direction: column;
            gap: 20px;
            overflow-y: auto;
            position: relative;
        }

        /* Domain Highlight Banner */
        .domain-banner {
            background: linear-gradient(90deg, rgba(79, 70, 229, 0.06), rgba(124, 58, 237, 0.06));
            border: 1px solid rgba(79, 70, 229, 0.18);
            border-radius: 14px;
            padding: 12px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
            backdrop-filter: blur(10px);
            transition: var(--transition);
        }

        body.dark-theme .domain-banner {
            background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.08));
            border-color: rgba(99, 102, 241, 0.2);
        }

        .domain-banner-content {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 0.88rem;
            color: var(--text-primary);
        }

        .domain-banner-content i {
            color: #10b981;
            font-size: 1.15rem;
        }

        .domain-banner-content strong.glow-text {
            color: #4f46e5;
            font-weight: 800;
            padding: 3px 8px;
            background: rgba(79, 70, 229, 0.1);
            border-radius: 6px;
            border: 1px solid rgba(79, 70, 229, 0.25);
            font-size: 0.98rem;
            letter-spacing: 0.5px;
        }

        body.dark-theme .domain-banner-content strong.glow-text {
            color: #818cf8;
            background: rgba(99, 102, 241, 0.2);
            border-color: rgba(99, 102, 241, 0.35);
        }

        .btn-copy-domain {
            background: rgba(79, 70, 229, 0.08);
            border: 1px solid rgba(79, 70, 229, 0.25);
            color: #4f46e5;
            padding: 6px 14px;
            border-radius: 8px;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
        }

        body.dark-theme .btn-copy-domain {
            color: #818cf8;
            background: rgba(99, 102, 241, 0.15);
            border-color: rgba(99, 102, 241, 0.35);
        }

        .btn-copy-domain:hover {
            background: var(--primary-grad);
            color: white;
            border-color: transparent;
            box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
        }

        /* Drop Zone */
        .drop-zone {
            background: var(--drop-zone-bg);
            border: 2px dashed rgba(79, 70, 229, 0.3);
            border-radius: 20px;
            padding: 40px 20px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 15px;
            backdrop-filter: blur(10px);
        }

        body.dark-theme .drop-zone {
            border-color: rgba(99, 102, 241, 0.3);
        }

        .drop-zone:hover, .drop-zone.dragover {
            border-color: #4f46e5;
            background: rgba(79, 70, 229, 0.04);
            box-shadow: 0 0 30px rgba(79, 70, 229, 0.05) inset;
        }

        body.dark-theme .drop-zone:hover, body.dark-theme .drop-zone.dragover {
            border-color: #6366f1;
            background: rgba(99, 102, 241, 0.06);
            box-shadow: 0 0 30px rgba(99, 102, 241, 0.1) inset;
        }

        .drop-zone-icon {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: rgba(79, 70, 229, 0.08);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.2rem;
            color: #4f46e5;
            transition: var(--transition);
            margin-bottom: 5px;
        }

        body.dark-theme .drop-zone-icon {
            color: #6366f1;
            background: rgba(99, 102, 241, 0.1);
        }

        .drop-zone:hover .drop-zone-icon {
            transform: scale(1.1);
            background: var(--primary-grad);
            color: white;
            box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
        }

        .drop-zone h3 {
            font-size: 1.15rem;
            font-weight: 600;
        }

        .drop-zone p {
            font-size: 0.85rem;
            color: var(--text-secondary);
            max-width: 400px;
            line-height: 1.4;
        }

        .drop-zone-actions {
            display: flex;
            gap: 15px;
            margin-top: 10px;
        }

        .btn-primary {
            background: var(--primary-grad);
            border: none;
            padding: 10px 24px;
            border-radius: 30px;
            color: white;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
            transition: var(--transition);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
        }

        .btn-secondary {
            background: var(--btn-secondary-bg);
            border: 1px solid var(--panel-border);
            padding: 10px 24px;
            border-radius: 30px;
            color: var(--text-primary);
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition);
        }

        .btn-secondary:hover {
            background: rgba(0, 0, 0, 0.05);
            transform: translateY(-2px);
        }

        body.dark-theme .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        /* Active Transfer Panel */
        .transfer-panel {
            background: var(--panel-bg);
            border: 1px solid var(--panel-border);
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.05);
            display: none; /* Initially hidden, visible during simulation */
        }

        body.dark-theme .transfer-panel {
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .transfer-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
        }

        .transfer-title h3 {
            font-size: 1.05rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .transfer-title p {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-top: 2px;
        }

        .transfer-speed-badge {
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.3);
            color: #10b981;
            padding: 5px 12px;
            border-radius: 30px;
            font-size: 0.8rem;
            font-weight: 700;
        }

        .progress-container {
            margin-bottom: 15px;
        }

        .progress-bar-wrapper {
            height: 10px;
            background: var(--progress-bar-track);
            border-radius: 30px;
            overflow: hidden;
            position: relative;
            margin-bottom: 10px;
        }

        .progress-bar-fill {
            height: 100%;
            width: 0%;
            background: var(--primary-grad);
            border-radius: 30px;
            transition: width 0.2s ease-out;
            position: relative;
            box-shadow: 0 0 8px rgba(79, 70, 229, 0.3);
        }

        body.dark-theme .progress-bar-fill {
            box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
        }

        .progress-bar-fill::after {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(
                90deg, 
                transparent, 
                rgba(255, 255, 255, 0.25) 50%, 
                transparent
            );
            animation: shine 1.5s infinite;
        }

        @keyframes shine {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        .progress-stats {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--text-secondary);
        }

        .active-file-indicator {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 12px;
            background: rgba(0, 0, 0, 0.02);
            border-radius: 8px;
            font-size: 0.8rem;
            border-left: 3px solid #4f46e5;
        }

        body.dark-theme .active-file-indicator {
            background: rgba(255, 255, 255, 0.03);
            border-left-color: #6366f1;
        }

        .active-file-indicator i {
            color: #4f46e5;
        }
        body.dark-theme .active-file-indicator i {
            color: #6366f1;
        }

        /* Queue Table / List */
        .queue-section {
            background: var(--panel-bg);
            border: 1px solid var(--panel-border);
            border-radius: 20px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 250px;
            transition: var(--transition);
        }

        .queue-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .queue-controls {
            display: flex;
            gap: 10px;
        }

        .btn-small {
            background: rgba(0, 0, 0, 0.03);
            border: 1px solid var(--panel-border);
            color: var(--text-secondary);
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 0.75rem;
            cursor: pointer;
            transition: var(--transition);
        }

        body.dark-theme .btn-small {
            background: rgba(255, 255, 255, 0.05);
        }

        .btn-small:hover {
            background: rgba(0, 0, 0, 0.06);
            color: var(--text-primary);
        }
        body.dark-theme .btn-small:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .btn-small.danger:hover {
            background: rgba(239, 68, 68, 0.08);
            color: #ef4444;
            border-color: rgba(239, 68, 68, 0.25);
        }
        body.dark-theme .btn-small.danger:hover {
            background: rgba(239, 68, 68, 0.1);
        }

        .queue-list-container {
            flex: 1;
            overflow-y: auto;
            border: 1px solid var(--panel-border);
            border-radius: 12px;
            background: var(--queue-list-container-bg);
        }

        .queue-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 15px;
            border-bottom: 1px solid var(--panel-border);
            transition: var(--transition);
        }

        .queue-item:last-child {
            border-bottom: none;
        }

        .queue-item:hover {
            background: var(--queue-item-hover);
        }

        .item-info {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            min-width: 0;
        }

        .item-icon {
            width: 34px;
            height: 34px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            background: rgba(0, 0, 0, 0.03);
            border: 1px solid var(--panel-border);
            color: var(--text-secondary);
        }

        body.dark-theme .item-icon {
            background: rgba(255, 255, 255, 0.04);
        }

        .item-icon.image {
            color: #2563eb;
            background: rgba(37, 99, 235, 0.08);
        }
        body.dark-theme .item-icon.image {
            color: #3b82f6;
            background: rgba(59, 130, 246, 0.1);
        }

        .item-icon.video {
            color: #7c3aed;
            background: rgba(124, 58, 237, 0.08);
        }
        body.dark-theme .item-icon.video {
            color: #8b5cf6;
            background: rgba(139, 92, 246, 0.1);
        }

        .item-icon.document {
            color: #d97706;
            background: rgba(217, 119, 6, 0.08);
        }
        body.dark-theme .item-icon.document {
            color: #f59e0b;
            background: rgba(245, 158, 11, 0.1);
        }

        .item-details {
            min-width: 0;
        }

        .item-name {
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--text-primary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .item-meta {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-top: 1px;
        }

        .item-status {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .status-badge {
            font-size: 0.75rem;
            padding: 3px 8px;
            border-radius: 4px;
            background: rgba(0, 0, 0, 0.03);
            color: var(--text-secondary);
        }

        body.dark-theme .status-badge {
            background: rgba(255, 255, 255, 0.05);
        }

        .status-badge.waiting {
            background: rgba(217, 119, 6, 0.08);
            color: #d97706;
        }
        body.dark-theme .status-badge.waiting {
            background: rgba(245, 158, 11, 0.1);
            color: #f59e0b;
        }

        .status-badge.sending {
            background: rgba(79, 70, 229, 0.08);
            color: #4f46e5;
            animation: blink 1.2s infinite;
        }
        body.dark-theme .status-badge.sending {
            background: rgba(99, 102, 241, 0.1);
            color: #6366f1;
        }

        .status-badge.completed {
            background: rgba(16, 185, 129, 0.08);
            color: #059669;
        }
        body.dark-theme .status-badge.completed {
            background: rgba(16, 185, 129, 0.1);
            color: #10b981;
        }

        .btn-delete-item {
            background: transparent;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            font-size: 0.9rem;
            transition: var(--transition);
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
        }

        .btn-delete-item:hover {
            color: #ef4444;
            background: rgba(239, 68, 68, 0.08);
        }
        body.dark-theme .btn-delete-item:hover {
            background: rgba(239, 68, 68, 0.1);
        }

        .empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: var(--text-muted);
            gap: 10px;
            padding: 40px 0;
        }

        .empty-state i {
            font-size: 2.2rem;
            opacity: 0.5;
        }

        /* Right Column: Chat & Settings */
        .right-sidebar {
            width: 320px;
            border-left: 1px solid var(--panel-border);
            backdrop-filter: blur(15px);
            background: var(--sidebar-bg);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transition: var(--transition);
        }

        .sidebar-tabs {
            display: flex;
            border-bottom: 1px solid var(--panel-border);
            background: var(--tabs-bg);
        }

        .tab-btn {
            flex: 1;
            padding: 15px 0;
            text-align: center;
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            position: relative;
        }

        .tab-btn.active {
            color: var(--text-primary);
        }

        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 20%;
            right: 20%;
            height: 2.5px;
            background: var(--primary-grad);
            border-radius: 4px;
        }

        .tab-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .tab-pane {
            display: none;
            flex: 1;
            flex-direction: column;
            overflow: hidden;
        }

        .tab-pane.active {
            display: flex;
        }

        .download-path-sticky-banner {
            padding: 15px;
            background: var(--panel-bg);
            border-bottom: 1.5px solid var(--panel-border);
            display: flex;
            flex-direction: column;
            gap: 4px;
            z-index: 10;
        }

        .download-path-sticky-banner .path-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .download-path-sticky-banner .path-title i {
            color: #4f46e5;
        }
        body.dark-theme .download-path-sticky-banner .path-title i {
            color: #818cf8;
        }

        /* Chat Pane */
        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .chat-bubble {
            max-width: 85%;
            padding: 10px 14px;
            border-radius: 14px;
            font-size: 0.85rem;
            line-height: 1.4;
            position: relative;
        }

        .chat-bubble.inbound {
            background: var(--chat-bubble-inbound);
            border: 1px solid var(--panel-border);
            align-self: flex-start;
            border-top-left-radius: 4px;
            color: var(--text-primary);
        }

        .chat-bubble.outbound {
            background: var(--primary-grad);
            color: white;
            align-self: flex-end;
            border-top-right-radius: 4px;
            box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15);
        }

        body.dark-theme .chat-bubble.outbound {
            box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
        }

        .chat-bubble-meta {
            font-size: 0.7rem;
            color: var(--text-muted);
            margin-top: 4px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .chat-bubble.outbound .chat-bubble-meta {
            color: rgba(255, 255, 255, 0.75);
        }

        .chat-clipboard-action {
            margin-left: 8px;
            cursor: pointer;
            opacity: 0.6;
            transition: var(--transition);
        }

        .chat-clipboard-action:hover {
            opacity: 1;
        }

        .chat-input-area {
            padding: 15px;
            border-top: 1px solid var(--panel-border);
            background: var(--chat-input-area-bg);
        }

        .chat-toolbar {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
        }

        .btn-tool {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 0.85rem;
            padding: 4px 8px;
            border-radius: 4px;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .btn-tool:hover {
            background: rgba(0, 0, 0, 0.03);
            color: var(--text-primary);
        }
        body.dark-theme .btn-tool:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .chat-input-container {
            display: flex;
            gap: 10px;
        }

        .chat-input {
            flex: 1;
            background: var(--input-bg);
            border: 1px solid var(--panel-border);
            border-radius: 8px;
            padding: 8px 12px;
            color: var(--text-primary);
            font-family: inherit;
            font-size: 0.85rem;
            resize: none;
            height: 38px;
            outline: none;
            transition: var(--transition);
        }

        .chat-input:focus {
            border-color: #4f46e5;
            background: rgba(0, 0, 0, 0.01);
        }
        body.dark-theme .chat-input:focus {
            border-color: #6366f1;
            background: rgba(255, 255, 255, 0.08);
        }

        .btn-send {
            width: 38px;
            height: 38px;
            border-radius: 8px;
            background: var(--primary-grad);
            border: none;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15);
        }

        .btn-send:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
        }

        /* Settings Pane */
        .settings-pane {
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 20px;
            overflow-y: auto;
        }

        .settings-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .settings-group label {
            font-size: 0.8rem;
            color: var(--text-secondary);
            font-weight: 600;
        }

        .path-input-wrapper {
            display: flex;
            gap: 8px;
        }

        .settings-input {
            flex: 1;
            background: var(--input-bg);
            border: 1px solid var(--panel-border);
            border-radius: 8px;
            padding: 8px 12px;
            color: var(--text-primary);
            font-size: 0.8rem;
            outline: none;
            font-family: monospace;
        }

        .settings-input:focus {
            border-color: #4f46e5;
        }
        body.dark-theme .settings-input:focus {
            border-color: #6366f1;
        }

        .btn-browse {
            background: var(--btn-secondary-bg);
            border: 1px solid var(--panel-border);
            color: var(--text-primary);
            border-radius: 8px;
            padding: 0 12px;
            font-size: 0.8rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-browse:hover {
            background: rgba(0, 0, 0, 0.05);
        }
        body.dark-theme .btn-browse:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .setting-toggle-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid var(--panel-border);
        }

        .setting-toggle-info h5 {
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--text-primary);
        }

        .setting-toggle-info p {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-top: 1px;
        }

        /* Custom Toggle Switch */
        .switch {
            position: relative;
            display: inline-block;
            width: 38px;
            height: 20px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: var(--slider-bg-off);
            transition: .3s;
            border-radius: 34px;
            border: 1px solid var(--panel-border);
        }

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

        input:checked + .slider {
            background: var(--primary-grad);
            border-color: transparent;
        }

        input:checked + .slider:before {
            transform: translateX(18px);
        }

        /* MOCK MODAL: File Explorer for choosing storage path */
        .modal-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(8px);
            z-index: 1000;
            display: none;
            align-items: center;
            justify-content: center;
        }

        body.dark-theme .modal-overlay {
            background: rgba(0, 0, 0, 0.7);
        }

        .modal-card {
            width: 480px;
            background: var(--modal-bg);
            border: 1px solid var(--panel-border);
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            gap: 15px;
            transition: var(--transition);
        }

        body.dark-theme .modal-card {
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h3 {
            font-size: 1.1rem;
            font-weight: 700;
        }

        .modal-body {
            height: 250px;
            overflow-y: auto;
            border: 1px solid var(--panel-border);
            border-radius: 10px;
            background: rgba(0, 0, 0, 0.02);
            padding: 10px;
        }
        body.dark-theme .modal-body {
            background: rgba(0, 0, 0, 0.2);
        }

        .explorer-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 10px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.85rem;
            color: var(--text-primary);
            transition: var(--transition);
        }

        .explorer-item:hover {
            background: rgba(0, 0, 0, 0.03);
        }
        body.dark-theme .explorer-item:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .explorer-item.selected {
            background: rgba(79, 70, 229, 0.08);
            color: #4f46e5;
        }
        body.dark-theme .explorer-item.selected {
            background: rgba(99, 102, 241, 0.15);
            color: #818cf8;
        }

        .explorer-item i {
            color: #d97706;
        }
        body.dark-theme .explorer-item i {
            color: #f59e0b;
        }

        .modal-footer {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
        }

        /* Mobile View Navigation */
        .mobile-nav-bar {
            display: none;
            height: 60px;
            border-top: 1px solid var(--panel-border);
            background: var(--mobile-nav-bg);
            backdrop-filter: blur(10px);
            z-index: 100;
            transition: var(--transition);
        }

        .mobile-nav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            color: var(--text-secondary);
            font-size: 0.7rem;
            font-weight: 500;
            background: transparent;
            border: none;
            cursor: pointer;
        }

        .mobile-nav-item.active {
            color: #4f46e5;
        }
        body.dark-theme .mobile-nav-item.active {
            color: #818cf8;
        }

        .mobile-nav-item i {
            font-size: 1.15rem;
        }

        /* QR Code Modal styling */
        .qr-card {
            width: 320px;
            align-items: center;
            text-align: center;
        }

        .qr-box {
            width: 180px;
            height: 180px;
            background: white;
            margin: 15px auto;
            border-radius: 12px;
            padding: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        .qr-box img {
            width: 100%;
            height: 100%;
        }

        /* Media Queries for Responsiveness */
        @media (max-width: 900px) {
            .sidebar {
                display: none; /* Collapsed in mobile view, toggled by tabs */
            }

            .right-sidebar {
                display: none; /* Collapsed in mobile view, toggled by tabs */
            }

            .mobile-nav-bar {
                display: flex;
            }

            body {
                overflow: hidden;
            }

            /* Header Adjustments */
            header {
                padding: 0 15px;
                height: 60px;
            }

            .logo-text h1 span {
                display: none !important; /* Hide long slogan on mobile */
            }

            .logo-text span {
                font-size: 0.65rem;
            }

            .logo-icon {
                width: 32px;
                height: 32px;
                font-size: 1rem;
            }

            .header-status .my-info-badge {
                display: none !important; /* Hide device badge to save space */
            }

            .domain-highlight-badge {
                display: none; /* Hide middle badge on mobile header to save space */
            }

            /* Responsive tab management in Javascript will change classes */
            .sidebar.show-mobile, .right-sidebar.show-mobile {
                display: flex;
                position: absolute;
                top: 0; left: 0; right: 0; bottom: 0;
                width: 100%;
                height: 100%;
                z-index: 90;
                background: var(--bg-color);
            }

            .main-content {
                padding: 12px;
                gap: 12px;
            }

            /* Domain Banner Vertical Layout */
            .domain-banner {
                flex-direction: column;
                padding: 10px;
                gap: 8px;
                text-align: center;
                align-items: stretch;
            }

            .domain-banner-content {
                font-size: 0.78rem;
                line-height: 1.4;
                text-align: center;
                justify-content: center;
            }

            .btn-copy-domain {
                width: 100%;
                justify-content: center;
                padding: 6px 12px;
                font-size: 0.8rem;
                align-self: center;
            }

            /* Drop Zone Compact */
            .drop-zone {
                padding: 20px 10px;
                gap: 10px;
            }

            .drop-zone-icon {
                width: 46px;
                height: 46px;
                font-size: 1.4rem;
                margin-bottom: 0;
            }

            .drop-zone h3 {
                font-size: 0.95rem;
            }

            .drop-zone p {
                font-size: 0.75rem;
                max-width: 100%;
                line-height: 1.35;
            }

            .drop-zone-actions {
                gap: 8px;
                margin-top: 5px;
                flex-wrap: wrap;
                justify-content: center;
            }

            .drop-zone-actions button {
                padding: 8px 16px;
                font-size: 0.8rem;
            }

            /* Queue Section Compact */
            .queue-section {
                min-height: 150px;
                gap: 10px;
            }

            .queue-header h3 {
                font-size: 0.9rem;
            }

            .btn-small {
                padding: 6px 12px;
                font-size: 0.75rem;
            }

            .queue-list-container {
                border-radius: 10px;
            }

            .queue-item {
                padding: 8px 12px;
            }

            .item-name {
                font-size: 0.8rem;
            }

            .item-meta {
                font-size: 0.7rem;
            }

            /* Hide redundant download path banner on mobile */
            .download-path-sticky-banner {
                display: none !important;
            }

            /* Chat Input Area Compact */
            .chat-input-area {
                padding: 10px;
            }

            .chat-toolbar {
                gap: 6px;
                margin-bottom: 6px;
            }

            .btn-tool {
                font-size: 0.75rem;
                padding: 3px 6px;
            }

            .chat-input {
                font-size: 0.8rem;
                height: 34px;
                padding: 6px 10px;
            }

            .chat-input-container button {
                padding: 6px 12px;
                font-size: 0.8rem;
            }

            /* Modals Responsiveness */
            .modal-card {
                width: 90% !important;
                max-width: 480px;
                padding: 15px;
            }

            .qr-card {
                width: 90% !important;
                max-width: 320px;
            }
        }