.band-selector {
            display: flex;
            gap: 10px;
            margin: 20px 0;
            flex-wrap: wrap;
        }
        
        .band-button {
            padding: 10px 20px;
            border: 2px solid #e2e8f0;
            background: white;
            cursor: pointer;
            border-radius: 5px;
            transition: all 0.3s;
        }
        
        .band-button.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        
        .resistor-visual {
            background: #f8f9fa;
            padding: 40px;
            border-radius: 10px;
            text-align: center;
            margin: 20px 0;
        }
        
        .resistor-body {
            display: inline-block;
            position: relative;
            width: 300px;
            height: 80px;
            background: #d4a574;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        
        .color-band {
            position: absolute;
            top: 0;
            height: 100%;
            width: 20px;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid rgba(0,0,0,0.2);
        }
        
        .color-band:hover {
            transform: scaleY(1.1);
            box-shadow: 0 0 10px rgba(0,0,0,0.3);
        }
        
        .band-1 { left: 40px; }
        .band-2 { left: 80px; }
        .band-3 { left: 120px; }
        .band-4 { left: 160px; }
        .band-5 { left: 200px; }
        .band-6 { left: 240px; }
        
        .resistor-lead {
            position: absolute;
            top: 50%;
            width: 40px;
            height: 2px;
            background: #666;
            transform: translateY(-50%);
        }
        
        .resistor-lead.left { left: -40px; }
        .resistor-lead.right { right: -40px; }
        
        .color-selector {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 10px;
            margin: 20px 0;
        }
        
        .color-option {
            padding: 10px;
            border: 2px solid #e2e8f0;
            cursor: pointer;
            text-align: center;
            border-radius: 5px;
            font-weight: bold;
            color: #333;
            transition: all 0.3s;
        }
        
        .color-option:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        
        .color-black { background-color: #000; color: white; }
        .color-brown { background-color: #964B00; color: white; }
        .color-red { background-color: #FF0000; color: white; }
        .color-orange { background-color: #FFA500; }
        .color-yellow { background-color: #FFFF00; }
        .color-green { background-color: #00FF00; }
        .color-blue { background-color: #0000FF; color: white; }
        .color-violet { background-color: #9400D3; color: white; }
        .color-gray { background-color: #808080; color: white; }
        .color-white { background-color: #FFFFFF; border: 2px solid #ccc; }
        .color-gold { background-color: #FFD700; }
        .color-silver { background-color: #C0C0C0; }
        
        .result-value {
            font-size: 2em;
            font-weight: bold;
            color: var(--primary-color);
            margin: 20px 0;
        }
        
        .smd-section {
            margin-top: 40px;
            padding: 30px;
            background: #f8f9fa;
            border-radius: 10px;
        }
        
        .mode-selector {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 6px;
            margin: 25px auto;
            display: inline-flex;
            position: relative;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .mode-option {
            position: relative;
            padding: 12px 30px;
            cursor: pointer;
            font-weight: 500;
            color: #666;
            transition: all 0.3s;
            border: none;
            background: none;
            font-size: 16px;
            z-index: 2;
        }
        
        .mode-option.active {
            color: white;
        }
        
        .mode-slider {
            position: absolute;
            top: 6px;
            height: calc(100% - 12px);
            background: var(--primary-color);
            border-radius: 8px;
            transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
            z-index: 1;
        }
        
        .mode-container {
            text-align: center;
            margin: 20px 0;
        }
        
        .reference-table {
            overflow-x: auto;
            margin: 20px 0;
        }
        
        .reference-table table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .reference-table th,
        .reference-table td {
            padding: 10px;
            border: 1px solid #e2e8f0;
            text-align: center;
        }
        
        .reference-table th {
            background: var(--primary-color);
            color: white;
        }
        
        .reference-table tr:nth-child(even) {
            background: #f8f9fa;
        }
