        .container_md {
            max-width: 1400px;
            margin-top: -30px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            height: 95vh;
            transition: all 0.3s ease;
        }
        header_md {
            background: rgba(15, 25, 45, 0.95);
            padding: 15px 20px;
            text-align: center;
            border-bottom: 2px solid #3498db;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .header-content_md {
            flex: 1;
        }
        
        h1 {
            font-size: 1.8rem;
            margin-bottom: 5px;
            background: linear-gradient(90deg, #3498db, #2ecc71);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        
        .subtitle_md {
            color: #ecf0f1;
            font-size: 1.5rem;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .main-content_md {
            display: flex;
            flex: 1;
            overflow: hidden;
        }
        
        #toolbox_md {
            width: 430px;
            background: rgba(245, 245, 245, 0.95);
            padding: 15px 10px;
            overflow-y: auto;
            border-right: 1px solid #e0e0e0;
            transition: width 0.3s;
        }
        
        .toolbox-section_md {
            margin-bottom: 6px;
        }
        
        .toolbox-title_md {
            font-size: 1.8rem;
            color: #3498db;
            margin-bottom: 5px;
            padding-bottom: 6px;
            border-bottom: 2px solid #3498db;
            display: flex;
            align-items: center;
        }
        
        .toolbox-title_md i {
            margin-right: 4px;
            font-size: 1.1rem;
        }
        
        .mode-selector_md {
            font-size: 1.8rem;
            display: flex;
            flex-direction: row;
            gap: 8px;
        }
        .mode-selector_md2 {
            font-size: 1.2rem;
            display: flex;
            flex-direction: row;
            gap: 8px;
        }        
        .mode-btn_md {
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid #ddd;
            border-radius: 6px;
            padding: 10px;
            color: #333;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 1;
        }
        
        .mode-btn_md, .active_md, .mode-btn_md:hover {
            background: rgba(52, 152, 219, 0.1);
            border-color: #3498db;
            color: #3498db;
        }
        
        .properties-panel_md {
            background: rgba(255, 255, 255, 0.9);
            padding: 12px;
            margin-top: 6px;
            border-radius: 6px;
            border: 1px solid #ddd;
        }
        
        .property-group_md {
            margin-bottom: 6px;
        }
        
        .property-group_md label {
            display: block;
            margin-bottom: 4px;
            color: #555;
            font-size: 0.8rem;
        }
        
        .property-group_md input, .property-group_md select {
            width: 100%;
            padding: 7px;
            border-radius: 4px;
            border: 1px solid #ddd;
            background: rgba(255, 255, 255, 0.9);
            color: #333;
            font-size: 0.8rem;
        }
        
        #workspace_md {
            flex: 1;
            position: relative;
            background: #ffffff;
            overflow: hidden;
        }
        
        #circuit-canvas {
            background: #ffffff;
            display: block;
            cursor: crosshair;
        }
        
        #grid-overlay {
            position: absolute;
            top: 0;
            left: 0;
            pointer-events: none;
            z-index: 1;
        }
        
        #status-bar_md {
            background: rgba(245, 245, 245, 0.95);
            padding: 8px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.8rem;
            color: #555;
            border-top: 1px solid #ddd;
        }
        
        .controls-group_md {
            display: flex;
            gap: 8px;
            align-items: center;
        }
        
        .zoom-controls_md {
            display: flex;
            gap: 6px;
        }
        
        .action-btn_md {
            background: linear-gradient(135deg, #3498db, #2ecc71);
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .action-btn_md.small_md {
            padding: 6px 10px;
            font-size: 0.8rem;
        }
        
        .action-btn_md:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }
        
        .action-btn_md:active {
            transform: translateY(1px);
        }
        
        .zoom-btn_md {
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid #ddd;
            color: #333;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.9rem;
        }
        
        .zoom-btn_md:hover {
            background: rgba(52, 152, 219, 0.1);
            border-color: #3498db;
            color: #3498db;
            transform: scale(1.1);
        }
        
        .component-symbol_md {
            width: 100%;
            height: 100%;
        }
        
        /* Fullscreen mode */
        body.fullscreen_md {
            padding: 0;
            overflow: hidden;
        }
        
        body.fullscreen_md .container_md {
            border-radius: 0;
        }
        
        /* Toggle toolbox */
        .toggle-toolbox_md {
            position: absolute;
            top: 60px;
            left: 0;
            background: rgba(52, 152, 219, 0.8);
            color: white;
            border: none;
            width: 24px;
            height: 40px;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
            z-index: 5;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* Dropdown cho linh kiện */
        .component-dropdown_md {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .dropdown-container_md {
            position: relative;
            width: 100%;
        }
        
        .component-select_md {
            width: 100%;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 6px;
            background: white;
            font-size: 1.5rem;
            color: #333;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23333'%3E%3Cpath d='M6 8L0 0h12L6 8z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 15px center;
            background-size: 10px;
            padding-right: 40px;
        }
        
        .add-component-btn_md {
            background: linear-gradient(135deg, #3498db, #2ecc71);
            color: white;
            border: none;
            padding: 10px;
            border-radius: 6px;
            font-size: 1.4rem;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            margin-top: 8px;
            width: 100%;
        }
        
        .add-component-btn_md:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .main-content_md {
                flex-direction: column;
            }
            
            #toolbox_md {
                width: 100%;
                height: auto;
                border-right: none;
                border-bottom: 1px solid #ddd;
            }
            
            .mode-selector_md {
                flex-wrap: wrap;
            }
            
            .mode-btn_md {
                min-width: 100px;
            }
        }