* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
            color: #fff;
            min-height: 100vh;
            overflow-x: hidden;
            position: relative;
        }

        #particles-js {
            position: absolute;
            width: 100%;
            height: 100%;
            z-index: 0;
        }

        #body {
            position: relative;
            z-index: 1;
            max-width: 1400px;
            margin: 0 auto;
            padding: 30px;
        }

        .header-container {
            text-align: center;
            margin-bottom: 40px;
            padding: 30px;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        #header {
            font-size: 3.5rem;
            font-weight: 700;
            background: linear-gradient(90deg, #ff7e5f, #feb47b, #86a8e7, #91eae4);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 15px;
            letter-spacing: 1px;
        }

        .subtitle {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, 0.7);
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
        }

        .controls-container {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .toggle-btn {
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            color: white;
            border: none;
            padding: 14px 30px;
            border-radius: 50px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .toggle-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }

        .toggle-btn:active {
            transform: translateY(1px);
        }

        .toggle-btn i {
            font-size: 1.2rem;
        }

        .content-container {
            display: flex;
            gap: 30px;
            flex-wrap: wrap;
        }

        .legend {
            flex: 1;
            min-width: 300px;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .legend h3 {
            font-size: 1.5rem;
            margin-bottom: 20px;
            color: #86a8e7;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .legend h3 i {
            font-size: 1.3rem;
        }

        .legend ul {
            list-style: none;
        }

        .legend li {
            padding: 12px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1rem;
        }

        .legend li:last-child {
            border-bottom: none;
        }

        .legend li i {
            color: #feb47b;
            font-size: 1.1rem;
        }

        .tree-container {
            flex: 3;
            min-width: 600px;
            height: 600px;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            overflow: hidden;
        }

        .node circle {
            fill: rgba(255, 255, 255, 0.9);
            stroke: #6a11cb;
            stroke-width: 2px;
            filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
            transition: all 0.3s ease;
        }

        .node circle:hover {
            fill: #feb47b;
            stroke: #ff7e5f;
            stroke-width: 3px;
            transform: scale(1.05);
        }

        .node text {
            font-size: 12px;
            fill: #fff;
            font-weight: 500;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }

        path.link {
            fill: none;
            stroke: rgba(255, 255, 255, 0.3);
            stroke-width: 1.5px;
            stroke-dasharray: 5, 5;
        }

        .dark-mode {
            background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
        }

        .dark-mode .node circle {
            fill: #1a1a2e;
            stroke: #91eae4;
        }

        .dark-mode .node circle:hover {
            fill: #6a11cb;
            stroke: #86a8e7;
        }

        .dark-mode path.link {
            stroke: rgba(145, 234, 228, 0.4);
        }

        .footer {
            text-align: center;
            margin-top: 40px;
            padding: 20px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
        }

        @media (max-width: 1100px) {
            .content-container {
                flex-direction: column;
            }
            
            .tree-container {
                min-width: 100%;
            }
        }

        @media (max-width: 768px) {
            #header {
                font-size: 2.5rem;
            }
            
            .tree-container {
                height: 500px;
            }
            
            .controls-container {
                flex-direction: column;
                align-items: center;
            }
            
            .toggle-btn {
                width: 100%;
                justify-content: center;
            }
        }