.state-demo {
    border: 2px solid #61dafb;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, #667eea0d 0%, #764ba20d 100%);
}
.counter-box {
    text-align: center;
    padding: 2rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin: 1rem 0;
    background: white;
}
.counter-value {
    font-size: 3rem;
    font-weight: bold;
    color: #61dafb;
    margin: 1rem 0;
}
.state-flow {
    position: relative;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 2rem 0;
}
.flow-step {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #61dafb;
    color: white;
    border-radius: 50%;
    margin-right: 1rem;
    font-weight: bold;
    flex-shrink: 0;
}
.step-content {
    flex: 1;
}
.flow-line {
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: -1.5rem;
    width: 2px;
    background: #61dafb;
}
.flow-step:last-child .flow-line {
    display: none;
}
.state-table th {
    background-color: #f8f9fa;
}
.live-demo {
    background: #282c34;
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}
.live-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}
.hook-comparison {
    border-left: 4px solid #28a745;
    padding-left: 1rem;
    margin: 1.5rem 0;
}
.warning-box {
    border: 2px solid #ffc107;
    border-left: 6px solid #ffc107;
    background: #fff3cd;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}
