.composition-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}
.composition-title {
    color: #42b983;
    border-left: 4px solid #42b983;
    padding-left: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}
.comparison-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}
.comparison-table td {
    vertical-align: middle;
}
.api-card {
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}
.api-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.api-card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
    font-weight: bold;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.api-card-body {
    padding: 1.25rem;
}
.badge-composition {
    background-color: #3498db;
    color: white;
}
.demo-container {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}
.example-tabs {
    margin-bottom: 1rem;
}
.example-tabs .nav-link {
    color: #6c757d;
    font-weight: 500;
}
.example-tabs .nav-link.active {
    color: #42b983;
    background-color: #f8f9fa;
    border-color: #dee2e6 #dee2e6 #f8f9fa;
}
.tip-box {
    background-color: #e8f4ff;
    border-left: 4px solid #3498db;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 0.375rem 0.375rem 0;
}
.warning-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 0.375rem 0.375rem 0;
}
.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}
.flow-step {
    text-align: center;
    padding: 1rem;
    position: relative;
}
.flow-step-icon {
    width: 50px;
    height: 50px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 0.5rem;
}
.flow-arrow {
    font-size: 1.5rem;
    color: #6c757d;
    margin: 0 1rem;
}
.code-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}
.code-comparison-header {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 0.375rem 0.375rem 0 0;
    font-weight: bold;
    text-align: center;
}
.code-comparison-content {
    border: 1px solid #dee2e6;
    border-radius: 0 0 0.375rem 0.375rem;
    overflow: hidden;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.feature-card {
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1.5rem;
    background-color: white;
    transition: transform 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.feature-card-icon {
    font-size: 2rem;
    color: #42b983;
    margin-bottom: 1rem;
}
.lifecycle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.lifecycle-card {
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    text-align: center;
    background-color: white;
}
.lifecycle-card.current {
    background-color: #e8f4ff;
    border-color: #3498db;
}
.reactive-demo {
    padding: 1.5rem;
    background-color: white;
    border: 2px solid #e9ecef;
    border-radius: 0.375rem;
    margin: 1.5rem 0;
}
.reactive-demo .demo-area {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    margin-top: 1rem;
}
