.state-management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.state-lib-card {
    background: white;
    border: 3px solid;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.state-lib-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.state-lib-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}
.lib-features {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}
.lib-features li {
    padding: 5px 0;
    display: flex;
    align-items: center;
}
.lib-features li:before {
    content: '✓';
    margin-right: 8px;
    font-weight: bold;
}
.state-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    position: relative;
}
.flow-node {
    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);
}
.flow-arrow {
    font-size: 24px;
    color: #6c757d;
    position: absolute;
    z-index: 0;
}
.comparison-table {
    margin: 30px 0;
}
.comparison-table th {
    background: #f8f9fa;
    position: sticky;
    top: 0;
}
.state-demo-area {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 25px 0;
}
.state-demo-container {
    background: white;
    border-radius: 10px;
    padding: 25px;
    border: 2px solid #dee2e6;
}
.state-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}
.state-visualizer {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    min-height: 150px;
    transition: all 0.3s ease;
}
.state-timeline {
    position: relative;
    margin: 40px 0;
    padding-left: 40px;
}
.timeline-marker {
    position: absolute;
    left: -20px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
}
.timeline-content {
    position: relative;
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}
.timeline-content:after {
    content: '';
    position: absolute;
    left: -20px;
    top: 40px;
    bottom: -40px;
    width: 2px;
    background: #dee2e6;
    z-index: 1;
}
.timeline-content:last-child:after {
    display: none;
}
.state-decision-tree {
    background: #e3f2fd;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    border: 2px solid #2196f3;
}
.decision-node {
    padding: 15px;
    margin: 10px 0;
    background: white;
    border-radius: 8px;
    border-left: 5px solid #2196f3;
}
.state-pattern-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}
.pattern-card {
    background: white;
    border: 2px solid;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}
.pattern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.state-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;
}
.state-meter {
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
}
.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.5s ease;
}
