:root {
 
            --accent-color: #ff5e62;
            --graph-node: #ff7e5f;
            --graph-edge: #2575fc;
            --euler-path: #00b09b;
            --visited-node: #8a2be2;
            --bridge-edge: #ff0000;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --info-color: #17a2b8;
        }
         .page-header {
            background: linear-gradient(135deg, rgba(106, 17, 203, 0.1) 0%, rgba(37, 117, 252, 0.1) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(106, 17, 203, 0.2);
            position: relative;
            overflow: hidden;   color: var(--text-color);
        }
        .breadcrumb {
            background-color: transparent;
            padding: 0.5rem 0;
            margin-bottom: 0.5rem;
        }
        .breadcrumb-item a {
            color: var(--text-muted);
            text-decoration: none;
        }
        .breadcrumb-item.active {
            color: var(--text-color);
        }
        .graph-container {
            width: 100%;
            height: 500px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            margin: 1.5rem 0;
            background-color: white;
            position: relative;
            overflow: hidden;display:none
        }
        #graphNetwork {
            width: 100%;
            height: 100%;
        }
        .euler-result {
            padding: 12px;
            background-color: white;
            border-radius: 4px;
            border: 1px solid #eee;
            font-size: 1.1rem;
            margin: 10px 0;
        }
        .euler-path-display {
            padding: 15px;
            background-color: rgba(0, 176, 155, 0.05);
            border-left: 4px solid var(--euler-path);
            border-radius: 4px;
            margin: 15px 0;
            font-family: 'Courier New', monospace;
            font-size: 1.2rem;
        }
        .graph-summary {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
        }
        .summary-item {
            display: flex;
            justify-content: space-between;
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--border-color);
        }
        .summary-item:last-child {
            border-bottom: none;
        }
        .algorithm-steps {
            background-color: rgba(37, 117, 252, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border-left: 4px solid var(--secondary-color);
        }
        .step-item {
            display: flex;
            margin-bottom: 1rem;
            align-items: flex-start;
        }
        .step-content {
            flex: 1;
        }
        .step-highlight {
            background-color: rgba(255, 94, 98, 0.1);
            padding: 0.5rem;
            border-radius: 4px;
            margin-top: 0.5rem;
            border-left: 3px solid var(--accent-color);
        }
        .control-panel {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
        }
        .control-title {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--primary-color);
        }
        .control-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        .control-btn {
            background-color: white;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 0.5rem 1rem;
            transition: all 0.3s;
            color: var(--text-color);
            font-weight: 500;
        }
        .control-btn:hover {
            background-color: var(--light-gray);
            color: var(--primary-color);
        }
        .control-btn.active {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        .counter-display {
            display: flex;
            justify-content: space-between;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border-color);
        }
        .counter {
            text-align: center;
        }
        .counter-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        .counter-label {
            font-size: 0.9rem;
            color: var(--text-muted);
        }
        .graph-examples {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        .example-card {
            background-color: white;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 1rem;
            cursor: pointer;
            transition: all 0.3s;
        }
        .example-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            border-color: var(--primary-color);
        }
        .example-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--primary-color);
        }
        .example-desc {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }
        .example-type {
            display: inline-block;
            padding: 0.2rem 0.5rem;
            background-color: rgba(37, 117, 252, 0.1);
            color: var(--secondary-color);
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        .conditions-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        .conditions-table th, .conditions-table td {
            padding: 0.75rem;
            text-align: left;
            border: 1px solid var(--border-color);
        }
        .conditions-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        .conditions-table tr:nth-child(even) {
            background-color: rgba(106, 17, 203, 0.05);
        }
        .condition-met {
            color: var(--success-color);
            font-weight: 600;
        }
        .condition-not-met {
            color: var(--accent-color);
            font-weight: 600;
        }
        .graph-legend {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin-top: 1rem;
            padding: 1rem;
            background-color: white;
            border-radius: 6px;
            border: 1px solid var(--border-color);
        }
        .legend-item {
            display: flex;
            align-items: center;
        }
        .legend-color {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            margin-right: 0.5rem;
        }
        .node-color {
            background-color: var(--graph-node);
        }
        .edge-color {
            width: 20px;
            height: 4px;
            background-color: var(--graph-edge);
        }
        .euler-color {
            width: 20px;
            height: 4px;
            background-color: var(--euler-path);
        }
        .visited-color {
            background-color: var(--visited-node);
        }
        .bridge-color {
            width: 20px;
            height: 4px;
            background-color: var(--bridge-edge);
        }
        @media (max-width: 768px) {
            .graph-container {
                height: 400px;
            }
        }
        .input-methods {
            display: flex;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid var(--border-color);
        }
        .input-method {
            padding: 0.75rem 1.5rem;
            background: none;
            border: none;
            font-weight: 600;
            color: var(--text-muted);
            border-bottom: 3px solid transparent;
            cursor: pointer;
        }
        .input-method.active {
            color: var(--primary-color);
            border-bottom: 3px solid var(--primary-color);
        }
        .input-panel {
            display: none;
        }
        .input-panel.active {
            display: block;
        }
        .matrix-input {
            overflow-x: auto;
        }
        .matrix-table {
            border-collapse: collapse;
            margin: 1rem 0;
        }
        .matrix-table th, .matrix-table td {
            border: 1px solid var(--border-color);
            padding: 0.5rem;
            text-align: center;
            min-width: 40px;
        }
        .matrix-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        .matrix-input-cell {
            width: 50px;
            text-align: center;
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 0.25rem;
        }
        .matrix-input-cell:focus {
            border-color: var(--primary-color);
            outline: none;
        }
        .edge-list-input {
            font-family: 'Courier New', monospace;
            height: 150px;
        }
        .properties-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        .property-card {
            background-color: white;
            border-radius: 8px;
            padding: 1rem;
            border: 1px solid var(--border-color);
            text-align: center;
        }
        .property-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }
        .property-label {
            font-size: 0.9rem;
            color: var(--text-muted);
        }
        .execution-steps {
            max-height: 300px;
            overflow-y: auto;
            padding: 1rem;
            background-color: white;
            border-radius: 8px;
            border: 1px solid var(--border-color);
        }
        .execution-step {
            padding: 0.75rem;
            border-bottom: 1px solid var(--border-color);
            font-family: 'Courier New', monospace;
        }
        .execution-step:last-child {
            border-bottom: none;
        }
        .step-current {
            background-color: rgba(0, 176, 155, 0.1);
            border-left: 3px solid var(--euler-path);
        }
        .step-done {
            color: var(--text-muted);
        }
        .export-buttons {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-top: 1rem;
        }
        .performance-chart-container {
            height: 300px;
            margin: 1.5rem 0;
        }
        .bridge-info {
            background-color: rgba(255, 0, 0, 0.05);
            border-left: 3px solid var(--bridge-edge);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1rem 0;
        }
        .tooltip-inner {
            max-width: 300px;
        }
        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        .comparison-table th, .comparison-table td {
            padding: 0.75rem;
            text-align: left;
            border: 1px solid var(--border-color);
        }
        .comparison-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        .comparison-table tr:hover {
            background-color: rgba(106, 17, 203, 0.05);
        }