
        
        button {
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
        }
        
        button:after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 5px;
            background: rgba(255, 255, 255, 0.5);
            opacity: 0;
            border-radius: 100%;
            transform: scale(1, 1) translate(-50%);
            transform-origin: 50% 50%;
        }

        button:focus:not(:active)::after {
            animation: ripple 1s ease-out;
        }

        button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        button:active {
            transform: translateY(1px);
        }
        
        @keyframes ripple {
            0% {
                transform: scale(0, 0);
                opacity: 1;
            }
            20% {
                transform: scale(25, 25);
                opacity: 1;
            }
            100% {
                opacity: 0;
                transform: scale(40, 40);
            }
        }
        
        input[type="range"] {
            -webkit-appearance: none;
            height: 6px;
            background: linear-gradient(to right, #00f3ff, #9d00ff);
            border-radius: 3px;
            outline: none;
        }
        
        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            background: #fff;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 0 10px rgba(157, 0, 255, 0.8);
            transition: all 0.2s ease;
        }
        
        input[type="range"]::-webkit-slider-thumb:hover {
            transform: scale(1.1);
            box-shadow: 0 0 15px rgba(157, 0, 255, 1);
        }
        
        .btn-active {
            background: #4A5AF8;
            box-shadow: 0 0 15px rgba(74, 90, 248, 0.5);
        }
        
        .tooltip {
            position: relative;
            display: inline-block;
        }
        
        .tooltip .tooltiptext {
            visibility: hidden;
            width: 200px;
            background-color: rgba(30, 30, 60, 0.9);
            color: #fff;
            text-align: center;
            border-radius: 6px;
            padding: 10px;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            margin-left: -100px;
            opacity: 0;
            transition: opacity 0.3s;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .tooltip:hover .tooltiptext {
            visibility: visible;
            opacity: 1;
        }
        
        .pulse {
            animation: pulse-animation 1.5s infinite;
        }
        
        @keyframes pulse-animation {
            0% {
                box-shadow: 0 0 0 0px rgba(157, 0, 255, 0.7);
            }
            100% {
                box-shadow: 0 0 0 15px rgba(157, 0, 255, 0);
            }
        }

        .connection-pulse {
            animation: connection-pulse 1.5s infinite;
        }
        
        @keyframes connection-pulse {
            0% {
                opacity: 0.1;
            }
            50% {
                opacity: 0.8;
            }
            100% {
                opacity: 0.1;
            }
        }
        
        /* Loading spinner */
        .spinner {
            border: 4px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            border-top: 4px solid #9d00ff;
            width: 30px;
            height: 30px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Advanced parameters toggle */
        .toggle-checkbox {
            position: absolute;
            opacity: 0;
            cursor: pointer;
            height: 0;
            width: 0;
        }
        
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 40px;
            height: 20px;
            background: rgba(40, 40, 80, 0.4);
            border-radius: 20px;
            transition: all 0.3s;
            cursor: pointer;
        }
        
        .toggle-switch:after {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: white;
            top: 2px;
            left: 2px;
            transition: all 0.3s;
        }
        
        .toggle-checkbox:checked + .toggle-switch {
            background: #4A5AF8;
        }
        
        .toggle-checkbox:checked + .toggle-switch:after {
            left: calc(100% - 18px);
        }
        
        .advanced-params {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease-out;
        }
        
        .advanced-params.show {
            max-height: 500px;
        }

        /* Ensure the canvas fits properly */
        #neuralNetworkCanvas {
            width: 100%;
            height: 100%;
        }
        
        /* Training progress bar */
        .progress-bar {
            height: 6px;
            background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
            border-radius: 3px;
            overflow: hidden;
        }
        
        .progress-bar-fill {
            height: 100%;
            background: linear-gradient(to right, #00f3ff, #9d00ff);
            width: 0%;
            transition: width 0.2s ease;
            border-radius: 3px;
        }