.lifecycle-demo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    color: white;
    position: relative;
    overflow: hidden;
}
.lifecycle-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    position: relative;
}
.lifecycle-phase {
    background: white;
    color: #333;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    width: 120px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}
.lifecycle-phase:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}
.lifecycle-phase.active {
    background: #4caf50;
    color: white;
}
.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: white;
    z-index: 1;
}
.code-block {
    margin: 25px 0;
    position: relative;
}
.phase-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    display: none;
}
.phase-details.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.note-box {
    background: #e7f3ff;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}
.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}
.success-box {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}
.hook-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    background: white;
}
.hook-name {
    color: #2196f3;
    font-weight: bold;
    font-size: 1.1em;
}
.hook-sequence {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}
.hook-step {
    background: #4a90e2;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}
.lifecycle-visual {
    background: #2d2d2d;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-family: 'Consolas', monospace;
    line-height: 1.6;
}
