.error-boundary-demo {
    position: relative;
    margin: 30px 0;
    border: 3px solid;
    border-radius: 12px;
    overflow: hidden;
}
.error-boundary-header {
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.error-boundary-content {
    padding: 25px;
    background: white;
    min-height: 200px;
}
.error-state {
    background: #fff3cd;
    border: 2px solid #ffc107;
}
.normal-state {
    background: #d4edda;
    border: 2px solid #28a745;
}
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}
.error-stack {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
}
.error-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    position: relative;
}
.flow-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;
}
.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.flow-arrow {
    font-size: 24px;
    color: #6c757d;
    position: absolute;
    z-index: 0;
}
.step-1 { border-color: #007bff; }
.step-2 { border-color: #28a745; }
.step-3 { border-color: #ffc107; }
.step-4 { border-color: #dc3545; }
.step-5 { border-color: #6c757d; }
.error-scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.scenario-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #dee2e6;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.scenario-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}
.error-console {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    max-height: 300px;
    overflow-y: auto;
}
.console-line {
    margin: 5px 0;
    font-size: 14px;
}
.error-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
    margin-bottom: 8px;
}
.error-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;
}
.error-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}
.error-timeline {
    position: relative;
    margin: 40px 0;
    padding-left: 40px;
}
.error-timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}
.error-timeline-item:before {
    content: '';
    position: absolute;
    left: -40px;
    top: 30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid;
    z-index: 2;
}
.error-timeline-item:after {
    content: '';
    position: absolute;
    left: -30px;
    top: 50px;
    bottom: -40px;
    width: 2px;
    background: #dee2e6;
    z-index: 1;
}
.error-timeline-item:last-child:after {
    display: none;
}
.error-types {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}
.error-type-card {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}
.error-modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}
.error-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
}
