.style-demo {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    border: 2px solid #dee2e6;
}
.component-preview {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    background: white;
}
.encapsulation-demo {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}
.encapsulation-card {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    text-align: center;
    transition: all 0.3s ease;
}
.encapsulation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.emulated { border-color: #4caf50; }
.none { border-color: #2196f3; }
.shadow-dom { border-color: #ff9800; }
.code-block {
    margin: 25px 0;
    position: relative;
}
.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;
}
.style-bindings {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.binding-example {
    padding: 15px;
    border-radius: 6px;
    min-width: 200px;
    text-align: center;
}
.css-scope-diagram {
    background: #2d2d2d;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-family: 'Consolas', monospace;
    line-height: 1.6;
}
