        :root {
            --bg-main: #0b0f19; --bg-panel: #111827; --bg-card: #1f2937;
            --text-light: #f8fafc; --text-muted: #94a3b8;
            --accent-local: #3b82f6; --success: #10b981; --error: #ef4444; --border-color: #334155;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: var(--bg-main); color: var(--text-light); margin: 0; display: flex; min-height: 100vh; font-weight: 400; font-size: 16px;
        }

        .icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
        .icon-large { width: 44px; height: 44px; stroke-width: 1; }

        .sidebar {
            width: 280px; background-color: var(--bg-panel); border-right: 1px solid var(--border-color);
            padding: 30px 20px; display: flex; flex-direction: column; position: fixed; height: 100vh; box-sizing: border-box; overflow-y: auto;
        }
        .logo { font-size: 24px; font-weight: 300; color: #fff; margin-bottom: 40px; letter-spacing: 0.5px; }
        .logo span { font-weight: 600; color: var(--accent-local); }
        .nav-item {
            padding: 14px 16px; border-radius: 8px; color: var(--text-muted); text-decoration: none; 
            font-size: 17px; font-weight: 400; display: flex; align-items: center; gap: 12px; transition: 0.2s; margin-bottom: 6px;
        }
        .nav-item:hover, .nav-item.active { background: rgba(59, 130, 246, 0.05); color: var(--accent-local); }

        .main-content { margin-left: 280px; padding: 40px 60px; flex-grow: 1; box-sizing: border-box; max-width: 1000px; }
        
        .header-title { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
        .header-title h1 { margin: 0; font-size: 36px; font-weight: 300; letter-spacing: -0.5px; }
        .badge { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2); color: var(--accent-local); padding: 5px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; }
        .subtitle { color: var(--text-muted); font-size: 18px; margin-bottom: 45px; line-height: 1.7; font-weight: 300; }

        .drop-zone {
            background: var(--bg-card); border: 1px dashed var(--border-color); border-radius: 12px; padding: 60px 20px;
            text-align: center; cursor: pointer; transition: all 0.2s ease; margin-bottom: 35px;
        }
        .drop-zone.dragover { border-color: var(--accent-local); background: rgba(59, 130, 246, 0.02); }
        .drop-icon { color: var(--text-muted); margin-bottom: 15px; display: inline-block; }
        .drop-text { font-size: 18px; font-weight: 500; color: var(--text-light); margin-bottom: 10px; }
        .drop-hint { font-size: 15px; color: var(--text-muted); font-weight: 300; }
        #fileInput { display: none; }

        .result-box {
            background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 12px; padding: 25px; display: none;
        }
        .result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
        .result-title { font-size: 16px; font-weight: 500; color: var(--text-light); }
        .result-info { font-size: 14px; color: var(--text-muted); }

        textarea {
            width: 100%; height: 200px; background: var(--bg-main); color: var(--text-light);
            border: 1px solid var(--border-color); border-radius: 8px; padding: 15px; font-family: monospace; 
            font-size: 14px; resize: vertical; box-sizing: border-box; outline: none; line-height: 1.5;
        }
        textarea:focus { border-color: var(--accent-local); }

        .checkbox-group { display: flex; align-items: center; gap: 10px; margin: 20px 0; font-size: 15px; color: var(--text-light); cursor: pointer; }
        .checkbox-group input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent-local); }

        .btn-group-actions { display: flex; gap: 15px; }
        .btn-action {
            background: transparent; color: var(--text-light); border: 1px solid var(--border-color); padding: 14px 20px; border-radius: 8px;
            font-size: 16px; font-weight: 500; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 10px; flex: 1; justify-content: center;
        }
        .btn-action:hover { background: rgba(255,255,255,0.05); }
        .btn-primary { background: var(--accent-local); border-color: var(--accent-local); color: white; }
        .btn-primary:hover { background: #2563eb; }

        .toast {
            position: fixed; bottom: 30px; right: 30px; background: var(--success); color: white;
            padding: 12px 20px; border-radius: 8px; font-size: 15px; font-weight: 500;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.3s; pointer-events: none;
        }

        @media (max-width: 900px) {
            body { flex-direction: column; }
            .sidebar { width: 100%; height: auto; position: static; padding: 20px; flex-direction: row; justify-content: space-between; align-items: center; border-right: none; border-bottom: 1px solid var(--border-color); }
            .nav-item { display: none; } 
            .nav-item.active { display: flex; margin: 0; padding: 10px 14px; font-size: 16px; }
            .main-content { margin-left: 0; padding: 30px 20px; }
            .btn-group-actions { flex-direction: column; }
        }
