.router-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    position: relative;
}
.router-step {
    background: white;
    border: 3px solid;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 180px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.router-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.router-step-1 { border-color: #007bff; }
.router-step-2 { border-color: #28a745; }
.router-step-3 { border-color: #ffc107; }
.router-step-4 { border-color: #dc3545; }
.router-arrow {
    font-size: 24px;
    color: #6c757d;
    position: absolute;
    z-index: 0;
}
.router-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
}
.route-node {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin: 10px;
    border: 2px solid #dee2e6;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.route-arrow {
    font-size: 20px;
    color: #6c757d;
    margin: 0 10px;
}
.route-tree {
    margin: 20px 0;
    padding-left: 20px;
    border-left: 2px solid #dee2e6;
}
.route-tree-item {
    margin: 10px 0;
    padding: 10px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    position: relative;
}
.route-tree-item:before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 20px;
    height: 2px;
    background: #dee2e6;
}
.router-demo-area {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}
.router-navigation {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}
.router-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
    border: 2px solid #dee2e6;
}
.router-tabs {
    display: flex;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
}
.router-tab {
    padding: 10px 20px;
    background: #f8f9fa;
    border: none;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    margin-right: 5px;
    cursor: pointer;
    transition: all 0.3s;
}
.router-tab.active {
    background: #007bff;
    color: white;
}
.router-version-comparison {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}
.router-version {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid;
}
.router-example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.router-example-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}
.router-example-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.router-pattern-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}
.pattern-basic { background: #d4edda; color: #155724; }
.pattern-nested { background: #cce5ff; color: #004085; }
.pattern-dynamic { background: #fff3cd; color: #856404; }
.pattern-auth { background: #f8d7da; color: #721c24; }
.pattern-lazy { background: #d1ecf1; color: #0c5460; }
.router-transition {
    transition: all 0.3s ease;
}
.router-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}
.router-modal-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}
