.interactive-demo {
    background-color: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.controls {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.control-group label {
    font-weight: bold;
    min-width: 40px;
}

.control-group input {
    width: 60px;
    padding: 5px;
    border: 1px solid #cbd5e0;
    border-radius: 3px;
}

.interactive-box {
    width: 100px;
    height: 60px;
    background-color: #9f7aea;
    color: white;
    text-align: center;
    line-height: 60px;
    position: relative;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.reference-text {
    margin: 10px 0;
    padding: 10px;
    background-color: #e6fffa;
    border-radius: 5px;
}