.promise-flow {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}
.state-badge {
    padding: 5px 15px;
    border-radius: 20px;
    margin: 0 5px;
    font-size: 14px;
}
.state-pending { background: #ffc107; color: #212529; }
.state-resolved { background: #28a745; color: white; }
.state-rejected { background: #dc3545; color: white; }
.promise-chain {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}
.promise-step {
    background: white;
    border: 2px solid #6c757d;
    border-radius: 10px;
    padding: 15px;
    margin: 10px;
    min-width: 120px;
    text-align: center;
    position: relative;
}
.promise-step.done { border-color: #28a745; background: #d4edda; }
.promise-step.fail { border-color: #dc3545; background: #f8d7da; }
.promise-step.pending { border-color: #ffc107; background: #fff3cd; }
.chain-arrow {
    font-size: 24px;
    color: #6c757d;
    margin: 0 5px;
}
.example-console {
    background: #212529;
    color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    height: 200px;
    overflow-y: auto;
    margin: 15px 0;
}
.console-line {
    margin: 5px 0;
    padding: 2px 5px;
    border-left: 3px solid transparent;
}
.console-line.info { border-left-color: #17a2b8; }
.console-line.success { border-left-color: #28a745; }
.console-line.error { border-left-color: #dc3545; }
.console-line.warning { border-left-color: #ffc107; }
.async-demo-box {
    background: #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}
.loading-bar {
    height: 4px;
    background: #007bff;
    width: 0%;
    transition: width 0.3s;
    margin-bottom: 10px;
}
.comparison-table td, .comparison-table th {
    vertical-align: middle;
}
.method-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #6c757d;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    margin: 2px;
}
.method-badge.deferred { background: #007bff; }
.method-badge.promise { background: #28a745; }
.timeline {
    position: relative;
    padding-left: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}
.timeline-item {
    position: relative;
    margin-bottom: 20px;
}
.timeline-dot {
    position: absolute;
    left: -26px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6c757d;
}
.timeline-dot.success { background: #28a745; }
.timeline-dot.error { background: #dc3545; }
.timeline-dot.pending { background: #ffc107; }
