.optimization-timeline {
    position: relative;
    margin: 40px 0;
    padding-left: 40px;
}
.timeline-node {
    position: relative;
    margin-bottom: 40px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    border: 2px solid #dee2e6;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.timeline-node:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.timeline-node:before {
    content: '';
    position: absolute;
    left: -40px;
    top: 30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #007bff;
    z-index: 2;
}
.timeline-node:after {
    content: '';
    position: absolute;
    left: -30px;
    top: 50px;
    bottom: -40px;
    width: 2px;
    background: #dee2e6;
    z-index: 1;
}
.timeline-node:last-child:after {
    display: none;
}
.perf-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.metric-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid;
    position: relative;
    overflow: hidden;
}
.metric-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: currentColor;
}
.perf-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
}
.perf-demo-area {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}
.demo-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #dee2e6;
}
.render-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #343a40;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.virtual-list-container {
    height: 400px;
    overflow-y: auto;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    margin: 20px 0;
    position: relative;
}
.virtual-item {
    position: absolute;
    width: 100%;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    box-sizing: border-box;
    transition: background 0.3s;
}
.virtual-item:hover {
    background: #f8f9fa;
}
.optimization-compare {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}
.compare-bad, .compare-good {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
}
.compare-bad {
    background: #f8d7da;
    border: 3px solid #f5c6cb;
}
.compare-good {
    background: #d4edda;
    border: 3px solid #c3e6cb;
}
.performance-chart {
    height: 200px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}
.chart-bar {
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, #4CAF50, #8BC34A);
    width: 30px;
    transition: height 0.5s ease;
    border-radius: 4px 4px 0 0;
}
.tool-tips {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border: 2px solid #007bff;
    border-radius: 10px;
    padding: 20px;
    max-width: 300px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
}
.perf-checklist {
    background: #e3f2fd;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    border: 2px solid #2196f3;
}
.checklist-item {
    display: flex;
    align-items: flex-start;
    margin: 15px 0;
    padding: 10px;
    background: white;
    border-radius: 6px;
}
.checklist-item input {
    margin-right: 15px;
    margin-top: 5px;
}
.network-simulator {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}
.network-speed-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}
.speed-slider {
    flex: 1;
}
.memo-demo {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}
.memo-component {
    flex: 1;
    padding: 20px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: white;
}
