.storage-demo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}
.storage-demo:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
}
.storage-demo > * {
    position: relative;
    z-index: 1;
}
.data-visualization {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    min-height: 300px;
}
.data-item {
    padding: 12px 15px;
    margin: 8px 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    position: relative;
    transition: all 0.3s;
}
.data-item:hover {
    border-color: #3498db;
    box-shadow: 0 3px 6px rgba(52, 152, 219, 0.2);
}
.data-key {
    color: #e74c3c;
    font-weight: bold;
}
.data-value {
    color: #27ae60;
}
.data-type {
    color: #9b59b6;
    font-size: 12px;
    margin-left: 10px;
}
.storage-container {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}
@media (max-width: 768px) {
    .storage-container {
        flex-direction: column;
    }
}
.storage-box {
    flex: 1;
    background: white;
    border: 2px solid;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.storage-box.memory {
    border-color: #3498db;
}
.storage-box.html5 {
    border-color: #2ecc71;
}
.storage-box.attr {
    border-color: #e74c3c;
}
.method-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}
.method-table th,
.method-table td {
    border: 1px solid #dee2e6;
    padding: 15px;
    text-align: left;
}
.method-table th {
    background-color: #2c3e50;
    color: white;
    font-weight: bold;
}
.method-table tr:nth-child(even) {
    background-color: #f8f9fa;
}
.method-table .recommended {
    background-color: rgba(46, 204, 113, 0.1);
}
.method-table .deprecated {
    background-color: rgba(231, 76, 60, 0.1);
}
.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.example-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.example-card h5 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.performance-meter {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
    position: relative;
}
.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.5s;
}
.meter-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    font-size: 12px;
    font-weight: bold;
}
.data-flow {
    position: relative;
    height: 200px;
    margin: 30px 0;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}
.flow-step {
    position: absolute;
    width: 120px;
    height: 60px;
    background: white;
    border: 2px solid;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.flow-arrow {
    position: absolute;
    font-size: 20px;
    color: #666;
}
.debug-panel {
    background: #2c3e50;
    color: #ecf0f1;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    font-family: 'Courier New', monospace;
}
.debug-output {
    height: 200px;
    overflow-y: auto;
    background: #34495e;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
}
.log-entry {
    padding: 5px 0;
    border-bottom: 1px solid #4a6278;
    font-size: 13px;
}
.interactive-demo {
    background: #f1f8ff;
    border: 2px dashed #0366d6;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}
.demo-element {
    width: 200px;
    height: 100px;
    background: #3498db;
    color: white;
    margin: 20px auto;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}
.demo-element:hover {
    transform: scale(1.05);
}
.data-status {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.status-item {
    text-align: center;
}
.status-value {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
}
.comparison-chart {
    display: flex;
    height: 200px;
    margin: 30px 0;
    align-items: flex-end;
    justify-content: space-around;
}
.chart-bar {
    width: 80px;
    background: linear-gradient(to top, #3498db, #2980b9);
    border-radius: 5px 5px 0 0;
    position: relative;
    transition: height 1s;
}
.chart-bar.html5 {
    background: linear-gradient(to top, #2ecc71, #27ae60);
}
.chart-bar.attr {
    background: linear-gradient(to top, #e74c3c, #c0392b);
}
.chart-label {
    position: absolute;
    bottom: -25px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
}
